|
|
@@ -1,4 +1,4 @@
|
|
|
-# Django settings for pyc project.
|
|
|
+from os import path
|
|
|
|
|
|
DEBUG = True
|
|
|
TEMPLATE_DEBUG = DEBUG
|
|
|
@@ -12,7 +12,7 @@ MANAGERS = ADMINS
|
|
|
DATABASES = {
|
|
|
'default': {
|
|
|
'ENGINE': 'django.db.backends.sqlite3', # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3', 'oracle'
|
|
|
- 'NAME': None,
|
|
|
+ 'NAME': path.join(path.dirname(__file__), 'pyc.db'),
|
|
|
'USER': '',
|
|
|
'PASSWORD': '',
|
|
|
'HOST': '',
|
|
|
@@ -20,12 +20,6 @@ DATABASES = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-from os import path
|
|
|
-if path.exists('/home/dotcloud'):
|
|
|
- DATABASES['default']['NAME'] = '/home/dotcloud/pyc.db'
|
|
|
-else:
|
|
|
- DATABASES['default']['NAME'] = 'pyc.db'
|
|
|
-
|
|
|
# Local time zone for this installation. Choices can be found here:
|
|
|
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
|
|
|
# although not all choices may be available on all operating systems.
|
|
|
@@ -51,7 +45,7 @@ USE_L10N = True
|
|
|
|
|
|
# Absolute filesystem path to the directory that will hold user-uploaded files.
|
|
|
# Example: "/home/media/media.lawrence.com/media/"
|
|
|
-MEDIA_ROOT = path.expanduser('~/submissions')
|
|
|
+MEDIA_ROOT = path.join(path.dirname(__file__), '..', 'submissions')
|
|
|
|
|
|
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
|
|
# trailing slash.
|