Exemplo n.º 1
0
from common import component

component.install_components()
Exemplo n.º 2
0
# It happens again in main() because main() gets cached in some
# funky way that sometimes clears sys.path.
def _add_zip_files_to_path():
    for possible_zip_file in os.listdir('.'):
        if possible_zip_file.endswith('.zip'):
            if possible_zip_file in sys.path:
                continue
            logging.debug("adding %s to the sys.path", possible_zip_file)
            sys.path.insert(1, possible_zip_file)


_add_zip_files_to_path()

# Load extra components
from common import component
component.install_components()

# Google App Engine imports.
from google.appengine.ext.webapp import util

# Import the part of Django that we use here.
import django.core.handlers.wsgi


# More logging
def log_exception(*args, **kwds):
    """Django signal handler to log an exception."""
    cls, err = sys.exc_info()[:2]
    logging.exception('Exception in request: %s: %s', cls.__name__, err)

Exemplo n.º 3
0
# Gdata Stuff
GDATA_CONSUMER_KEY = ''
GDATA_CONSUMER_SECRET = ''

def default_email_sender():
  try:
    return os.environ['DJANGO_DEFAULT_FROM_EMAIL']
  except KeyError:
    return '*****@*****.**'

DEFAULT_FROM_EMAIL = default_email_sender()
DEFAULT_UNITTEST_TO_EMAIL = '*****@*****.**'

PROFILING_DATA_PATH = 'profiling/prof_db.csv'

DEBUG = True
TEMPLATE_DEBUG = True

GAE_DOMAIN = 'localhost:8000'
DOMAIN = 'localhost:8000'
COOKIE_DOMAIN = 'localhost'
WILDCARD_USER_SUBDOMAINS_ENABLED = False
SUBDOMAINS_ENABLED = False
SSL_LOGIN_ENABLED = False

from common.component import install_components
install_components()

from ragendja.settings_post import *