GithubHelp home page GithubHelp logo

rovel / django-herokuify Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nigma/django-herokuify

0.0 2.0 0.0 155 KB

Automatic Django configuration and utilities for Heroku

License: BSD 3-Clause "New" or "Revised" License

django-herokuify's Introduction

Automatic Django configuration and utilities for Heroku

Quickstart

Simplify Django configuration in two easy steps:

Include django-herokuify and pylibmc packages in your requirements.txt file.

In the Django settings.py of your Heroku project add:

import herokuify

from herokuify.common import *              # Common settings, SSL proxy header
from herokuify.aws import *                 # AWS access keys as configured in env
from herokuify.mail.mailgun import *        # Email settings for Mailgun add-on
from herokuify.mail.sendgrid import *       # ... or Sendgrid

DATABASES = herokuify.get_db_config()       # Database config
CACHES = herokuify.get_cache_config()       # Cache config for Memcache/MemCachier

Additionally, you can use storage backends that works well with Amazon S3 and Django Compressor:

DEFAULT_FILE_STORAGE = "herokuify.storage.S3MediaStorage"
MEDIA_URL = "https://{0}.s3.amazonaws.com/media/".format(AWS_STORAGE_BUCKET_NAME)

STATICFILES_STORAGE = "herokuify.storage.CachedS3StaticStorage"
STATIC_URL = "https://{0}.s3.amazonaws.com/static/".format(AWS_STORAGE_BUCKET_NAME)

COMPRESS_STORAGE = "herokuify.storage.CachedS3StaticStorage"
COMPRESS_OFFLINE = True

Note: The pylibmc package entry in your project's root requirements.txt file is necessary for Heroku Django buildpack to properly configure the libmemcached C dependency.

Documentation

See docs for more information: http://pythonhosted.org/django-herokuify/

Dependencies

django-herokuify installs the following dependencies by default:

  • Caching and cache configuration:

    pylibmc>=1.2.3
    django-pylibmc-sasl>=0.2.4
    django-heroku-memcacheify>=0.3
    
  • DB configuration:

    dj-database-url>=0.2.1
    django-heroku-postgresify>=0.2
    
  • Storage backend:

    django-storages>=1.1.5
    boto>=2.6.0
    

License

django-herokuify is released under the BSD license.

Other Resources

django-herokuify's People

Contributors

nigma avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.