- Clone repo
cp ._env_example .env
- Create a new postgres database
createdb djangocms_test
. Set the database url in.env
Note that you might have to editpg.cof
totrust
connections on localhost - Create an AWS S3 bucket following the instructions here Also follow the CORS instructions at the bottom of the guide
- Edit
.env
with the 3 AWS values needed to connect to your S3 bucket - Start the project locally,
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver
- Login to project (
localhost:8000
) and create a page with anImage
component to test S3 is setup correctly locally - Create new Heroku project, using the
postgres
addon andheroku/python
build pack - In the
Settings
tab of your Heroku project, add your 3 AWS environment variables,SECRET_KEY
variable, addDISABLE_COLLECTSTATIC
env variable with value of1
. - Deploy the project to Heroku
heroku push https://git.heroku...
- Run the djangocms migrations on your heroku instance
heroku run python manage.py migrate
- Create a django admin user to log in to start making content
heroku run python manage.py createsuperuser
- Go to your Heroku project, create a page, and add an
Image
component to make sure S3 is correctly setup.
If you spot anything incorrect, create an issue and let me know!