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 3500982
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:48:07+00:00 2026-05-18T12:48:07+00:00

How to set-up django-registration that an account needs to be manually activated by an

  • 0

How to set-up django-registration that an account needs to be manually activated by an admin?

After the account-holder clicks in the link in the e-mail I would like that an e-mail is sent to the admin, and he also needs to click a link and only then the account would be active.

Is it possible with django-registration, or do I need to use something else, and what to use?

  • 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-18T12:48:08+00:00Added an answer on May 18, 2026 at 12:48 pm

    django-registration allows you to write a custom backend to handle custom activation needs.

    So what you’d do is create your own backend, implementing the register and activate yourself.

    Here’s an example of how you could implement the register function:

    def register(self, request, **kwargs):
        username, email, password = kwargs['username'], kwargs['email'], kwargs['password1']
        if Site._meta.installed:
            site = Site.objects.get_current()
        else:
            site = RequestSite(request)
        new_user = RegistrationProfile.objects.create_inactive_user(username, email,
                                                                    password, site, 
                                                                    send_email=False)
        # send an email to the admins with user information
        send_new_user_notification(new_user) # you would write this function
        signals.user_registered.send(sender=self.__class__,
                                     user=new_user,
                                     request=request)
        return new_user
    

    The key point is to make sure send_email is set to false; that will prevent the user from getting an activation link. Then you can decide whether the email sent to the admins has an activation link or if you’re content with them going to admin and just checking the “Active” box.

    If you use AuthenticationForm from django.contrib.auth then it will automatically reject users whose is_active is False, but if you’re not using that then make sure to run the following check for any request where an active user is required:

    def restricted_view(request):
        if request.user and request.user.is_active:
            #continue with the code
    

    You can also write your own decorator (look at @login_required for pointers). Note that @login_required does not check for is_active.

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

Sidebar

Related Questions

I'm trying to set up my django-registration activation workflow so that when the user
I am writing a set of django apps and would like to use Hg
I am using django-registration, and just set it up. {{user.is_authenticated }} is true, even
I would like to know how to filter a django query set by a
I'm using django-registration to log users into my application. That part works fine. The
I have a set of Django models that are used in two databases (i.e.
I have set up a Django application that uses images. I think I have
I need to set up a django development environment that is publicly viewable on
I'm quite new to Django and I just set up my first registration page
I have an app that makes use of 'django-registration' a custom built model named

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.