README edit and screenshots

This commit is contained in:
The Dod 2021-01-12 13:18:47 +02:00
parent ab7a9e2a30
commit 4498dd8a39
3 changed files with 15 additions and 0 deletions

View File

@ -10,9 +10,24 @@ Based on example at https://blog.bitsacm.in/django-on-docker/
#### To run local dev server
* First time in a shell, run `. venv/bin/activate`, and `. dev.env`
* `cd djangoproject`
* Perform _first time operations_ (see below)
* `./manage.py runserver` and browse to http://localhost:8000
### To deploy dockers locally
* You should copy `project.env.example` to `project.env` and edit it.
* `docker-compose up` would then run the server on http://localhost:8888
* `docker exec -it django /bin/bash` will let you perform _first time operations_ (see below)
### First time operations
Whether on local dev server or on a docker, you should do 2 things:
* `./manage.py createsuperuser` (so that you can manage the site via web)
* `./manage.py loaddata billboard/fixtures/initial-data.json` (Optional. Populates the db with a few items)
### Screenshots
![App](screenshots/django-test-app.png)
![Admin](screenshots/django-test-app-admin.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB