phpbb: Make the username case-insensitve on login again.
[matthijs/projects/dorestad-bookings.git] / southsettings.py
1 # Database settings for when doing a database migration using south,
2 # which requires more privileges.
3
4 import sys
5 if len(sys.argv) >= 2 and 'manage.py' in sys.argv[0] and sys.argv[1] == 'migrate':
6     import south
7
8     try:
9         # We cache the prompted values in the south module, since the
10         # settings module gets loaded multiple times...
11         DATABASE_USER = south.cached_db_user
12         DATABASE_PASSWORD = south.cached_db_pw
13     except AttributeError:
14         DATABASE_USER = raw_input("Privileged database user: ")
15         DATABASE_PASSWORD = raw_input("Database password for %s: " % DATABASE_USER)
16         south.cached_db_user = DATABASE_USER
17         south.cached_db_pw = DATABASE_PASSWORD