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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:49:06+00:00 2026-05-16T20:49:06+00:00

I am trying to add additional fields to the default User model. I had

  • 0

I am trying to add additional fields to the default User model. I had a look around the internet and done something like this:

Made a new model named UserProfile with the following in /UserProfile/models.py:

from django.db import models
from django.contrib.auth.models import User

class UserProfile(models.Model):
    # This is the only required field
    user = models.ForeignKey(User, unique=True)

    # The rest is completely up to you...
    favorite_band = models.CharField(max_length=100, blank=True)
    favorite_cheese = models.CharField(max_length=100, blank=True)
    lucky_number = models.IntegerField()

And added:

 AUTH_PROFILE_MODULE = "newSite.userprofile"

To the settings, I also added “UserProfile” to the INSTALLED_APPS as to run sqlall.

The only problem is when I try the following in the shell:

 >>> from django.contrib.auth.models import User
 >>> user = User.objects.get(username = "user01")
 >>> user.get_profile()

I get the following error:

Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Python27\lib\site-packages\django\contrib\auth\models.py", line 367,in get_profile
     raise SiteProfileNotAvailable('Unable to load the profile '

SiteProfileNotAvailable: Unable to load the profile model, check AUTH_PROFILE_MODULE in your project settings

Any help to solve this problem is appreciated!

  • 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-16T20:49:07+00:00Added an answer on May 16, 2026 at 8:49 pm

    If you really did create an app caled UserProfile and put the models.py there, then you should put

    AUTH_PROFILE_MODULE = "userprofile.userprofile"
    

    into your settings.py file instead.

    You should make your UserProfile folder lowercase: userprofile

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

Sidebar

Related Questions

All, I'm trying to create additional fields and I've done a little research on
I'm using mongoose (on node) and I'm trying to add some additional fields to
I am trying to create a custom profile to add additional fields to django-registration
I am trying to add an additional custom field to a django model. I
I'm trying to add an additional text field to magento's product review. It looks
I am trying to add some additional logic to the 'Promoted to front page'
I'm trying to add some additional key/value pairs to an NSMutableDictionary, using: Tag *tag1
I'm trying add data triggers to the default combobox style so each text item
Im new to asp.net mvc. I'm trying add new model class but it got
I'm trying to add more fields to the CreateUserWizardStep , here is what I

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.