GREENROOM
- DEV MODE: to run project without collecting static files
./manage.py runserver
- TEST MODE: to run the project with collected static files:
./runserver-greenroom.sh
- sample settings_local.py
##-- helpers --## import os
prepend_path_with_root = lambda *l: os.path.join(os.getcwd(), *l)
##-- settings --##
HOST = 'http://localhost.mygreenroom.herokuapp.com:8000'
DEBUG = TEMPLATE_DEBUG = True
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': prepend_path_with_root('greenroom.db'), 'USER': '', 'PASSWORD': '', 'HOST': '', 'PORT': '', } }
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage' MEDIA_ROOT = '/tmp/media' MEDIA_URL = '/media/'
STATICFILES_STORAGE = 'pipeline.storage.PipelineCachedStorage' STATICFILES_DIRS = (prepend_path_with_root('static'), prepend_path_with_root('greenroom', 'apps', 'django_facebook_patched', 'static')) STATIC_ROOT = '/tmp/static' STATIC_URL = '/static/'
PIPELINE = False
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
also add an alias in /etc/hosts: mygreenroom.herokuapp.com http://localhost.mygreenroom.herokuapp.com:8000
FACEBOOK_APP_ID = 'ask-someone' FACEBOOK_APP_SECRET = 'ask-someone'