From df2dd3e58a7da87b65691976a3069f271589552d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 12 Dec 2013 10:49:51 +0100 Subject: [PATCH] Allow for skipping collect static step --- fnpdjango/deploy/__init__.py | 4 ++++ setup.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 = '', -- 2.20.1