- create a copy of the https://github.com/django-cms/djangocms-template (copy it locally to your own repo or fork it on github)
- In control.divio.com in your account or organisation create a new project on divio (NEW PROJECT FROM GIT REPOSITORY)
- Then in Divio Control
- go to services and create a postgres and a persistent storage service
- go to Env Vars and set
DEBUG
toTrue
for the test env - go to Settings and set the following Release Commands:
python manage.py migrate
python manage.py clear_cache
python manage.py test_pages_on_real_db
- go to Repository and set up a webhook for your repository
- update the
.divio/config-example.json
file with the values from your project, in order to find your slug and id run a divio-cli commanddivio project list -g
- in the main README.md remove everything and replace it with the
README.md template
section from below (don't forgot to update the urls in it). Also go through the following steps:- remove the
docs
directory - it should be stored only within this source repository - remove the
LICENSE
files - if you're planning to use only one CMS language, you can go to frontend/global/ts/ckeditor-config.js and update the SCAYT line to
scayt_autoStartup = true
- remove the
- deploy the test environment
⚠ ️BEWARE: If you get a migration error on Divio deployment, follow the instructions for database reset placed in setup instructions
For what. specific final steps see the respective nuclino file.
You can access the stage server without logging in through the url https://{domain}.aldryn.io/?anonymous-access=true
Built on Python 3.9, Django 3.1, DjangoCMS 3.9, Webpack 5, TypeScript 4.
See the general setup instructions