Ignore:
Timestamp:
06/11/12 09:44:42 (7 years ago)
Author:
mnagni
Message:

FIxes uncorrect context_processor definition

File:
1 edited

Legend:

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

    r8665 r8666  
    22import os 
    33 
    4 def decodeRelativePath(relPath): 
     4def decode_relative_path(relPath): 
    55    return os.path.join(os.path.dirname(__file__), relPath).replace('\\', '/')   
    66 
     
    1414 
    1515DATABASES = { 
    16     # This parameters are usually set during the deployment configuration process 
     16    # This parameters are usually set during  
     17    # the deployment configuration process 
    1718    'default': { 
    18         'ENGINE': 'DB_ENGINE', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 
    19         'NAME': 'DB_NAME',                      # Or path to database file if using sqlite3. 
    20         'USER': 'DB_USER',                      # Not used with sqlite3. 
    21         'PASSWORD': 'DB_PASSWORD',                  # Not used with sqlite3. 
    22         'HOST': 'DB_HOST',                      # Set to empty string for localhost. Not used with sqlite3. 
    23         'PORT': 'DB_PORT',                      # Set to empty string for default. Not used with sqlite3. 
     19        # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.                 
     20        'ENGINE': 'DB_ENGINE',  
     21        # Or path to database file if using sqlite3. 
     22        'NAME': 'DB_NAME', 
     23        # Not used with sqlite3.                       
     24        'USER': 'DB_USER', 
     25        # Not used with sqlite3.                       
     26        'PASSWORD': 'DB_PASSWORD', 
     27        # Set to empty string for localhost. Not used with sqlite3.         
     28        'HOST': 'DB_HOST',                       
     29        # Set to empty string for default. Not used with sqlite3.         
     30        'PORT': 'DB_PORT',                       
    2431    }  
    2532} 
     
    109116 
    110117TEMPLATE_DIRS = ( 
    111     decodeRelativePath('static/templates')  
     118    decode_relative_path('static/templates')  
    112119    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". 
    113120    # Always use forward slashes, even on Windows. 
     
    136143if APPLICATION_ROOT.startswith('PROJECT_NAME_'): 
    137144    APPLICATION_ROOT = '' 
    138 ACCOUNT_ACTIVATION_DAYS = 7 # One-week activation window; you may, of course, use a different value. 
     145     
     146# One-week activation window; you may, of course, use a different value.     
     147ACCOUNT_ACTIVATION_DAYS = 7  
    139148import socket 
    140149try: 
    141150    HOSTNAME = socket.gethostname() 
    142 except: 
     151except Exception: 
    143152    HOSTNAME = 'localhost' 
    144153URL_ROOT = 'http://' + HOSTNAME + '/' + APPLICATION_ROOT 
     
    181190} 
    182191 
    183 import dev_settings 
     192import dj_security.dev_settings 
Note: See TracChangeset for help on using the changeset viewer.