From 2da3da9466836ac0b158d898830fe26a4d640bba Mon Sep 17 00:00:00 2001 From: root Date: Tue, 18 Dec 2012 09:10:35 -0500 Subject: migrate to mysql --- scannerjammer/settings.py | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'scannerjammer/settings.py') 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/" -- cgit v1.2.3-70-g09d2