Changeset 8729 for mauRepo


Ignore:
Timestamp:
15/03/13 11:20:35 (7 years ago)
Author:
mnagni
Message:

Incomplete - # 22686: [CEDA Site Python Port] Resource Registration - support for access to multiple resources
 http://team.ceda.ac.uk/trac/ceda/ticket/22686

Location:
mauRepo/dj_security/trunk/dj_security
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/dj_security/trunk/dj_security/settings.py

    r8723 r8729  
    1313) 
    1414MANAGERS = ADMINS 
    15 JEEVES_URL = 'http://cidev1.jc.rl.ac.uk/dj_jeeves' 
    1615 
    1716""" 
     
    160159    # 'django.contrib.admindocs', 
    161160) 
    162  
    163 NOT_ENCODE = ['password', 'backend'] 
    164 SHARED_SECRET = 'sharedsecret'    
    165 APPLICATION_ROOT = 'PROJECT_NAME_PAR/' 
    166 if APPLICATION_ROOT.startswith('PROJECT_NAME_'): 
    167     APPLICATION_ROOT = '' 
    168 COOKIE_DOMAIN = 'COOKIE_DOMAIN_PAR' 
    169 if COOKIE_DOMAIN.startswith('COOKIE_DOMAIN_'): 
    170     COOKIE_DOMAIN = 'uk' 
    171      
     161   
    172162# One-week activation window; you may, of course, use a different value.     
    173163ACCOUNT_ACTIVATION_DAYS = 7  
    174  
    175 # Adds to the site framework the current machine  
    176 # where dj_security is deployed  
    177 import socket 
    178 try: 
    179     HOSTNAME = socket.gethostname() 
    180 except Exception: 
    181     HOSTNAME = 'localhost' 
    182 from django.contrib.sites.models import Site  
    183 from django.db.utils import DatabaseError    
    184 try: 
    185     site = Site() 
    186     site.name = HOSTNAME 
    187     site.domain = HOSTNAME + '/' + APPLICATION_ROOT 
    188     site.save() 
    189     #Sets the default site 
    190     SITE_ID = site.pk 
    191 except DatabaseError as ex: 
    192     print str(ex) 
    193  
    194  
    195164 
    196165TEMPLATE_CONTEXT_PROCESSORS = ( 
     
    247216    } 
    248217} 
     218 
     219################## 
     220# LOCAL SETTINGS # 
     221################## 
     222 
     223# Allow any settings to be defined in local_settings.py which should be 
     224# ignored in your version control system allowing for settings to be 
     225# defined per machine. 
     226try: 
     227    from local_settings import * 
     228except ImportError: 
     229    pass 
Note: See TracChangeset for help on using the changeset viewer.