diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-01-15 21:14:30 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-01-15 21:14:30 -0300 |
commit | eb3501e4b14bf3ad785e8cfc641f28fb0d7f24f6 (patch) | |
tree | f4beb3a3eb9171ad328d6c6604bf5aa7107439e8 /askbot/deployment | |
parent | 89ba4e0652ec517385c6b997e64109935d5cc73c (diff) | |
download | askbot-eb3501e4b14bf3ad785e8cfc641f28fb0d7f24f6.tar.gz askbot-eb3501e4b14bf3ad785e8cfc641f28fb0d7f24f6.tar.bz2 askbot-eb3501e4b14bf3ad785e8cfc641f28fb0d7f24f6.zip |
made deployer omit staticfiles app with django < 1.3 so that users are forced to install it manually
Diffstat (limited to 'askbot/deployment')
-rw-r--r-- | askbot/deployment/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/askbot/deployment/__init__.py b/askbot/deployment/__init__.py index 6f7a86f6..d7eb017e 100644 --- a/askbot/deployment/__init__.py +++ b/askbot/deployment/__init__.py @@ -3,6 +3,7 @@ module for deploying askbot """ import os.path import sys +import django from optparse import OptionParser from askbot.utils import console from askbot.deployment import messages @@ -126,6 +127,12 @@ def deploy_askbot(directory, options): path_utils.create_path(directory) + if django.VERSION[0] == 1 and django.VERSION[1] < 3: + #force people install the django-staticfiles app + context['staticfiles_app'] = None + else: + context['staticfiles_app'] = 'django.contrib.staticfiles' + path_utils.deploy_into( directory, new_project = create_new_project, |