summaryrefslogtreecommitdiff
path: root/forums
diff options
context:
space:
mode:
authorSanmugasundaram K2015-01-07 19:18:22 +0530
committerSanmugasundaram K2015-01-07 19:24:11 +0530
commit2ae49074f030b61088317526b023b9e21124dbfc (patch)
tree957f0138c0f2a96fd2c818a7035d2bbd48d3400c /forums
parent9a5a239295e7aae2d211c07c9fdb117cf8252e99 (diff)
downloadspoken-tutorial-forums-2ae49074f030b61088317526b023b9e21124dbfc.tar.gz
spoken-tutorial-forums-2ae49074f030b61088317526b023b9e21124dbfc.tar.bz2
spoken-tutorial-forums-2ae49074f030b61088317526b023b9e21124dbfc.zip
drupal auth user id change to spoken auth user id in all old records
Diffstat (limited to 'forums')
-rw-r--r--forums/settings.py10
-rw-r--r--forums/urls.py1
2 files changed, 11 insertions, 0 deletions
diff --git a/forums/settings.py b/forums/settings.py
index d793004..7b758e0 100644
--- a/forums/settings.py
+++ b/forums/settings.py
@@ -35,6 +35,15 @@ DATABASES = {
'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
'PORT': '', # Set to empty string for default.
},
+ 'cdeep': {
+ 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
+ 'NAME': 'CDEEP', # Or path to database file if using sqlite3.
+ # The following settings are not used with sqlite3:
+ 'USER': db_user,
+ 'PASSWORD': db_pass,
+ 'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
+ 'PORT': '', # Set to empty string for default.
+ },
}
# Hosts/domain names that are valid for this site; required if DEBUG is False
@@ -150,6 +159,7 @@ INSTALLED_APPS = (
'spoken_auth',
'compressor',
'debug_toolbar',
+ 'migrate_spoken',
)
# A sample logging configuration. The only tangible logging
diff --git a/forums/urls.py b/forums/urls.py
index 9a0ec63..cb8b54e 100644
--- a/forums/urls.py
+++ b/forums/urls.py
@@ -19,4 +19,5 @@ urlpatterns = patterns('',
# User account urls
url(r'^accounts/login/', 'forums.views.user_login', name='user_login'),
url(r'^accounts/logout/', 'forums.views.user_logout', name='user_logout'),
+ url(r'^migrate', 'migrate_spoken.views.chenage_drupal_userid_spoken', name='chenage_drupal_userid_spoken'),
)