You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -35,8 +35,8 @@ Try it
35
35
cd django-cms-quickstart
36
36
docker compose build web
37
37
docker compose up -d database_default
38
-
docker compose run web python manage.py migrate
39
-
docker compose run web python manage.py createsuperuser
38
+
docker compose run --rm web python manage.py migrate
39
+
docker compose run --rm web python manage.py createsuperuser
40
40
docker compose up -d
41
41
42
42
Then open http://django-cms-quickstart.127.0.0.1.nip.io:8000 (or just http://127.0.0.1:8000) in your browser.
@@ -77,7 +77,7 @@ Updating requirements
77
77
The project uses a django best practise two step approach, freezing all dependencies with pip-tools. Here is how to update requirements:
78
78
79
79
1. Change `requirements.in` according to your needs. There is no need to pin the package versions here unless you have a good reason (i.e. known incompatibilities)
80
-
2. Run `docker compose run web pip-compile requirements.in >> requirements.txt`
80
+
2. Run `docker compose run --rm web pip-compile requirements.in >> requirements.txt`
81
81
3. `requirements.txt` should now have changed
82
82
4. Rebuild the container `docker compose build web` and restart `docker compose up -d`
0 commit comments