https://github.com/dataquestio/django-playground
https://github.com/dataquestio/django-playground
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dataquestio/django-playground
- Owner: dataquestio
- Created: 2023-07-13T05:55:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-13T06:23:02.000Z (almost 3 years ago)
- Last Synced: 2025-03-26T21:22:30.155Z (about 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# django-playground
This is a small example project to demonstrate default Django project structure. The source files of the project are located under the `src` directory for better separation from quick-start helpers or Git management.
The project provides an optional helper script to bootstrap Django Admin introduction.
Prerequisites:
You need to have Python version 3.8 and later installed in your system. It's advised to create a virtual environment for better package management:
```bash
python -m venv ./venv
```
To get started, activate your virtual environment if it's present:
```bash
source venv/bin/activate
```
Install Django package and launch initialization script:
```bash
pip install -r src/requirements.txt
bash init.sh
```
Then switch to the project directory and start the Django application :tada:
```
cd src/playground_project
python ./manage.py runserver
```
You should see a test page under [http://localhost:8000](http://localhost:8000)
You can use admin/topsecret credentials to access Django admin page under [http://localhost:8000/admin/](http://localhost:8000/admin/)