Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 30 lines (24 sloc) 0.963 kB
d2a8bf4 Safe access to settings without requiring explicit import into projec…
Ivan Sagalaev authored
1 '''
2 Default values for settings.
3 If you want to change these settings define them in your project's settings
4 file.
5 '''
6
7 def getsetting(name, defaults=locals()):
8 '''
9 Tries to get a setting from Django's default settings object. If not
10 available returns a local default.
11 '''
12 from django.conf import settings
13 return getattr(settings, name, defaults.get(name))
ce1b00b @daevaorn added default dust settings with retry storage preset
daevaorn authored
14
15 # Retry storage backend setting -- import path for storage module
16 # Default is DB backend
9b9bd66 @daevaorn fixed default retry storage path
daevaorn authored
17 DUST_RETRY_STORAGE_BACKEND = 'django_dust.backends.db'
18684fd @daevaorn added more default settings
daevaorn authored
18
70528ab @daevaorn Fixed default settings description
daevaorn authored
19 # Timeout in seconds for accessing hosts over network. Defaults to 2.
18684fd @daevaorn added more default settings
daevaorn authored
20 DUST_TIMEOUT = 2
21
70528ab @daevaorn Fixed default settings description
daevaorn authored
22 # List of file storage hosts
d2a8bf4 Safe access to settings without requiring explicit import into projec…
Ivan Sagalaev authored
23 DUST_HOSTS = ['127.0.0.1']
70528ab @daevaorn Fixed default settings description
daevaorn authored
24
25 # Whether to use a local file system. If files are stored on those same
26 # servers that handle web requests then setting this flag to True
27 # allows django_dust to access files locally saving time and bandwidth
28 # on existence checking operations. Defaults to False.
d2a8bf4 Safe access to settings without requiring explicit import into projec…
Ivan Sagalaev authored
29 DUST_USE_LOCAL_FS = False
Something went wrong with that request. Please try again.