Last active
August 29, 2015 14:24
-
-
Save wowkin2/35e3f459fc22216482d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.git | |
.idea | |
*.pyc | |
__pycache__ | |
local_settings.py | |
db.sqlite3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.sqlite3', | |
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), | |
} | |
} | |
DEBUG = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: gunicorn --log-file=- webapp.wsgi:application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Django==1.7 | |
dj-database-url==0.3.0 | |
dj-static==0.0.6 | |
gunicorn==19.1.0 | |
heroku==0.1.4 | |
psycopg2==2.5.1 | |
static==0.4 | |
whitenoise==1.0.3 | |
wsgiref==0.1.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "webapp.settings") | |
from django.core.wsgi import get_wsgi_application | |
from dj_static import Cling | |
application = Cling(get_wsgi_application()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment