Quick Migrations¶
Instructions¶
django-inspectional-registration can be migrate from django-registration by south. To migrate, follow the instructions
Confirm your application has
'south'
,'django.contrib.admin'
and in yourINSTALLED_APPS
, if you haven’t, add these and runsyncdb
command to create the database table required.Execute following commands:
$ ./manage.py migrate registration 0001 --fake $ ./manage.py migrate registration
Rewrite your most top of
urls.py
as:from django.conf.urls.defaults import patterns, include, urls from django.contrib import admin admin.autodiscover() urlpatterns = pattern('', # some urls... # django-inspectional-registration require Django Admin page # to inspect registrations url('^admin/', include(admin.site.urls)), # Add django-inspectional-registration urls. The urls also define # Login, Logout and password_change or lot more for handle # registration. url('^registration/', include('registration.urls')), )
Set
REGISTRATION_SUPPLEMENT_CLASS
toNone
in yoursettings.py
Note
django-inspectional-registration can handle registration supplemental information. If you want to use your own custom registration supplemental information, check About Registration Supplement for documents.
Settings
REGISTRATION_SUPPLEMENT_CLASS
toNone
mean no registration supplemental information will be used.Done. Enjoy!
The database difference between django-registration and django-inspectional-registration¶
django-inspectional-registration add new CharField
named registration.models.RegistrationProfile._status
to
the registration.models.RegistrationProfile
and change the storategy to delete
RegistrationProfile
which has been activated from the database insted of
setting 'ALREADY_ACTIVATED'
to registration.models.RegistrationProfile.activation_key
.
activation_key
will be generated when the _status
of RegistrationProfile
be 'accepted'
otherwise it is set None