Commits

Cellarosi Marco  committed df57626

Added a new variable in fabfile to custom static and media url and root path

  • Participants
  • Parent commits cda1df8

Comments (0)

Files changed (1)

File fagungis/example_fabfile.py

     env.django_media_path = join(env.code_root, 'media')
     #  django static dir
     env.django_static_path = join(env.code_root, 'static')
+    #  django media url and root dir
+    env.django_media_url = '/site_media/media/'
+    env.django_media_root = env.code_root
+    #  django static url and root dir
+    env.django_static_url = '/site_media/static/'
+    env.django_static_root = env.code_root
     #  do you use south in your django project?
     env.south_used = False
     #  virtualenv root