diff --git a/README.md b/README.md index 8877024..f00146a 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/screenshots/django-test-app-admin.png b/screenshots/django-test-app-admin.png new file mode 100644 index 0000000..c37d3bb Binary files /dev/null and b/screenshots/django-test-app-admin.png differ diff --git a/screenshots/django-test-app.png b/screenshots/django-test-app.png new file mode 100644 index 0000000..b4b277b Binary files /dev/null and b/screenshots/django-test-app.png differ