Skip to content

Commit

Permalink
Start setting up web frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed Jan 18, 2013
1 parent bdc6a22 commit 0c80207
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions frontend/unicorn/unicorn/settings.py
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit 0c80207

Please sign in to comment.