Skip to main content

Swiftwind for Heroku Deployment

Project description

For more details see the Swiftwind project.


Environment variables:

# Should be setup automatically for you:
SECRET_KEY='<a random value>'

# If you are using HTTPS you may wish to set the following yourself:
HTTPS=1  # Will ensure site is served over HTTPS only
HSTS_SECONDS=100000  # Will enable HSTS, and set the seconds timeout
HSTS_INCLUDE_SUBDOMAINS=1  # Apply HSTS to subdomains

Required Heroku Addons

The free plan for each of the following addons will be setup:

  • Postgres
  • Redis


This project is also designed to support deployment to dokku. To do so you will need:

You can deploy as follows:

# Get the repo
git clone
cd swiftwind-heroku

# Create the app and set the config
dokku apps:create swiftwind
dokku config:set SECRET_KEY=random-string

dokku postgres:create swiftwind
dokku postgres:link swiftwind swiftwind

dokku redis:create swiftwind
dokku redis:link swiftwind swiftwind

git push dokku
dokku run ./ migrate
# Create a user you will use to login as
dokku run ./ createsuperuser
# Set currency as you wish (GBP, EUR, USD etc)
dokku run ./ swiftwind_create_accounts --currency USD


Django does not display very helpful errors when deploying into production, and for good reason. However, you can enable debugging output to help fix any server errors you may see when accessing sentry in your browser:

heroku config:set DEBUG=1
heroku config:unset DEBUG

You can also view the server logs:

heroku logs -t

Note you can replace heroku with dokku in any of the above commands.


Developed by Adam Charnock. I’m a freelance developer, so do get in touch if you have a project.

swiftwind-heroku is packaged using seed.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for swiftwind-heroku, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size swiftwind_heroku-0.2.0-py3-none-any.whl (8.5 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size swiftwind-heroku-0.2.0.tar.gz (6.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page