server/settings.py
changeset 22 609fa711b324
parent 15 a3b7c0823378
child 33 c71a015191f6
equal deleted inserted replaced
21:4e9e005bce90 22:609fa711b324
    23 DEBUG = True
    23 DEBUG = True
    24 
    24 
    25 TEMPLATE_DEBUG = True
    25 TEMPLATE_DEBUG = True
    26 
    26 
    27 ALLOWED_HOSTS = []
    27 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'
    28 
    30 
    29 
    31 
    30 # Application definition
    32 # Application definition
    31 
    33 
    32 INSTALLED_APPS = (
    34 INSTALLED_APPS = (
    71 # Database
    73 # Database
    72 # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
    74 # https://docs.djangoproject.com/en/1.7/ref/settings/#databases
    73 
    75 
    74 DATABASES = {
    76 DATABASES = {
    75     'default': {
    77     'default': {
    76         'ENGINE': 'django.db.backends.sqlite3',
    78         'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
    77         
    79         'NAME': 'ammico_db',                      # Or path to database file if using sqlite3.
    78         'NAME': os.path.join(BASE_DIR, 'db.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.
    79     }
    84     }
    80 }
    85 }
    81 
    86 
    82 CACHES = {
    87 CACHES = {
    83     'default': {
    88     'default': {