1. Massimiliano Ravelli
  2. django-fagungis

Commits

Cellarosi Marco  committed 28e5f0b

Delete dynamic key assign. Moved in fabfile

  • Participants
  • Parent commits df57626
  • Branches default

Comments (0)

Files changed (1)

File fagungis/tasks.py

View file
     else:
         template = '%s/conf/nginx.conf' % fagungis_path
     context = copy(env)
-    # Media directory
-    path = env.django_media_path.rstrip('/')
-    context['django_media_location'] = basename(path)
-    context['django_media_root'] = dirname(path)
-    # Static directory
-    path = env.django_static_path.rstrip('/')
-    context['django_static_location'] = basename(path)
-    context['django_static_root'] = dirname(path)
     # Template
     upload_template(template, env.nginx_conf_file,
                     context=context, backup=False)