Update README about debug mode

This commit is contained in:
Sirin Puenggun 2023-09-09 21:25:35 +07:00 committed by GitHub
parent 1b996629da
commit 1e084ed11c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,16 @@ python manage.py loaddata data/polls-v1.json
python manage.py loaddata data/user.json
python manage.py runserver
```
Then connect to `http://127.0.0.1:8000/` or `localhost:8000/`
***NOTE***
By Default `DEBUG=False` and Django will not load CSS file for you so if you want to apply CSS run this.
```bash
python manage.py runserver --insecure
```
or set `DEBUG=True`
Then connect to [http://127.0.0.1:8000/](http://127.0.0.1:8000/) or [localhost:8000/](localhost:8000/)
**Recommend**