[Python-modules-commits] [python-social-auth] 60/322: Update django.rst
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:12:49 UTC 2016
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag v0.2.10
in repository python-social-auth.
commit 38f86ddfd15026f06afaa64a946bf67c43719ca6
Author: James Potter <james.potter at gmail.com>
Date: Thu Nov 27 12:20:42 2014 +0000
Update django.rst
Instructions are broken when using South / Django 1.6 as South will try to use the default 'migrations' directory and fail.
This tells South to use the alternate directory.
---
docs/configuration/django.rst | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/docs/configuration/django.rst b/docs/configuration/django.rst
index 8e40979..b093434 100644
--- a/docs/configuration/django.rst
+++ b/docs/configuration/django.rst
@@ -40,7 +40,14 @@ Database
./manage.py makemigrations
+If you're still using South, you'll need override SOUTH_MIGRATION_MODULES_::
+ SOUTH_MIGRATION_MODULES = {
+ 'default': 'social.apps.django_app.default.south_migrations'
+ }
+
+Note that Django's app labels take the last part of the import, so
+in this case ``social.apps.django_app.default`` becomes ``default`` here.
Sync database to create needed models::
@@ -204,3 +211,4 @@ The fields listed **must** be user models fields.
.. _Django built-in app: https://github.com/omab/python-social-auth/tree/master/social/apps/django_app
.. _AUTHENTICATION_BACKENDS: http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#authentication-backends
.. _django at dc43fbc: https://github.com/django/django/commit/dc43fbc2f21c12e34e309d0e8a121020391aa03a
+.. _SOUTH_MIGRATION_MODULES: http://south.readthedocs.org/en/latest/settings.html#south-migration-modules
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git
More information about the Python-modules-commits
mailing list