--- /dev/null
+web: gunicorn karmaworld.wsgi
"""
secrets_path = env.code_root + '/karmaworld/secret'
- secrets_files = ('filepicker.py', 'static_s3.py', 'db_settings.py', 'drive.py', 'client_secrets.json', 'drive.p12')
+ secrets_files = ('filepicker.py', 'static_s3.py', 'drive.py', 'client_secrets.json', 'drive.p12')
errors = []
for sfile in secrets_files:
# -*- coding:utf8 -*-
# Copyright (C) 2012 FinalsClub Foundation
""" Common settings and globals. """
-
-
from datetime import timedelta
import sys
from os.path import abspath, basename, dirname, join, normpath
from sys import path
-
from djcelery import setup_loader
-
+import dj_database_url
from karmaworld.secret.filepicker import FILEPICKER_API_KEY as fp_api
FILEPICKER_API_KEY = fp_api
########## DATABASE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.',
- 'NAME': '',
- 'USER': '',
- 'PASSWORD': '',
- 'HOST': '',
- 'PORT': '',
- }
-}
+DATABASES = {'default': dj_database_url.config()}
########## END DATABASE CONFIGURATION
########## END EMAIL CONFIGURATION
-########## DATABASE CONFIGURATION
-# See: https://docs.djangoproject.com/en/dev/ref/settings/#databases
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.postgresql_psycopg2',
- 'NAME': 'karmanotes',
- 'USER': 'djkarma',
- 'PASSWORD': 'karma',
- 'HOST': 'localhost',
- 'PORT': '', # Set to empty string for default. Not used with sqlite3.
- }
-}
-########## END DATABASE CONFIGURATION
-
########## STATIC CONFIG
# See: https://docs.djangoproject.com/en/dev/ref/settings/#static-url
STATIC_URL = '/static/'
'django_nose',
)
+DEBUG_TOOLBAR_PATCH_SETTINGS = False
+
DEBUG_TOOLBAR_PANELS = (
'debug_toolbar.panels.versions.VersionsPanel',
'debug_toolbar.panels.timer.TimerPanel',
from common import *
-from karmaworld.secret.db_settings import PROD_DB_NAME
-from karmaworld.secret.db_settings import PROD_DB_USERNAME
-from karmaworld.secret.db_settings import PROD_DB_PASSWORD
-
try:
# Include email is settings are there
from karmaworld.secret.email import SMTP_HOST
########## END EMAIL CONFIGURATION
-########## DATABASE CONFIGURATION
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.postgresql_psycopg2',
- 'NAME': PROD_DB_NAME,
- 'USER': PROD_DB_USERNAME,
- 'PASSWORD': PROD_DB_PASSWORD,
- 'HOST': '',
- 'PORT': '', # Set to empty string for default. Not used with sqlite3.
- }
-}
-########## END DATABASE CONFIGURATION
-
-
########## CACHE CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#caches
CACHES = {
# -*- coding:utf8 -*-
# Copyright (C) 2012 FinalsClub Foundation
""" Production settings and globals. """
-
-
from os import environ
from datetime import timedelta
from S3 import CallingFormat
from common import *
-
from karmaworld.secret.static_s3 import *
-from karmaworld.secret.db_settings import PROD_DB_NAME
-from karmaworld.secret.db_settings import PROD_DB_USERNAME
-from karmaworld.secret.db_settings import PROD_DB_PASSWORD
-
try:
# Include email is settings are there
from karmaworld.secret.email import SMTP_HOST
url(r'^$', CourseListView.as_view(), name='home'),
)
+
+
+if settings.DEBUG:
+ import debug_toolbar
+ urlpatterns += patterns('',
+ url(r'^__debug__/', include(debug_toolbar.urls)),
+ )
+
"""
import os
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "karmaworld.settings.dev")
+from dj_static import Cling
import djcelery
djcelery.setup_loader()
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "karmaworld.settings.prod")
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here.
from django.core.wsgi import get_wsgi_application
-application = get_wsgi_application()
+application = Cling(get_wsgi_application())
# Apply WSGI middleware here.
# from helloworld.wsgi import HelloWorldApplication
psycopg2
pyth
querystring_parser
+gunicorn
+dj-database-url
-r common.txt
cssmin==0.1.4
pylibmc==1.2.3
-gunicorn==0.14.3
jsmin==2.0.2
amqplib==1.0.2
--- /dev/null
+Django>=1.5.0,<1.6.0
+django-celery==3.0.21
+django-compressor==1.2
+Fabric==1.5.3
+South==0.8.4
+supervisor==3.0b1
+oauth2client==1.0
+urllib3==1.5
+google-api-python-client==1.0
+django-grappelli==2.4.8
+django-taggit
+git+https://github.com/btbonval/django-filepicker.git
+filemagic==1.6
+requests
+beautifulsoup4
+pyopenssl
+python-twitter
+gdshortener
+git+https://github.com/flaptor/indextank-py.git
+git+https://github.com/jhilker/html2text.git
+django-allauth
+boto
+django-storages==1.1.4
+django-reversion
+django-ajax-selects
+git+https://github.com/btbonval/django-ajax-selects-cascade.git
+psycopg2
+pyth
+querystring_parser
+gunicorn
+dj-database-url
+django-kombu==0.9.4
+django-debug-toolbar
+django-debug-toolbar-template-timings
+ipython==0.13.1
+ipdb==0.7
+django-extensions==1.0.3 # some extra debugging tools for manage.py
+# Testing requirements
+django-nose==1.1
+coverage==3.6
+selenium==2.38.4
+mock
+cssmin==0.1.4
+pylibmc==1.2.3
+jsmin==2.0.2
+amqplib==1.0.2