root / settings.py.dist @ 049a5a10
History | View | Annotate | Download (5.4 kB)
1 | a3af8464 | Leonidas Poulopoulos | # Django settings for flowspy project. |
---|---|---|---|
2 | a3af8464 | Leonidas Poulopoulos | |
3 | a3af8464 | Leonidas Poulopoulos | DEBUG = True |
4 | a3af8464 | Leonidas Poulopoulos | TEMPLATE_DEBUG = DEBUG |
5 | a3af8464 | Leonidas Poulopoulos | |
6 | a3af8464 | Leonidas Poulopoulos | ADMINS = ( |
7 | a3af8464 | Leonidas Poulopoulos | # ('Your Name', 'your_email@domain.com'), |
8 | a3af8464 | Leonidas Poulopoulos | ) |
9 | a3af8464 | Leonidas Poulopoulos | |
10 | 049a5a10 | Leonidas Poulopoulos | import djcelery |
11 | 049a5a10 | Leonidas Poulopoulos | djcelery.setup_loader() |
12 | 049a5a10 | Leonidas Poulopoulos | |
13 | 049a5a10 | Leonidas Poulopoulos | |
14 | a3af8464 | Leonidas Poulopoulos | MANAGERS = ADMINS |
15 | a3af8464 | Leonidas Poulopoulos | |
16 | a3af8464 | Leonidas Poulopoulos | DATABASES = { |
17 | a3af8464 | Leonidas Poulopoulos | 'default': { |
18 | 049a5a10 | Leonidas Poulopoulos | 'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
19 | 049a5a10 | Leonidas Poulopoulos | 'NAME': '', # Or path to database file if using sqlite3. |
20 | a3af8464 | Leonidas Poulopoulos | 'USER': '', # Not used with sqlite3. |
21 | a3af8464 | Leonidas Poulopoulos | 'PASSWORD': '', # Not used with sqlite3. |
22 | a3af8464 | Leonidas Poulopoulos | 'HOST': '', # Set to empty string for localhost. Not used with sqlite3. |
23 | a3af8464 | Leonidas Poulopoulos | 'PORT': '', # Set to empty string for default. Not used with sqlite3. |
24 | 049a5a10 | Leonidas Poulopoulos | 'OPTIONS': { |
25 | 049a5a10 | Leonidas Poulopoulos | "init_command": "SET storage_engine=INNODB", |
26 | 049a5a10 | Leonidas Poulopoulos | } |
27 | a3af8464 | Leonidas Poulopoulos | } |
28 | a3af8464 | Leonidas Poulopoulos | } |
29 | a3af8464 | Leonidas Poulopoulos | |
30 | a3af8464 | Leonidas Poulopoulos | # Local time zone for this installation. Choices can be found here: |
31 | a3af8464 | Leonidas Poulopoulos | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
32 | a3af8464 | Leonidas Poulopoulos | # although not all choices may be available on all operating systems. |
33 | a3af8464 | Leonidas Poulopoulos | # On Unix systems, a value of None will cause Django to use the same |
34 | a3af8464 | Leonidas Poulopoulos | # timezone as the operating system. |
35 | a3af8464 | Leonidas Poulopoulos | # If running in a Windows environment this must be set to the same as your |
36 | a3af8464 | Leonidas Poulopoulos | # system time zone. |
37 | 049a5a10 | Leonidas Poulopoulos | TIME_ZONE = 'Europe/Athens' |
38 | 049a5a10 | Leonidas Poulopoulos | |
39 | 049a5a10 | Leonidas Poulopoulos | # Language code for this installation. All choices can be found here: |
40 | 049a5a10 | Leonidas Poulopoulos | # http://www.i18nguy.com/unicode/language-identifiers.html |
41 | 049a5a10 | Leonidas Poulopoulos | _ = lambda s: s |
42 | 049a5a10 | Leonidas Poulopoulos | |
43 | 049a5a10 | Leonidas Poulopoulos | LANGUAGES = ( |
44 | 049a5a10 | Leonidas Poulopoulos | ('el', _('Greek')), |
45 | 049a5a10 | Leonidas Poulopoulos | ('en', _('English')), |
46 | 049a5a10 | Leonidas Poulopoulos | ) |
47 | a3af8464 | Leonidas Poulopoulos | |
48 | a3af8464 | Leonidas Poulopoulos | # Language code for this installation. All choices can be found here: |
49 | a3af8464 | Leonidas Poulopoulos | # http://www.i18nguy.com/unicode/language-identifiers.html |
50 | a3af8464 | Leonidas Poulopoulos | LANGUAGE_CODE = 'en-us' |
51 | a3af8464 | Leonidas Poulopoulos | |
52 | a3af8464 | Leonidas Poulopoulos | SITE_ID = 1 |
53 | a3af8464 | Leonidas Poulopoulos | |
54 | a3af8464 | Leonidas Poulopoulos | # If you set this to False, Django will make some optimizations so as not |
55 | a3af8464 | Leonidas Poulopoulos | # to load the internationalization machinery. |
56 | a3af8464 | Leonidas Poulopoulos | USE_I18N = True |
57 | a3af8464 | Leonidas Poulopoulos | |
58 | a3af8464 | Leonidas Poulopoulos | # If you set this to False, Django will not format dates, numbers and |
59 | a3af8464 | Leonidas Poulopoulos | # calendars according to the current locale |
60 | a3af8464 | Leonidas Poulopoulos | USE_L10N = True |
61 | a3af8464 | Leonidas Poulopoulos | |
62 | a3af8464 | Leonidas Poulopoulos | # Absolute path to the directory that holds media. |
63 | a3af8464 | Leonidas Poulopoulos | # Example: "/home/media/media.lawrence.com/" |
64 | a3af8464 | Leonidas Poulopoulos | MEDIA_ROOT = '' |
65 | a3af8464 | Leonidas Poulopoulos | |
66 | a3af8464 | Leonidas Poulopoulos | # URL that handles the media served from MEDIA_ROOT. Make sure to use a |
67 | a3af8464 | Leonidas Poulopoulos | # trailing slash if there is a path component (optional in other cases). |
68 | a3af8464 | Leonidas Poulopoulos | # Examples: "http://media.lawrence.com", "http://example.com/media/" |
69 | a3af8464 | Leonidas Poulopoulos | MEDIA_URL = '' |
70 | a3af8464 | Leonidas Poulopoulos | |
71 | a3af8464 | Leonidas Poulopoulos | # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a |
72 | a3af8464 | Leonidas Poulopoulos | # trailing slash. |
73 | a3af8464 | Leonidas Poulopoulos | # Examples: "http://foo.com/media/", "/media/". |
74 | 049a5a10 | Leonidas Poulopoulos | ADMIN_MEDIA_PREFIX = '/admin/media/' |
75 | a3af8464 | Leonidas Poulopoulos | |
76 | a3af8464 | Leonidas Poulopoulos | # Make this unique, and don't share it with anybody. |
77 | a3af8464 | Leonidas Poulopoulos | SECRET_KEY = 'fju0e4zu-thi7qf@93voi5eeot21@a*e54)%89xe-7iorqcimk' |
78 | a3af8464 | Leonidas Poulopoulos | |
79 | a3af8464 | Leonidas Poulopoulos | # List of callables that know how to import templates from various sources. |
80 | a3af8464 | Leonidas Poulopoulos | TEMPLATE_LOADERS = ( |
81 | a3af8464 | Leonidas Poulopoulos | 'django.template.loaders.filesystem.Loader', |
82 | a3af8464 | Leonidas Poulopoulos | 'django.template.loaders.app_directories.Loader', |
83 | a3af8464 | Leonidas Poulopoulos | # 'django.template.loaders.eggs.Loader', |
84 | a3af8464 | Leonidas Poulopoulos | ) |
85 | a3af8464 | Leonidas Poulopoulos | |
86 | 049a5a10 | Leonidas Poulopoulos | TEMPLATE_CONTEXT_PROCESSORS = ( |
87 | 049a5a10 | Leonidas Poulopoulos | "django.contrib.auth.context_processors.auth", |
88 | 049a5a10 | Leonidas Poulopoulos | "django.core.context_processors.debug", |
89 | 049a5a10 | Leonidas Poulopoulos | "django.core.context_processors.i18n", |
90 | 049a5a10 | Leonidas Poulopoulos | "django.core.context_processors.media", |
91 | 049a5a10 | Leonidas Poulopoulos | "django.contrib.messages.context_processors.messages" |
92 | 049a5a10 | Leonidas Poulopoulos | ) |
93 | 049a5a10 | Leonidas Poulopoulos | |
94 | a3af8464 | Leonidas Poulopoulos | MIDDLEWARE_CLASSES = ( |
95 | 049a5a10 | Leonidas Poulopoulos | 'django.middleware.cache.UpdateCacheMiddleware', |
96 | a3af8464 | Leonidas Poulopoulos | 'django.middleware.common.CommonMiddleware', |
97 | a3af8464 | Leonidas Poulopoulos | 'django.contrib.sessions.middleware.SessionMiddleware', |
98 | a3af8464 | Leonidas Poulopoulos | 'django.middleware.csrf.CsrfViewMiddleware', |
99 | a3af8464 | Leonidas Poulopoulos | 'django.contrib.auth.middleware.AuthenticationMiddleware', |
100 | a3af8464 | Leonidas Poulopoulos | 'django.contrib.messages.middleware.MessageMiddleware', |
101 | 049a5a10 | Leonidas Poulopoulos | 'django.middleware.cache.FetchFromCacheMiddleware', |
102 | 049a5a10 | Leonidas Poulopoulos | ) |
103 | 049a5a10 | Leonidas Poulopoulos | |
104 | 049a5a10 | Leonidas Poulopoulos | AUTHENTICATION_BACKENDS = ( |
105 | 049a5a10 | Leonidas Poulopoulos | 'flowspy.djangobackends.shibauthBackend.shibauthBackend', |
106 | 049a5a10 | Leonidas Poulopoulos | 'django.contrib.auth.backends.ModelBackend', |
107 | a3af8464 | Leonidas Poulopoulos | ) |
108 | a3af8464 | Leonidas Poulopoulos | |
109 | a3af8464 | Leonidas Poulopoulos | ROOT_URLCONF = 'flowspy.urls' |
110 | a3af8464 | Leonidas Poulopoulos | |
111 | 049a5a10 | Leonidas Poulopoulos | STATIC_URL = '/home/leopoul/projects/flowspy/static' |
112 | 049a5a10 | Leonidas Poulopoulos | |
113 | a3af8464 | Leonidas Poulopoulos | TEMPLATE_DIRS = ( |
114 | 049a5a10 | Leonidas Poulopoulos | '/home/leopoul/projects/flowspy/templates/', |
115 | a3af8464 | Leonidas Poulopoulos | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
116 | a3af8464 | Leonidas Poulopoulos | # Always use forward slashes, even on Windows. |
117 | a3af8464 | Leonidas Poulopoulos | # Don't forget to use absolute paths, not relative paths. |
118 | a3af8464 | Leonidas Poulopoulos | ) |
119 | a3af8464 | Leonidas Poulopoulos | |
120 | a3af8464 | Leonidas Poulopoulos | INSTALLED_APPS = ( |
121 | 049a5a10 | Leonidas Poulopoulos | 'monkey_patch', |
122 | a3af8464 | Leonidas Poulopoulos | 'django.contrib.auth', |
123 | a3af8464 | Leonidas Poulopoulos | 'django.contrib.contenttypes', |
124 | a3af8464 | Leonidas Poulopoulos | 'django.contrib.sessions', |
125 | a3af8464 | Leonidas Poulopoulos | 'django.contrib.sites', |
126 | a3af8464 | Leonidas Poulopoulos | 'django.contrib.messages', |
127 | a3af8464 | Leonidas Poulopoulos | 'flowspec', |
128 | 049a5a10 | Leonidas Poulopoulos | 'poller', |
129 | 049a5a10 | Leonidas Poulopoulos | # 'south', |
130 | a3af8464 | Leonidas Poulopoulos | # Uncomment the next line to enable the admin: |
131 | 049a5a10 | Leonidas Poulopoulos | 'django.contrib.admin', |
132 | a3af8464 | Leonidas Poulopoulos | # Uncomment the next line to enable admin documentation: |
133 | 049a5a10 | Leonidas Poulopoulos | 'django.contrib.admindocs', |
134 | 049a5a10 | Leonidas Poulopoulos | 'django_extensions', |
135 | 049a5a10 | Leonidas Poulopoulos | 'djcelery', |
136 | 049a5a10 | Leonidas Poulopoulos | 'peers', |
137 | 049a5a10 | Leonidas Poulopoulos | 'accounts' |
138 | a3af8464 | Leonidas Poulopoulos | ) |
139 | 049a5a10 | Leonidas Poulopoulos | |
140 | 049a5a10 | Leonidas Poulopoulos | LOGIN_URL = '/fod/welcome' |
141 | 049a5a10 | Leonidas Poulopoulos | |
142 | 049a5a10 | Leonidas Poulopoulos | CACHE_BACKEND = "memcached://127.0.0.1:11211/?timeout=600" |
143 | 049a5a10 | Leonidas Poulopoulos | |
144 | 049a5a10 | Leonidas Poulopoulos | AUTH_PROFILE_MODULE = 'accounts.UserProfile' |
145 | 049a5a10 | Leonidas Poulopoulos | |
146 | 049a5a10 | Leonidas Poulopoulos | NETCONF_DEVICE = "" |
147 | 049a5a10 | Leonidas Poulopoulos | NETCONF_USER = "" |
148 | 049a5a10 | Leonidas Poulopoulos | NETCONF_PASS = "" |
149 | 049a5a10 | Leonidas Poulopoulos | ROUTES_FILTER = "<configuration><routing-options><flow/></routing-options></configuration>" |
150 | 049a5a10 | Leonidas Poulopoulos | ROUTE_FILTER = "<configuration><routing-options><flow><route><name>%s</name></route></flow></routing-options></configuration>" |
151 | 049a5a10 | Leonidas Poulopoulos | COMMIT_CONFIRMED_TIMEOUT = "120" |
152 | 049a5a10 | Leonidas Poulopoulos | EXPIRATION_DAYS_OFFSET = 7 |
153 | 049a5a10 | Leonidas Poulopoulos | COMMIT = True |
154 | 049a5a10 | Leonidas Poulopoulos | |
155 | 049a5a10 | Leonidas Poulopoulos | USE_X_FORWARDED_HOST = True |
156 | 049a5a10 | Leonidas Poulopoulos | |
157 | 049a5a10 | Leonidas Poulopoulos | BROKER_HOST = "localhost" |
158 | 049a5a10 | Leonidas Poulopoulos | BROKER_PORT = 11300 |
159 | 049a5a10 | Leonidas Poulopoulos | POLLS_TUBE = 'polls' |
160 | 049a5a10 | Leonidas Poulopoulos | BROKER_VHOST = "/" |
161 | 049a5a10 | Leonidas Poulopoulos | CELERY_CONCURRENCY = 1 |
162 | 049a5a10 | Leonidas Poulopoulos | |
163 | 049a5a10 | Leonidas Poulopoulos | # List of modules to import when celery starts. |
164 | 049a5a10 | Leonidas Poulopoulos | CELERY_IMPORTS = ("flowspec.tasks", ) |
165 | 049a5a10 | Leonidas Poulopoulos | |
166 | 049a5a10 | Leonidas Poulopoulos | ## Result store settings. |
167 | 049a5a10 | Leonidas Poulopoulos | #CELERY_RESULT_BACKEND = "database" |
168 | 049a5a10 | Leonidas Poulopoulos | #CELERY_RESULT_DBURI = "sqlite:///flowspec_dev.db" |
169 | 049a5a10 | Leonidas Poulopoulos | |
170 | 049a5a10 | Leonidas Poulopoulos | ## Broker settings. |
171 | 049a5a10 | Leonidas Poulopoulos | BROKER_URL = "beanstalk://localhost:11300//" |
172 | 049a5a10 | Leonidas Poulopoulos | |
173 | 049a5a10 | Leonidas Poulopoulos | SHIB_AUTH_AFFILIATION = '' |
174 | 049a5a10 | Leonidas Poulopoulos | SHIB_ADMIN_DOMAIN = '' |
175 | 049a5a10 | Leonidas Poulopoulos | SHIB_LOGOUT_URL = 'https://netdev.grnet.gr/Shibboleth.sso/Logout' |