So I supposed something wrong in my settings. So I decided to show you all
# -*- coding: utf-8 -*-
import sys, site
site.addsitedir('/virtualenvs/simpleboard/lib/python3.2/site-packages')
from os.path import abspath, dirname, join
sys.path.insert(0, '../..')
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ROOT_PATH = abspath(dirname(__file__))
ADMINS = (
# ('Your Name', '
your_...@socialauth.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': '/www/db/board.db'
}
}
TIME_ZONE = 'Europe/Moscow'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True
USE_L10N = True
USE_TZ = True
MEDIA_ROOT = ''
MEDIA_URL = ''
STATIC_ROOT = ''
STATIC_URL = '/static/'
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
SECRET_KEY = '#$5btppqih8=%ae^#&7en#kyi!vh%he9rg=ed#hm6fnw9^=umc'
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
)
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
ROOT_URLCONF = 'simpleboard.urls'
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'simpleboard.wsgi.application'
TEMPLATE_DIRS = (
join(ROOT_PATH, 'templates'),
)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
#'south',
# 'raven.contrib.django.raven_compat',
'social.apps.django_app.default',
'socialauth',
'emailconfirmation',
'account'
)
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'handlers': {
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
}
}
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.contrib.messages.context_processors.messages',
'social.apps.django_app.context_processors.backends',
)
AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
'social.backends.twitter.TwitterOAuth',
'social.backends.facebook.FacebookOAuth2',
'social.backends.instagram.InstagramOAuth2',
'social.backends.vk.VKOAuth2',
)
AUTH_PROFILE_MODULE = 'account.UserProfile'
SESSION_ENGINE = 'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
SESSION_SAVE_EVERY_REQUEST = True
SESSION_COOKIE_AGE = 86400 # sec
SESSION_COOKIE_DOMAIN = None
SESSION_COOKIE_NAME = 'DSESSIONID'
SESSION_COOKIE_SECURE = False
LOGIN_URL = '/'
LOGIN_REDIRECT_URL = '/done/'
URL_PATH = ''
SOCIAL_AUTH_STRATEGY = 'social.strategies.django_strategy.DjangoStrategy'
SOCIAL_AUTH_STORAGE = 'social.apps.django_app.default.models.DjangoStorage'
SOCIAL_AUTH_GOOGLE_OAUTH_EXTRA_SCOPE = [
'
https://www.googleapis.com/auth/drive',
'
https://www.googleapis.com/auth/userinfo.profile'
]
SOCIAL_AUTH_VK_OAUTH2_KEY = '3284197'
SOCIAL_AUTH_VK_OAUTH2_SECRET = 'b4t2yOzVqsSlDrIzNp35'
SOCIAL_AUTH_FACEBOOK_KEY = '514826991930448'
SOCIAL_AUTH_FACEBOOK_SECRET = '168594f45e3236b534b6122b59e2e386'
SOCIAL_AUTH_TWITTER_KEY = '3dZH6BHUUTf1rJMXxWSrKw'
SOCIAL_AUTH_TWITTER_SECRET = 'chbscRS1PUMTdq1yWDXHEKwPOLBGDj2hDrzVBU7tA8'
SOCIAL_AUTH_INSTAGRAM_KEY = '4d50a8dccca541efb3ae267dc1fe9428'
SOCIAL_AUTH_INSTAGRAM_SECRET = '98db72492dcf44148f6a0f4a2145bed8'
EMAIL_CONFIRMATION_DAYS = 2
DEFAULT_FROM_EMAIL = "
nor...@simpleboard.ru"
среда, 4 сентября 2013 г., 22:31:09 UTC+4 пользователь Matías Aguirre написал:Hi Sergey,