"""
Django settings for mysite project.

Generated by 'django-admin startproject' using Django 1.8.

For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
import sys

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))




# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'b4cvr2@a#tnu_pm@tek52_&l++z-nw*8gg91#i85dmx5$b6_jr'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []

SITE_ID = 1

# Application definition

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'photologue',
    'photologue_custom',
    'sortedm2m',
    'django.contrib.sites',
    'django.contrib.sitemaps',
   
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware',
)

ROOT_URLCONF = 'mysite.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR, 'mysite/templates'), ],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
                'django.template.context_processors.i18n',
                'django.template.context_processors.media',
                'django.template.context_processors.static',
            ],
        },
    },
]

WSGI_APPLICATION = 'mysite.wsgi.application'


# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}


# Internationalization
# https://docs.djangoproject.com/en/1.8/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'Europe/Berlin'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.8/howto/static-files/

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'public', 'static')

MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'public', 'media')

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, 'mysite/static'),
)

TEMPLATE_DIRS = (
    'mysite/templates',
)

LOGIN_REDIRECT_URL = '/'
LOGIN_URL = '/login'


@@ -370,16 +370,17 @@
 R, ...)%0A
+%0A
 import o
@@ -466,18 +466,16 @@
 __)))%0A%0A%0A
-%0A%0A
 # Quick-
@@ -814,31 +814,88 @@
 G = 
-True%0A%0AALLOWED_HOSTS = %5B
+False%0ATEMPLATE_DEBUG = False%0A%0AALLOWED_HOSTS = %5B'celinaitomek.pythonanywhere.com'
 %5D%0A%0AS
@@ -1141,26 +1141,8 @@
 s',%0A
-    'photologue',%0A
     
@@ -1158,24 +1158,42 @@
 ue_custom',%0A
+    'photologue',%0A
     'sortedm
@@ -1260,12 +1260,8 @@
 s',%0A
-   %0A
 )%0A%0AM
@@ -1748,16 +1748,65 @@
 eware',%0A
+    'django.middleware.locale.LocaleMiddleware',%0A
 )%0A%0AROOT_
@@ -1978,16 +1978,19 @@
 mplates'
+,  
 ), %5D,%0A  
@@ -2798,16 +2798,81 @@
 ite3'),%0A
+        'NAME': '/home/celinaitomek/wedding-gallery/db.sqlite3',%0A
     %7D%0A%7D%0A
@@ -3427,17 +3427,22 @@
 lates',%0A
-)
+    )%0A
 %0A%0ALOGIN_
@@ -3479,11 +3479,12 @@
  '/login
+/
 '%0A%0A

Update settings.py