From: Aleksander Ɓukasz Date: Thu, 12 Dec 2013 09:49:51 +0000 (+0100) Subject: Allow for skipping collect static step X-Git-Tag: 0.1.10 X-Git-Url: https://git.mdrn.pl/fnpdjango.git/commitdiff_plain/df2dd3e58a7da87b65691976a3069f271589552d Allow for skipping collect static step --- diff --git a/fnpdjango/deploy/__init__.py b/fnpdjango/deploy/__init__.py index cd3c579..5428127 100644 --- a/fnpdjango/deploy/__init__.py +++ b/fnpdjango/deploy/__init__.py @@ -16,6 +16,7 @@ Then set up some env properties: localsettings_dst_path (optional): path indicating where to copy the localsettings file, relative to django_root_path (defaults to project_name/localsettings.py) + skip_collect_static (optional): if True, Django collectstatic command is not called """ from os.path import abspath, dirname, exists, join from django.utils.crypto import get_random_string @@ -260,6 +261,9 @@ def pre_collectstatic(): def collectstatic(): """Collect static files""" print '>>> collectstatic' + if env.get('skip_collect_static', False): + print '... skipped' + return require('app_path', 'project_name') with cd(get_django_root_path('current')): run('%(app_path)s/ve/bin/python manage.py collectstatic --noinput' % env, pty=True) diff --git a/setup.py b/setup.py index 298fcbe..d2ac745 100755 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ def whole_trees(package_dir, paths): setup( name='fnpdjango', - version='0.1.9.1', + version='0.1.10', author='Radek Czajka', author_email='radoslaw.czajka@nowoczesnapolska.org.pl', url = '',