Skip to content

Commit 2ce534f

Browse files
author
Mario Colombo
committed
better deployment docs
1 parent 043dcee commit 2ce534f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,15 @@ Here is the official django CMS repository: [https://github.com/django-cms/djang
5252

5353
## Deployment
5454

55-
Env variables:
55+
Note that this is just a demo project to get you started. If you want a full production ready site with all the bells and whistles we recommend you have a look at https://github.com/django-cms/djangocms-template instead.
56+
57+
#### Env variables
5658
- to deploy this project in testing modus (recommended) set the environment variable `DJANGO_DEBUG` to `True` in your hosting environment.
57-
- For production environment instead set the env var `DOMAIN` to the domain that you want the application to run under.
58-
- If you want the media hosted on S3 set the `DEFAULT_FILE_STORAGE` variable
59+
- For production environment (if `DEBUG` is false) django requires you to whitelist the domain. Set the env var `DOMAIN` to the host, i.e. `www.domain.com` or `*.domain.com`.
60+
- If you want the media hosted on S3 set the `DEFAULT_FILE_STORAGE` variable accordingly.
5961

60-
During deployment the following commands must be executed:
61-
- `./manage.py collectstatic --noinput`
62+
#### Deployment Commands
63+
Configure your hosting environment to run the following commands on every deployment:
64+
- `./manage.py migrate`
6265
- `./manage.py collectstatic --noinput`
6366

0 commit comments

Comments
 (0)