Compare commits

..

3 Commits

Author SHA1 Message Date
Danhia a12dd0d020 Merge pull request 'Update README' (#21) from update-readme into main
Reviewed-on: #21
2022-02-16 14:34:14 +01:00
Starthur 377607239e Update README
Better solution to create superuser admin
2022-02-16 14:33:21 +01:00
Starthur 3829ad11ef Update README
Add information about migrate and admin right on local dev
2022-02-16 14:13:00 +01:00
1 changed files with 4 additions and 2 deletions

View File

@ -28,5 +28,7 @@ DEBUG = True
SECRET_KEY = 'what you want'
```
When you'll run `python manage.py runserver`, an empty database will be automatically created.
When you'll run `python manage.py migrate` then `python manage.py runserver`, an empty database will be automatically created.
The `local_settings.py` is in the `.gitignore` and should stay that way, so we don't accidentally overwrite the production file when we deploy.
To obtain administrator rights you can run `python manage.py createsuperuser`.