Commit
…inor settings tweaks
- Loading branch information
There are no files selected for viewing
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
|
@@ -8,6 +8,8 @@ | ||
PROJECT_ROOT, PROJECT_MODULE_NAME = os.path.split( | PROJECT_ROOT, PROJECT_MODULE_NAME = os.path.split( | ||
os.path.dirname(os.path.realpath(myproject.__file__)) | os.path.dirname(os.path.realpath(myproject.__file__)) | ||
) | ) | ||
# This assumes the project is installed in the src directory of a virtualenv. | |||
VAR_ROOT = os.path.join(os.path.dirname(os.path.dirname(PROJECT_ROOT)), 'var') | |||
|
|
||
DEBUG = True | DEBUG = True | ||
TEMPLATE_DEBUG = DEBUG | TEMPLATE_DEBUG = DEBUG | ||
|
@@ -31,10 +33,7 @@ | ||
ADMIN_MEDIA_PREFIX = '/admin-media/' | ADMIN_MEDIA_PREFIX = '/admin-media/' | ||
|
|
||
MEDIA_URL = '/uploads/' | MEDIA_URL = '/uploads/' | ||
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'uploads') | |||
|
|||
STATIC_URL = '/static/' | STATIC_URL = '/static/' | ||
STATIC_ROOT = os.path.join(PROJECT_ROOT, PROJECT_MODULE_NAME, 'static') | |||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
SmileyChris
Author
Member
|
|||
|
|
||
ROOT_URLCONF = 'myproject.conf.urls' | ROOT_URLCONF = 'myproject.conf.urls' | ||
|
|
||
|
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,14 +1,16 @@ | |||
from myproject.conf.settings import * | from myproject.conf.settings import * | ||
|
|
||
DEBUG=False | DEBUG = False | ||
TEMPLATE_DEBUG=False | TEMPLATE_DEBUG = DEBUG | ||
|
|||
# Database connection info. | |||
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. | |||
DATABASE_NAME = ':memory:' # Or path to database file if using sqlite3. | |||
|
|
||
DATABASES = { | |||
'default': { | |||
'ENGINE': 'django.db.backends.sqlite3', | |||
'NAME': ':memory:', | |||
} | |||
} | |||
ROOT_URLCONF = 'myproject.conf.test.urls' | ROOT_URLCONF = 'myproject.conf.test.urls' | ||
|
|
||
INSTALLED_APPS += ('django_nose', ) | INSTALLED_APPS += ('django_nose',) | ||
|
|
||
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' | TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' |
any reason to remove STATIC_ROOT entirely? Can we have a default value there?