-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add super user doc * Update references * Add blank line at the end of file
- Loading branch information
1 parent
00dd116
commit 2623404
Showing
8 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Accessing the Django Admin Panel | ||
|
||
To access the Django admin panel, follow these steps: | ||
|
||
1. **Access the Bash of the Django Container** | ||
First, you need to access the bash of the container running Django. | ||
|
||
**List Running Containers:** | ||
|
||
Use the following command to view the running containers: | ||
|
||
```docker ps``` | ||
|
||
This command displays a list of running containers. Locate and copy the name of the container running the Django image. | ||
|
||
 | ||
|
||
2. **Access the Container's Bash:** | ||
|
||
Run the following command to open a bash session in the container: | ||
|
||
```docker exec -it <Container Name> bash``` | ||
|
||
Replace <'Container Name'> with the name of your Django container. For example: | ||
|
||
```docker exec -it tomorrownow_gap-dev-1 bash``` | ||
|
||
 | ||
|
||
3. **Create a Django Superuser** | ||
|
||
Within the container’s bash session, create a Django superuser by running: | ||
|
||
```python manage.py createsuperuser``` | ||
|
||
You will be prompted to enter the following details: | ||
|
||
- Username | ||
- Email address | ||
- Password | ||
|
||
 | ||
|
||
4. **Log in to the Django Admin Panel:** | ||
|
||
Once the superuser is created, you can access the Django admin panel through the web browser. Open your web browser and navigate to the following URL: | ||
|
||
http://yourhost/admin/ | ||
|
||
For Example: | ||
|
||
http://localhost:8000/admin/ | ||
|
||
Enter your username and password that you set up earlier, then click the 1️⃣ `Login` button, to access the admin panel. | ||
|
||
 | ||
|
||
After login you will see the admin panel. | ||
|
||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters