to django_root_path (defaults to project_name/localsettings.py)
skip_collect_static (optional): if True, Django collectstatic command is not called
"""
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
from fabric.api import *
from os.path import abspath, dirname, exists, join
from django.utils.crypto import get_random_string
from fabric.api import *
def upload_localsettings_sample():
"Fill out localsettings template and upload as a sample."
env.secret_key = get_random_string(50)
def upload_localsettings_sample():
"Fill out localsettings template and upload as a sample."
env.secret_key = get_random_string(50)
path = '%(app_path)s/releases/%(release)s' % dict(app_path = env['app_path'], release = release)
if 'django_root_path' in env:
path = join(path, env['django_root_path'])
path = '%(app_path)s/releases/%(release)s' % dict(app_path = env['app_path'], release = release)
if 'django_root_path' in env:
path = join(path, env['django_root_path'])