# -*- coding: utf-8 -*-
"""
Django settings/base.py for MySmile project.
"""
import os


# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
#~ BASE_DIR = os.path.realpath(os.path.dirname(__file__))
BASE_DIR =  os.path.dirname(os.path.realpath(__file__))

#~ SITE_ID = 1

########## APP CONFIGURATION
DJANGO_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    #~ 'django.contrib.sites',
    # Uncomment the next line to enable the admin:
    #'django.contrib.admin',
)

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

ROOT_URLCONF = 'mysmile.urls'

WSGI_APPLICATION = 'mysmile.wsgi.application'

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

LANGUAGE_CODE = 'en'

TIME_ZONE = 'UTC'

USE_I18N = True

USE_L10N = True

USE_TZ = True

LANGUAGES = (
    ('en', 'English'),
    ('uk', 'Українська'),
    ('ru', 'Русский'),
)


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

STATIC_URL = '/static/'
#~ MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
MEDIA_URL = ('/media/')

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

TEMPLATE_DIRS = (
    os.path.join(BASE_DIR, 'templates'),
)



"""
app settings
Empty '' string means setting "off"

http://en.wikipedia.org/wiki/Telephone_numbering_plan 

go to the http://www.google.com/analytics/ to get the GOOGLE_ANALITYCS_CODE

for inner_type page only <= MAX_INNERLINK_HISTORY
"""

app_settings = {
    'PHONE': '000 000 000 00 00', 
    'EMAIL': 'myemail@email.com',
    'SKYPE': 'myskype',
    'DOMAIN': '', # put '' for localhost 127.0.0.1
    'GOOGLE_ANALITYCS_CODE': '',
    'MAX_INNERLINK_HISTORY': 4, 
    'REST_API': False
}



@@ -1707,21 +1707,10 @@
 %22%22%22%0A
-app settings%0A
+* 
 Empt
@@ -1727,16 +1727,25 @@
 g means 
+some app_
 setting 
@@ -1750,17 +1750,105 @@
 g %22off%22%0A
-%0A
+* Put 'DOMAIN': '' for 127.0.0.1 and registered 'domain.com' for production%0A* For PHONE: 
 http://e
@@ -1898,10 +1898,11 @@
 an %0A
-%0Ag
+* G
 o to
@@ -1976,10 +1976,11 @@
 ODE%0A
-%0Af
+* F
 or i

improve project structure