Changeset 8662 for mauRepo/dj_security


Ignore:
Timestamp:
05/11/12 15:50:26 (7 years ago)
Author:
mnagni
Message:

Refactoring of "static" and parametrization of settings.py database

Location:
mauRepo/dj_security/trunk
Files:
2 added
1 deleted
3 edited
1 moved

Legend:

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

    r8650 r8662  
    1515 
    1616DATABASES = { 
     17    # This parameters are usually set during the deployment configuration process 
    1718    'default': { 
    18         'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 
    19         'NAME': decodeRelativePath('.') + '/sqlite.db',                      # Or path to database file if using sqlite3. 
    20         'USER': '',                      # Not used with sqlite3. 
    21         'PASSWORD': '',                  # Not used with sqlite3. 
    22         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3. 
    23         'PORT': '',                      # Set to empty string for default. Not used with sqlite3. 
    24     } 
     19        'ENGINE': DB_ENGINE, # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 
     20        'NAME': DB_NAME,                      # Or path to database file if using sqlite3. 
     21        'USER': DB_USER,                      # Not used with sqlite3. 
     22        'PASSWORD': DB_PASSWORD,                  # Not used with sqlite3. 
     23        'HOST': DB_HOST,                      # Set to empty string for localhost. Not used with sqlite3. 
     24        'PORT': DB_PORT,                      # Set to empty string for default. Not used with sqlite3. 
     25    }  
    2526} 
    2627 
     
    174175    } 
    175176} 
     177 
     178import dev_settings 
  • mauRepo/dj_security/trunk/dj_security/urls.py

    r8650 r8662  
    2121 
    2222urlpatterns += patterns('dj_security.views.my_view', 
    23     (r'login$', 'my_login'), 
     23    (r'^login$', 'my_login'), 
    2424) 
    2525urlpatterns += patterns('dj_security.views.my_profile', 
    26     (r'accounts/profile/$', 'frontpage'), 
     26    (r'^accounts/profile/$', 'frontpage'), 
    2727) 
    2828print urlpatterns 
  • mauRepo/dj_security/trunk/resources/requirements.txt

    r8651 r8662  
    55django-registration==0.8 
    66python-openid==2.2.5 
     7#psycopg2 
Note: See TracChangeset for help on using the changeset viewer.