forked from arachnys/cabot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mainly involved updating django-compressor and related changes
- Loading branch information
Showing
7 changed files
with
53 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
settings_dir = os.path.dirname(__file__) | ||
PROJECT_ROOT = os.path.abspath(settings_dir) | ||
|
||
TEMPLATE_DEBUG = DEBUG = os.environ.get("DEBUG", False) | ||
DEBUG = os.environ.get("DEBUG", False) | ||
|
||
ADMINS = ( | ||
('Admin', os.environ.get('ADMIN_EMAIL', '[email protected]')), | ||
|
@@ -75,6 +75,7 @@ | |
# URL prefix for static files. | ||
# Example: "http://media.lawrence.com/static/" | ||
STATIC_URL = '%s/static/' % URL_PREFIX | ||
COMPRESS_URL = STATIC_URL | ||
|
||
# Additional locations of static files | ||
STATICFILES_DIRS = [os.path.join(PROJECT_ROOT, 'static')] | ||
|
@@ -92,25 +93,25 @@ | |
'DJANGO_SECRET_KEY', '2FL6ORhHwr5eX34pP9mMugnIOd3jzVuT45f7w430Mt5PnEwbcJgma0q8zUXNZ68A') | ||
|
||
# List of callables that know how to import templates from various sources. | ||
TEMPLATE_LOADERS = ( | ||
'django.template.loaders.filesystem.Loader', | ||
'django.template.loaders.app_directories.Loader', | ||
) | ||
TEMPLATES = [{ | ||
'BACKEND': 'django.template.backends.django.DjangoTemplates', | ||
'DIRS': ( | ||
os.path.join(PROJECT_ROOT, 'templates'), | ||
), | ||
'APP_DIRS': True, | ||
}] | ||
|
||
MIDDLEWARE_CLASSES = ( | ||
'django.middleware.common.CommonMiddleware', | ||
'django.contrib.sessions.middleware.SessionMiddleware', | ||
'django.middleware.csrf.CsrfViewMiddleware', | ||
'django.contrib.auth.middleware.AuthenticationMiddleware', | ||
'django.contrib.auth.middleware.SessionAuthenticationMiddleware', | ||
'django.contrib.messages.middleware.MessageMiddleware', | ||
) | ||
|
||
ROOT_URLCONF = 'cabot.urls' | ||
|
||
TEMPLATE_DIRS = ( | ||
os.path.join(PROJECT_ROOT, 'templates'), | ||
) | ||
|
||
INSTALLED_APPS = ( | ||
'django.contrib.auth', | ||
'django.contrib.contenttypes', | ||
|
@@ -157,8 +158,6 @@ | |
|
||
COMPRESS_OFFLINE = not DEBUG | ||
|
||
COMPRESS_URL = '%s/static/' % URL_PREFIX | ||
|
||
RECOVERY_SNIPPETS_WHITELIST = ( | ||
r'https?://[^.]+\.hackpad\.com/[^./]+\.js', | ||
r'https?://gist\.github\.com/[^.]+\.js', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters