equal
deleted
inserted
replaced
14 |
14 |
15 |
15 |
16 # Quick-start development settings - unsuitable for production |
16 # Quick-start development settings - unsuitable for production |
17 # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ |
17 # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ |
18 |
18 |
19 # SECURITY WARNING: keep the secret key used in production secret! |
|
20 SECRET_KEY = '0v@^(8qtky0yze1)_xrr15p9_lmd0xc@u^t--4_s7d6qlegd-l' |
|
21 |
|
22 # SECURITY WARNING: don't run with debug turned on in production! |
|
23 DEBUG = True |
19 DEBUG = True |
24 |
20 |
25 TEMPLATE_DEBUG = True |
21 TEMPLATE_DEBUG = True |
26 |
22 |
27 ALLOWED_HOSTS = [] |
23 ALLOWED_HOSTS = [] |
28 |
|
29 URL_JAMESPOT = 'http://fui-ammico.jamespot.pro/api/api.php?&k=6c8bfcea247e8a5841288269887d88f0&d=2016-01-31&m=EXT-IRI&v=2.0' |
|
30 |
|
31 |
24 |
32 # Application definition |
25 # Application definition |
33 |
26 |
34 INSTALLED_APPS = ( |
27 INSTALLED_APPS = ( |
35 'django.contrib.admin', |
28 'django.contrib.admin', |
64 |
57 |
65 REST_FRAMEWORK = { |
58 REST_FRAMEWORK = { |
66 # Use Django's standard `django.contrib.auth` permissions, |
59 # Use Django's standard `django.contrib.auth` permissions, |
67 # or allow read-only access for unauthenticated users. |
60 # or allow read-only access for unauthenticated users. |
68 'DEFAULT_PERMISSION_CLASSES': [ |
61 'DEFAULT_PERMISSION_CLASSES': [ |
69 'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly' |
62 'rest_framework.authentication.SessionAuthentication' |
70 ] |
63 ] |
71 } |
|
72 |
|
73 # Database |
|
74 # https://docs.djangoproject.com/en/1.7/ref/settings/#databases |
|
75 |
|
76 DATABASES = { |
|
77 'default': { |
|
78 'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. |
|
79 'NAME': 'ammico_db', # Or path to database file if using sqlite3. |
|
80 'USER': 'postgres', # Not used with sqlite3. |
|
81 'PASSWORD': 'postgres', # Not used with sqlite3. |
|
82 'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3. |
|
83 'PORT': '5432', # Set to empty string for default. Not used with sqlite3. |
|
84 } |
|
85 } |
64 } |
86 |
65 |
87 CACHES = { |
66 CACHES = { |
88 'default': { |
67 'default': { |
89 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', |
68 'BACKEND': 'django.core.cache.backends.db.DatabaseCache', |
107 |
86 |
108 # Static files (CSS, JavaScript, Images) |
87 # Static files (CSS, JavaScript, Images) |
109 # https://docs.djangoproject.com/en/1.7/howto/static-files/ |
88 # https://docs.djangoproject.com/en/1.7/howto/static-files/ |
110 |
89 |
111 STATIC_URL = '/static/' |
90 STATIC_URL = '/static/' |
|
91 |
|
92 from config import * #@UnusedWildImport |
|
93 |