Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 863383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:17:59+00:00 2026-05-15T09:17:59+00:00

Previously I’ve been using some older version of django-registration which seems to be deprecated

  • 0

Previously I’ve been using some older version of django-registration which seems to be deprecated now. Because my server does not allow me to install python plugins I need to use ‘registration’ as separate django application. Now my question is what do I need to modify in order to get registation running as django-app ? Can I just copy ‘registration’ to my django project catalog, add it in settings and it should work ? Previously there was no such thing as ‘backend’ defined, now backend init file with function get_backend, that takes ‘path’ as argument. I guess this path is sent via url right ?

       url(r'^activate/(?P<activation_key>\w+)/$',
           activate,
           {'backend': 'registration.backends.default.DefaultBackend'},
           name='registration_activate'),

Inside this catalog there’s also init file with DefaultBackend class, with classes activate and register.

http://paste.pocoo.org/show/225790/

They both use signals. Do I need to bother with those signals in any way ? (I still don’t quite get what they’re used for).
Last thing. Previously after registration it was redirecting te either given success_url or set template in this way :

return HttpResponseRedirect(success_url or reverse('registration_complete'))

Now code responsible for this looks :

        if success_url is None:
            to, args, kwargs = backend.post_registration_redirect(request, new_user)
            return redirect(to, *args, **kwargs)
        else:
            return redirect(success_url)

and the post_registration_redirect :

def post_registration_redirect(self, request, user):
    """
    Return the name of the URL to redirect to after successful
    user registration.

    """
    return ('registration_complete', (), {})

So why was this changed in this way if it still simply redirect to ‘registration_complete’ ? The args and kwargs are empty so why bother ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:17:59+00:00Added an answer on May 15, 2026 at 9:17 am

    The situation is much simpler than you’re making it out to be. Django applications (like registration) are just normal Python packages and can be imported as such. What that means is that registration can live anywhere that’s in your python path already. Oftentimes the simplest place for that is in your root project directory.

    The backend argument there just takes a python import path. The argument was added so that people could extend Django-Registration to use custom backends if they so desire.

    If you put the registration directory on your python path the existing string should work just fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Previously, using SVN, I would have a branch that was my development branch, which
Previously I've used Objective-C in iPhone Development. It seems I need to do some
Previously I was using the class found here to convert userID to some random
Previously I've asked about inserting a column into a dataset . I now have
I previously asked how to do this in Groovy. However, now I'm rewriting my
Jeff has previously blogged about using the cache to perform "out of band" processing
Previously I was working on one django project under the domain of abc.com and
I previously installed an incorrect .PFX file to sign assemblies. I now need to
Previously I have asked to strip text from a field and convert it to
Previously, I asked the question . The problem is the demands of our file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.