Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 9f03c3a4fa
Fetching contributors…

Cannot retrieve contributors at this time

96 lines (75 sloc) 2.359 kB
# This is your project's main settings file that can be committed to your
# repo. If you need to override a setting locally, use settings_local.py
from funfactory.settings_base import *
# Make this unique, and don't share it with anybody.
SECRET_KEY = '1iz#v0m55@h26^m6hxk3a7at*h$qj_2a$juu1#nv50548j(x1v'
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'jingo.Loader',
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
)
JINGO_EXCLUDE_APPS = (
"admin", "debug_toolbar", "comments",
)
# Bundles is a dictionary of two dictionaries, css and js, which list css files
# and js files that can be bundled together by the minify app.
MINIFY_BUNDLES = {
'css': {
'main': (
'css/normalize.css',
'css/main.css',
),
'example_css': (
'css/examples/main.css',
),
},
'js': {
'main': (
'js/libs/jquery-1.4.4.min.js',
'js/main.js',
),
'example_js': (
'js/libs/jquery-1.4.4.min.js',
),
}
}
INSTALLED_APPS = INSTALLED_APPS + (
'django_browserid',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.admin',
'django.contrib.admindocs',
'examples',
"profiles",
"registration",
"badger_multiplayer",
"badger",
# migrations
'south',
)
TEMPLATE_CONTEXT_PROCESSORS = TEMPLATE_CONTEXT_PROCESSORS + (
'django_browserid.context_processors.browserid_form',
)
AUTHENTICATION_BACKENDS = (
'django_browserid.auth.BrowserIDBackend',
'django.contrib.auth.backends.ModelBackend'
)
AUTH_PROFILE_MODULE = "profiles.UserProfile"
BROWSERID_VERIFICATION_URL = 'https://browserid.org/verify'
BROWSERID_CREATE_USER = True
def username_algo(email):
from django.contrib.auth.models import User
cnt, base_name = 0, email.split('@')[0]
username = base_name
while User.objects.filter(username=username).count() > 0:
cnt += 1
username = '%s_%s' % (base_name, cnt)
return username
BROWSERID_USERNAME_ALGO = username_algo
LOGIN_REDIRECT_URL = '/profiles/home'
LOGIN_REDIRECT_URL_FAILURE = '/'
SOUTH_LOGGING_ON = False
SOUTH_TESTS_MIGRATE = False
SKIP_SOUTH_TESTS = True
OBI_BASE_URL = "http://beta.openbadges.org/"
Jump to Line
Something went wrong with that request. Please try again.