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.md
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -52,12 +52,15 @@ Here is the official django CMS repository: [https://github.com/django-cms/djang
52
52
53
53
## Deployment
54
54
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
56
58
- 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.
59
61
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:
0 commit comments