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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:51:24+00:00 2026-06-03T19:51:24+00:00

I wanted to reset my Django project’s database, so I did the following steps:

  • 0

I wanted to reset my Django project’s database, so I did the following steps:

  1. Deleted my SQLite database
  2. Did python manage.py syncdb
  3. Did python manage.py migrate users --fake

After I create a new account and login, I get the following error message:

no such table: users_userprofile

Here is what my users model.py looks like:

class UserProfile(models.Model):
  user = models.OneToOneField(User)
  joined_goals = models.ManyToManyField(Goal, related_name="joined_goals")
  followingGoals = models.ManyToManyField(Goal, related_name="following_goals")

  def __unicode__(self):
    return self.user.username

  def get_goals(self):
    try:
      goals = Goal.objects.filter(user=self.user)
      return goals
    except Goal.DoesNotExist:
      return []

def create_user_profile(sender, instance, created, **kwargs):
    if created:
      userProfile = UserProfile.objects.create(user=instance)

post_save.connect(create_user_profile, sender=User)

So, there is a UserProfile class, but South did not seem to make the table to hold the user profiles. When I do python manage.py schemamigration users --auto, it says that nothing has seemed to changed. How do I get it to create the userprofiles table?

  • 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-03T19:51:26+00:00Added an answer on June 3, 2026 at 7:51 pm

    I had this exact same problem. Turns out that there is a circular dependency of sorts when using South. To get around this problem, don’t create a superuser when you run syncdb, but instead run:

    python manage.py createsuperuser
    

    after you have created the database with syncdb. At this point, your profile table will have been created, and the post_save signal will succeed.

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

Sidebar

Related Questions

I wanted to implement python com server using win32com extensions. Then consume the server
i was just wondering, if i wanted to reset the actual preference file used
I'm a happy user of PortableGit 1.7.0.2. Today I wanted to pull a project
For quite a long time I've wanted to start a pet project that will
I googled a short tutorial to connect a database and then I wanted to
i wanted to count steps of an infinite recursive function in node.js (v0.4.10), using
Following on from the Grandma question here i wanted to take their advice and
1) I did git init in a folder 2) added some project files 3)
Wanted to know if someone had a suggestion on code or maybe there's a
Wanted to see if anyone knows how to add props to a image with

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.