|
|
@ -5,12 +5,14 @@ |
|
|
|
Follow these steps to initialize a development environment: |
|
|
|
Follow these steps to initialize a development environment: |
|
|
|
|
|
|
|
|
|
|
|
1. Initialize _Django_ project |
|
|
|
1. Initialize _Django_ project |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
django startproject PROJECT_NAME |
|
|
|
django startproject PROJECT_NAME |
|
|
|
``` |
|
|
|
``` |
|
|
|
2. Add `bam` to `INSTALLED_APPS` in the project's `settings.py` |
|
|
|
2. Add `bam` to `INSTALLED_APPS` in the project's `settings.py` |
|
|
|
3. Append `path('', include('bam.urls')),` to the project's `urls.py` |
|
|
|
3. Append `path('', include('bam.urls')),` to the project's `urls.py` |
|
|
|
4. Initialize database |
|
|
|
4. Initialize database |
|
|
|
|
|
|
|
|
|
|
|
``` |
|
|
|
``` |
|
|
|
./manage.py migrate |
|
|
|
./manage.py migrate |
|
|
|
``` |
|
|
|
``` |
|
|
|