Use StreamingIterator to avoid loading the whole movie file.
[audio.git] / src / archive / settings.py
index 5c8e5f1..91921a8 100644 (file)
@@ -36,13 +36,6 @@ except AttributeError:
                         "archive/final"))
 
 
-# here the app keeps temporary build files
-try:
-    BUILD_PATH = settings.ARCHIVE_BUILD_PATH
-except AttributeError:
-    BUILD_PATH = os.path.abspath(os.path.join(settings.MEDIA_ROOT,
-                        "archive/build"))
-
 UPLOAD_URL = getattr(
     settings,
     'ARCHIVE_UPLOAD_URL',
@@ -55,10 +48,18 @@ try:
 except AttributeError:
     PROJECT = 'Wolne Lektury'
 
-try:
-    LICENSE = settings.ARCHIVE_LICENSE
-except AttributeError:
-    LICENSE = 'http://creativecommons.org/licenses/by-sa/3.0/deed.pl'
+
+LICENSE = getattr(
+    settings,
+    'ARCHIVE_LICENSE',
+    'http://artlibre.org/licence/lal/pl/'
+)
+
+LICENSE_NAME = getattr(
+    settings, 'ARCHIVE_LICENSE_NAME',
+    'Licencja Wolnej Sztuki 1.3'
+)
+
 
 try:
     ORGANIZATION = settings.ARCHIVE_ORGANIZATION