Changeset 06e4045


Ignore:
Timestamp:
May 13, 2010, 6:01:05 AM (16 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, fysm-4-1, iframe, space-access, stable, stage, test-hooks
Children:
4210a1b
Parents:
d7a9b78
git-author:
Alex Dehnert <adehnert@…> (05/13/10 06:01:05)
git-committer:
Alex Dehnert <adehnert@…> (05/13/10 06:01:05)
Message:

Shamelessly lift some config too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/settings.py

    re8ff26d r06e4045  
    2222DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
    2323DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.
     24
     25ENABLE_SCRIPTS_AUTH = True
    2426
    2527# Local time zone for this installation. Choices can be found here:
     
    6365)
    6466
    65 MIDDLEWARE_CLASSES = (
     67MIDDLEWARE_CLASSES = [
    6668    'django.middleware.common.CommonMiddleware',
    6769    'django.contrib.sessions.middleware.SessionMiddleware',
    6870    'django.contrib.auth.middleware.AuthenticationMiddleware',
    69 )
     71]
     72
     73AUTHENTICATION_BACKENDS = [
     74    'django.contrib.auth.backends.ModelBackend',
     75]
     76
     77if ENABLE_SCRIPTS_AUTH:
     78    MIDDLEWARE_CLASSES.append('mit.ScriptsRemoteUserMiddleware')
     79    AUTHENTICATION_BACKENDS.insert(0, 'mit.ScriptsRemoteUserBackend')
     80
    7081
    7182ROOT_URLCONF = 'asadb.urls'
Note: See TracChangeset for help on using the changeset viewer.