From b5b94f3350764a87a88bad6f2a70f78b2eff6684 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 30 Jul 2011 13:08:47 +0200 Subject: [PATCH] better defaults --- nginx/vhost.in | 3 +++ oxdata/settings.py | 15 ++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/nginx/vhost.in b/nginx/vhost.in index fa6ac96..fa27a73 100644 --- a/nginx/vhost.in +++ b/nginx/vhost.in @@ -11,6 +11,9 @@ server { location /favicon.ico { root __PREFIX__/oxdata/static; } + location /robots.txt { + root __PREFIX__/oxdata/static; + } location /static { root __PREFIX__/oxdata; diff --git a/oxdata/settings.py b/oxdata/settings.py index eef2879..faee9c9 100644 --- a/oxdata/settings.py +++ b/oxdata/settings.py @@ -6,7 +6,7 @@ from os.path import join PROJECT_ROOT = os.path.normpath(os.path.dirname(__file__)) -DEBUG = True +DEBUG = False TEMPLATE_DEBUG = DEBUG JSON_DEBUG = DEBUG @@ -16,12 +16,12 @@ ADMINS = ( MANAGERS = ADMINS -DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. -DATABASE_NAME = 'dev.sqlite' # Or path to database file if using sqlite3. -DATABASE_USER = '' # Not used with sqlite3. -DATABASE_PASSWORD = '' # Not used with sqlite3. -DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. -DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. +DATABAES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': 'dev.sqlite' + } +} # Local time zone for this installation. Choices can be found here: # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name @@ -98,6 +98,7 @@ INSTALLED_APPS = ( 'djcelery', 'oxdata.lookup', +# 'oxdata.movie', 'oxdata.poster', 'oxdata.cover', )