Commit
…inor settings tweaks
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ | |
PROJECT_ROOT, PROJECT_MODULE_NAME = os.path.split( | ||
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 | ||
TEMPLATE_DEBUG = DEBUG | ||
|
@@ -31,10 +33,7 @@ | |
ADMIN_MEDIA_PREFIX = '/admin-media/' | ||
|
||
MEDIA_URL = '/uploads/' | ||
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'uploads') | ||
|
||
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' | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
from myproject.conf.settings import * | ||
|
||
DEBUG=False | ||
TEMPLATE_DEBUG=False | ||
|
||
# Database connection info. | ||
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. | ||
DATABASE_NAME = ':memory:' # Or path to database file if using sqlite3. | ||
DEBUG = False | ||
TEMPLATE_DEBUG = DEBUG | ||
|
||
DATABASES = { | ||
'default': { | ||
'ENGINE': 'django.db.backends.sqlite3', | ||
'NAME': ':memory:', | ||
} | ||
} | ||
ROOT_URLCONF = 'myproject.conf.test.urls' | ||
|
||
INSTALLED_APPS += ('django_nose', ) | ||
INSTALLED_APPS += ('django_nose',) | ||
|
||
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' |
any reason to remove STATIC_ROOT entirely? Can we have a default value there?