summaryrefslogtreecommitdiff
path: root/stapp/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'stapp/settings.py')
-rw-r--r--stapp/settings.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/stapp/settings.py b/stapp/settings.py
index a688151..63e4b78 100644
--- a/stapp/settings.py
+++ b/stapp/settings.py
@@ -9,17 +9,6 @@ ADMINS = (
MANAGERS = ADMINS
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': 'stapp.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.
- }
-}
-
URL_ROOT = ''
# Local time zone for this installation. Choices can be found here:
@@ -47,7 +36,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 = ''
+MEDIA_ROOT = os.path.join(PROJECT_DIR, "media")
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
@@ -62,7 +51,7 @@ STATIC_ROOT = ''
# URL prefix for static files.
# Example: "http://media.lawrence.com/static/"
-STATIC_URL = '/static/'
+STATIC_URL = URL_ROOT + '/static/'
# URL prefix for admin static files -- CSS, JavaScript and images.
# Make sure to use a trailing slash.