diff options
| author | root <root@lalalizard.com> | 2012-12-18 09:10:35 -0500 |
|---|---|---|
| committer | root <root@lalalizard.com> | 2012-12-18 09:10:35 -0500 |
| commit | 2da3da9466836ac0b158d898830fe26a4d640bba (patch) | |
| tree | 183b6f6739d369a9a25288a89c0946af37a9fdd4 /scannerjammer/settings.py | |
| parent | 54ed08ef75dbd005ecb8d0ac37073b1a74a985c0 (diff) | |
migrate to mysql
Diffstat (limited to 'scannerjammer/settings.py')
| -rw-r--r-- | scannerjammer/settings.py | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/scannerjammer/settings.py b/scannerjammer/settings.py index 19a5790..cc251d7 100644 --- a/scannerjammer/settings.py +++ b/scannerjammer/settings.py @@ -12,14 +12,23 @@ ADMINS = ( MANAGERS = ADMINS DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. + 'sqlite': { + + 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': os.path.join(os.path.dirname(__file__), '..', 'sqlite.db',), # Or path to database file if using sqlite3. - 'USER': '', # Not used with sqlite3. 'PASSWORD': '', # Not used with sqlite3. 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. - 'PORT': '', # Set to empty string for default. Not used with sqlite3. - } + 'PORT': '', # Set to empty string for default. Not used with sqlite3. + + }, + 'default' : { + 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. + 'USER': 'sj_main', # Not used with sqlite3. + 'PASSWORD': 'h1NRFheXVS9crbm3', # Not used with sqlite3. + 'NAME': 'sj_main', + 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. + 'PORT': '3306', # Set to empty string for default. Not used with sqlite3. + } } # Local time zone for this installation. Choices can be found here: @@ -46,7 +55,7 @@ USE_I18N = True USE_L10N = True # If you set this to False, Django will not use timezone-aware datetimes. -USE_TZ = False +USE_TZ = True # Absolute filesystem path to the directory that will hold user-uploaded files. # Example: "/home/media/media.lawrence.com/media/" |
