from django.conf import settings
from django.utils.translation import ugettext_lazy as _
+# This file holds the presettings of the app.
# A path to a directory from witch walk down so you can choose your files.
-DYNAMIC_LINK_MEDIA = settings.MEDIA_ROOT
+ DYNAMIC_LINK_MEDIA = settings.DYNAMIC_LINK_MEDIA
+ DYNAMIC_LINK_MEDIA = settings.MEDIA_ROOT
# A string that modify the serve url path:
-DYNAMIC_LINK_URL_BASE_COMPONENT = 'serve'
+ DYNAMIC_LINK_URL_BASE_COMPONENT = settings.DYNAMIC_LINK_URL_BASE_COMPONENT
+ DYNAMIC_LINK_URL_BASE_COMPONENT = 'serve'
# It's here because of not violate the DRY priciple.
TEXT_REQUEST_DOES_NOT_EXIST = _(u'This request is faulty')
-TEXT_REQUEST_IS_EXPIRED = _(u'Sorry, this request is already expired')
-# Look for data that overwrite the defaults
-# - variables from dl_settigns.py overwrite thus from settings and form presettings
-# - variables from settings.py overwrite thus form presettings
-# As you see it can't be used both at once. Settings.py is only used if there
- from dl_settings import *
- from settings import DYNAMIC_LINK_URL_BASE_COMPONENT
- from settings import DYNAMIC_LINK_MEDIA
+TEXT_REQUEST_IS_EXPIRED = _(u'Sorry, this request is already expired')