Robert Myers committed 36091e2

adding a CANNULA_MEDIA_ROOT variable in init

Comments (0)

Files changed (2)

+import os
+CANNULA_DIR = os.path.abspath(os.path.dirname(__file__))
+CANNULA_MEDIA_ROOT = os.path.join(CANNULA_DIR, 'static')


 # Absolute filesystem path to the directory that will hold user-uploaded files.
 # Example: "/home/media/"
-import os
 import cannula
-CANNULA_DIR = os.path.dirname(cannula.__file__)
-MEDIA_ROOT = os.path.join(CANNULA_DIR, 'static')
 # URL that handles the media served from MEDIA_ROOT. Make sure to use a
 # trailing slash if there is a path component (optional in other cases).