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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:05:15+00:00 2026-06-07T19:05:15+00:00

My old worker installed Pinax through PIP and it’s installed in site-packages. All the

  • 0

My old worker installed Pinax through PIP and it’s installed in site-packages. All the apps lives there. Our own apps are within our Django project structure.

I want to modify Pinax’s account app, by switching the create_user‘s is_active flag to False. Currently, the app makes it True. I also want to add additional functionality to create_user or whatever function I want to do.

from pinax.account import forms
class MyCustomizeForm(forms.SignupForm):
   def create_user(....):
      super(....)
      // additional...

Maybe this?
But doesn’t that require me to do at least two commit transactions talking to DB?

Is that preferable? Also, does doing this require me to change anything else in my Django project (how users signup, what views it uses… what forms it uses)?

Currently, I’ve an app living in my Django project supposes to deal with the extension / customization of account app. I can’t commit site-packages to VCS…. I mean.. I am not supposed to make any changes there.

Thanks.


Pinax account/models.py

class Account(models.Model):
    ...
    def its_own_method(...)
# this is in the same indentation level as class Account

def create_account(sender, instance=None, **kwargs):
    if instance is None:
        return
    account, created = Account.objects.get_or_create(user=instance)

post_save.connect(create_account, sender=User)
  • 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-06-07T19:05:16+00:00Added an answer on June 7, 2026 at 7:05 pm

    You can use the django signals for exactly this situation. Signals are meant for apps that need to be distributed generally and won’t always know how they will be integrated into a project.

    The signal of interest to you here is the pre_save. You can connect a pre_save to the pinax.account model and be notified when a save is about to happen. This will give you a chance to make changes to that model instance. Signals are synchronous, meaning you are making your change serially, right before the pinax.accounts will finish committing the save

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

Sidebar

Related Questions

Our site worked fine on the old server, but we've recently moved it to
I recently installed IE8, and found quirks using the old copies of IE I
I installed Subversion 1.5.x and then TortoiseSVN 1.6.x. All was fine using the 1.5.x
I recently began migrating an old site to Drupal, and the hosting service I
I have just switched to IIS to encapsulate all my server needs and installed
I've got an old classic ASP site that connects to a local sql server
I've been using Visual Studio 2005, 2008, 2010 on multiple PC's, installed there by
In old mysql code, I had a query below which worked perfectly which is
I had an old (but great) app using NHibernate 1.0.2. Worked like a charm.
Old setup (Liferay 5.2.3) login time was around 3-5 sec but for Liferay 6.0.0

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.