Fixed dbbackup

This commit is contained in:
Fergal Moran
2016-06-30 23:48:18 +01:00
parent 6d81a8eb6e
commit e5928fb273
3 changed files with 11 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ AUTHENTICATION_BACKENDS = global_settings.AUTHENTICATION_BACKENDS + (
'social.backends.google.GooglePlusAuth', 'social.backends.google.GooglePlusAuth',
'social.backends.twitter.TwitterOAuth', 'social.backends.twitter.TwitterOAuth',
'social.backends.yahoo.YahooOpenId', 'social.backends.yahoo.YahooOpenId',
'social.backends.facebook.FacebookOAuth2' 'social.backends.facebook.FacebookOAuth2',
) )

View File

@@ -80,7 +80,7 @@ TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + (
'django.contrib.auth.context_processors.auth', 'django.contrib.auth.context_processors.auth',
) )
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = [
'django.middleware.gzip.GZipMiddleware', 'django.middleware.gzip.GZipMiddleware',
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
@@ -95,13 +95,13 @@ MIDDLEWARE_CLASSES = (
# 'spa.middleware.uploadify.SWFUploadMiddleware', # 'spa.middleware.uploadify.SWFUploadMiddleware',
# 'spa.middleware.sqlprinter.SqlPrintingMiddleware', # 'spa.middleware.sqlprinter.SqlPrintingMiddleware',
# 'debug_toolbar.middleware.DebugToolbarMiddleware', # 'debug_toolbar.middleware.DebugToolbarMiddleware',
) ]
WSGI_APPLICATION = 'dss.wsgi.application' WSGI_APPLICATION = 'dss.wsgi.application'
TEMPLATE_DIRS = (here('templates'),) TEMPLATE_DIRS = (here('templates'),)
INSTALLED_APPS = ( INSTALLED_APPS = (
'grappelli', #'grappelli',
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.auth', 'django.contrib.auth',
'django.contrib.contenttypes', 'django.contrib.contenttypes',
@@ -123,6 +123,7 @@ INSTALLED_APPS = (
'allauth.socialaccount.providers.twitter', 'allauth.socialaccount.providers.twitter',
'pipeline', 'pipeline',
'dbbackup',
'corsheaders', 'corsheaders',
'sorl.thumbnail', 'sorl.thumbnail',
@@ -253,3 +254,7 @@ SOCIAL_AUTH_AUTHENTICATION_BACKENDS = (
'social.backends.yahoo.YahooOpenId' 'social.backends.yahoo.YahooOpenId'
) )
DBBACKUP_STORAGE = 'dbbackup.storage.dropbox_storage'
DBBACKUP_TOKENS_FILEPATH = '._dss_tokens'
DBBACKUP_DROPBOX_APP_KEY = localsettings.DSS_DB_BACKUP_KEY
DBBACKUP_DROPBOX_APP_SECRET = localsettings.DSS_DB_BACKUP_SECRET

View File

@@ -22,6 +22,8 @@ google-api-python-client
django-celery django-celery
django-scheduler django-scheduler
django-recurrence django-recurrence
# django-dbbackup
azure azure
sorl-thumbnail sorl-thumbnail