Changeset 8845


Ignore:
Timestamp:
11/12/13 12:23:50 (6 years ago)
Author:
mnagni
Message:
 
Location:
mauRepo/dj_security/tags/0_0_5
Files:
1 edited
4 copied

Legend:

Unmodified
Added
Removed
  • mauRepo/dj_security/tags/0_0_5/dj_security/local_settings.py

    r8736 r8845  
    3131@author: mnagni 
    3232''' 
     33DEBUG = True 
     34 
     35DATABASES = { 
     36    "default": { 
     37        # Add "postgresql_psycopg2", "mysql", "sqlite3" or "oracle". 
     38        "ENGINE": "django.db.backends.postgresql_psycopg2", 
     39        # DB name or path to database file if using sqlite3. 
     40        "NAME": "dj_security_dev", 
     41        # Not used with sqlite3. 
     42        "USER": "badc", 
     43        # Not used with sqlite3. 
     44        "PASSWORD": "yps937g", 
     45        # Set to empty string for localhost. Not used with sqlite3. 
     46        "HOST": "cidev-db.jc.rl.ac.uk", 
     47        # Set to empty string for default. Not used with sqlite3. 
     48        "PORT": "5432", 
     49    }, 
     50    "userdb": { 
     51        "ENGINE": "django.db.backends.postgresql_psycopg2", 
     52        "NAME": "userdb_dev_5", 
     53        "USER": "badc", 
     54        "PASSWORD": "rtp569w", 
     55        "HOST": "bora.badc.rl.ac.uk", 
     56        "PORT": "5432", 
     57    }, 
     58} 
     59 
     60DATABASE_ROUTERS = ['dj_security.router.DSRouter'] 
     61 
     62NOT_ENCODE = ['password', 'backend'] 
     63    
     64APPLICATION_ROOT = 'PROJECT_NAME_PAR/' 
     65if APPLICATION_ROOT.startswith('PROJECT_NAME_'): 
     66    APPLICATION_ROOT = '' 
     67     
     68#COOKIE_DOMAIN = 'COOKIE_DOMAIN_PAR' 
     69#if COOKIE_DOMAIN.startswith('COOKIE_DOMAIN_'): 
     70COOKIE_DOMAIN = '.rl.ac.uk' 
     71     
     72 
     73 
     74AUTHENTICATION_BACKENDS = ('dj_security.views.dj_security_login.CedaUserAuthenticationBackend',)     
     75     
     76# One-week activation window; you may, of course, use a different value.     
     77ACCOUNT_ACTIVATION_DAYS = 7  
     78 
     79# Adds to the site framework the current machine  
     80# where dj_security is deployed  
     81SITE_PREFIX = "" 
     82#STATIC_URL = "/static/" 
     83#STATIC_URL = " http://team.ceda.ac.uk/svn/ceda/ceda_software/cedasite/ceda_themes/cedatheme_mf54/tags/v_0_2_2/cedatheme_mf54/static/" 
     84#STATIC_URL = "http://cidev1.jc.rl.ac.uk/dj_security/static/" 
     85 
     86import os 
     87# Full filesystem path to the project. 
     88PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) 
     89#STATIC_ROOT = os.path.join(PROJECT_ROOT, STATIC_URL.strip("/")) 
     90ALLOWED_HOSTS = ['*'] 
     91 
     92URL_REGISTRATION = 'http://localhost:8000/register' 
     93 
     94CC_RESET_PASSWORD = ['maurizio.nagni@stfc.ac.uk'] 
Note: See TracChangeset for help on using the changeset viewer.