Add hint to run db migration in production

This commit is contained in:
Sandro 2019-11-25 12:07:07 +01:00 committed by GitHub
parent 89a5fbb7f9
commit 25f959c44b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -395,6 +395,7 @@ in production.
Run the `manage.py collectstatic` command whenever files in the `/static/` Run the `manage.py collectstatic` command whenever files in the `/static/`
directory change. This command collects all the static files inside the `static-collected` directory. directory change. This command collects all the static files inside the `static-collected` directory.
Configure your web server to serve files from this directory under the `/static/` prefix. Configure your web server to serve files from this directory under the `/static/` prefix.
* Database migration should be run after each update to make sure the database schemas are up to date. You can do that with `./manage.py migrate`.
* Processes that need to be running constantly. * Processes that need to be running constantly.
* `manage.py runserver` is intended for development only. Do not use it in production, * `manage.py runserver` is intended for development only. Do not use it in production,
instead consider using [uWSGI](https://uwsgi-docs.readthedocs.io/en/latest/) or instead consider using [uWSGI](https://uwsgi-docs.readthedocs.io/en/latest/) or