Browse Source

Add hint to run db migration in production

pull/307/head
Sandro 5 years ago
committed by GitHub
parent
commit
25f959c44b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      README.md

+ 1
- 0
README.md 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


Loading…
Cancel
Save