2 from base import Setting, SettingSet
\r
3 from django.utils.translation import ugettext_lazy as _
\r
5 UPLOAD_SET = SettingSet('paths', _('File upload settings'), _("""
\r
6 File uploads related settings.
\r
9 UPFILES_FOLDER = Setting('UPFILES_FOLDER', os.path.join(os.path.dirname(os.path.dirname(__file__)),'upfiles'), UPLOAD_SET, dict(
\r
10 label = _("Uploaded files folder"),
\r
12 The filesystem path where uploaded files will be stored. Please note that this folder must exist.
\r
15 UPFILES_ALIAS = Setting('UPFILES_ALIAS', '/upfiles/', UPLOAD_SET, dict(
\r
16 label = _("Uploaded files alias"),
\r
18 The url alias for uploaded files. Notice that if you change this setting, you'll need to restart your site.
\r
21 ALLOW_MAX_FILE_SIZE = Setting('ALLOW_MAX_FILE_SIZE', 2.5, UPLOAD_SET, dict(
\r
22 label = _("Max file size"),
\r
24 The maximum allowed file size for uploads in mb.
\r