Permalink
Browse files

Start setting up web frontend

  • Loading branch information...
1 parent bdc6a22 commit 0c80207c72af1c1a5af542516f5175348ff93c65 @holdenk committed Jan 18, 2013
Showing with 21 additions and 12 deletions.
  1. +21 −12 frontend/unicorn/unicorn/settings.py
@@ -9,17 +9,25 @@
MANAGERS = ADMINS
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': '', # Or path to database file if using sqlite3.
- # The following settings are not used with sqlite3:
- 'USER': '',
- 'PASSWORD': '',
- 'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
- 'PORT': '', # Set to empty string for default.
- }
-}
+if (DEBUG):
+ DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3', # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
+ 'NAME' : './database' # Or path to database file if using sqlite3.
+ }
+ }
+else:
+ DATABASES = {
+ 'default': {
+ 'ENGINE':'django.db.backends.mysql',
+ 'NAME':'hobogitquest',
+ 'USER':'',
+ 'PASSWORD':'',
+ 'HOST':'localhost',
+ 'PORT':'3306'
+ }
+ }
+
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
@@ -95,7 +103,7 @@
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# Uncomment the next line for simple clickjacking protection:
- # 'django.middleware.clickjacking.XFrameOptionsMiddleware',
+ 'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
ROOT_URLCONF = 'unicorn.urls'
@@ -121,6 +129,7 @@
# Uncomment the next line to enable admin documentation:
'django.contrib.admindocs',
'social_auth',
+ 'verify',
)
# A sample logging configuration. The only tangible logging

0 comments on commit 0c80207

Please sign in to comment.