Include handlebars templates in build-local-server-tarball

update-prod-static needs DEBUG=False. This also replaces our
local_settings.py before generating anything included in the tarball.

(imported from commit 890cd9d1a44acfd2c20e1662e0c68132c633d1b3)
This commit is contained in:
Kevin Mehall
2013-11-12 14:37:23 -05:00
parent d0b81f6b2e
commit e6ca5d265d
2 changed files with 15 additions and 6 deletions

View File

@@ -28,8 +28,10 @@ from local_settings import *
SERVER_GENERATION = int(time.time())
# Uncomment end of next line to test JS/CSS minification.
DEBUG = not DEPLOYED # and platform.node() != 'your-machine'
if not 'DEBUG' in globals():
# Uncomment end of next line to test JS/CSS minification.
DEBUG = not DEPLOYED # and platform.node() != 'your-machine'
TEMPLATE_DEBUG = DEBUG
TEST_SUITE = False
@@ -297,10 +299,7 @@ STATIC_URL = '/static/'
# here so that urls.py can read it.
PIPELINE = not DEBUG
# Use prod settings if exporting static files in build-local-server-tarball
COLLECTSTATIC = 'manage.py' in sys.argv[0] and (len(sys.argv) > 1 and sys.argv[1] == 'collectstatic')
if DEBUG and not COLLECTSTATIC:
if DEBUG:
STATICFILES_STORAGE = 'pipeline.storage.PipelineStorage'
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.AppDirectoriesFinder',