~daker/loco-team-portal/fix.806005

« back to all changes in this revision

Viewing changes to loco_directory/settings.py

  • Committer: Dave Walker (Daviey)
  • Date: 2010-02-16 17:14:13 UTC
  • mfrom: (51.2.1 loco-directory)
  • Revision ID: davewalker@ubuntu.com-20100216171413-nyzfbnk5o0nd4kuy
* Added verbose output if local_settings.py couldn't be imported.
* Updated branch to reflect current trunk.
* /TRANSITION.TO.0.2
   - Removed cp of lp-data as the cache isn't that significant and we are now using unauth'd API
   - Modified to reflect local_settings.py usage

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
DATABASE_ENGINE = 'sqlite3'
24
24
DATABASE_NAME = 'loco_directory.db'
25
 
#DATABASE_USER = ''
26
 
#DATABASE_PASSWORD = ''
27
 
#DATABASE_HOST = '127.0.0.1'
28
 
#DATABASE_PORT = '5432'
29
25
 
30
26
# Local time zone for this installation. Choices can be found here:
31
27
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
133
129
LOGIN_URL = '/openid/login'
134
130
LOGIN_REDIRECT_URL = '/'
135
131
 
 
132
import logging
 
133
try:
 
134
  from local_settings import *
 
135
except ImportError:
 
136
  logging.warning("No local_settings.py were found. See INSTALL for instructions.")