Project Resources

Git Resources
Django Resources
Heroku Resources

Git Resources

Git Cheat Sheet

Django Resources

Heroku Resources

Avoiding the macOS / psycopg2 error

Use this code at the bottom of your ‘settings.py’ file to try/catch the import of django-heroku so it only has to work when deployed to heroku and not locally:

# Activate Django-Heroku.
try:
    # Configure Django App for Heroku.
    import django_heroku
    django_heroku.settings(locals())
except ImportError:
    found = False