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

  • Home
  • SEARCH
  • 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 8957843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:04:59+00:00 2026-06-15T15:04:59+00:00

I am using django-registration app. I am trying to create a social networking website.

  • 0

I am using django-registration app. I am trying to create a social networking website. I am a newbie to website development. Here is the error I am getting:

Environment:

Request Method: POST
Request URL: 127.0.0.1:8000/accounts/register/

Django Version: 1.4.2
Python Version: 2.7.2

Installed Applications:
('django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'registration_defaults',
 'django.contrib.admin',
 'registration',
 'polls')
Installed Middleware:
('django.middleware.csrf.CsrfViewMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/Library/Python/2.7/site-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/Library/Python/2.7/site-packages/registration/views.py" in register
  187.             new_user = backend.register(request, **form.cleaned_data)
File "/Library/Python/2.7/site-packages/registration/backends/default/__init__.py" in register
  79.                                                                     password, site)
File "/Library/Python/2.7/site-packages/django/db/transaction.py" in inner
  209.                 return func(*args, **kwargs)
File "/Library/Python/2.7/site-packages/registration/models.py" in create_inactive_user
  78.         new_user = User.objects.create_user(username, email, password)
File "/Library/Python/2.7/site-packages/django/contrib/auth/models.py" in create_user
  160.         user.save(using=self._db)
File "/Library/Python/2.7/site-packages/django/db/models/base.py" in save
  463.         self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/Library/Python/2.7/site-packages/django/db/models/base.py" in save_base
  565.                 created=(not record_exists), raw=raw, using=using)
File "/Library/Python/2.7/site-packages/django/dispatch/dispatcher.py" in send
  172.             response = receiver(signal=self, sender=sender, **named)
File "/Users/dineshsingh/Desktop/django/mysite/users/models.py" in create_user_profile
  20.         UserProfile.objects.create(user=instance)
File "/Library/Python/2.7/site-packages/django/db/models/manager.py" in create
  137.         return self.get_query_set().create(**kwargs)
File "/Library/Python/2.7/site-packages/django/db/models/query.py" in create
  377.         obj.save(force_insert=True, using=self.db)
File "/Library/Python/2.7/site-packages/django/db/models/base.py" in save
  463.         self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/Library/Python/2.7/site-packages/django/db/models/base.py" in save_base
  551.                 result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "/Library/Python/2.7/site-packages/django/db/models/manager.py" in _insert
  203.         return insert_query(self.model, objs, fields, **kwargs)
File "/Library/Python/2.7/site-packages/django/db/models/query.py" in insert_query
  1593.     return query.get_compiler(using=using).execute_sql(return_id)
File "/Library/Python/2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
  910.             cursor.execute(sql, params)
File "/Library/Python/2.7/site-packages/django/db/backends/util.py" in execute
  40.             return self.cursor.execute(sql, params)
File "/Library/Python/2.7/site-packages/django/db/backends/sqlite3/base.py" in execute
  344.             return Database.Cursor.execute(self, query, params)

Exception Type: DatabaseError at /accounts/register/
Exception Value: no such table: users_userprofile

Any help will be highly 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-06-15T15:05:00+00:00Added an answer on June 15, 2026 at 3:05 pm
    According to the Error stack, I think you are doing it in the wrong manner. 
    It may be that you are creating an app  named `users` which is not required here. 
    

    Here is the step by step process how to use django-registration.

    After installing django-registration we need to add it in the settings.py file to make sure that our django engine reads it and loads it.

    INSTALLED_APPS = (
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'django.contrib.sessions',
        'django.contrib.sites',
        'django.contrib.admin',
        'registration',     #<--Here I have added
    )
    

    Now You need to add a few more settings in the settngs.py file:

    ACCOUNT_ACTIVATION_DAYS = 2
    EMAIL_HOST = 'localhost'
    DEFAULT_FROM_EMAIL = 'webmaster@localhost'
    LOGIN_REDIRECT_URL = '/'
    

    Now update the urls.py file to send all the /accounts/ request to the django-registration app.

    from django.conf.urls.defaults import *
    from django.views.generic.simple import direct_to_template
    from django.contrib import admin
    admin.autodiscover()
    
    urlpatterns = patterns('',
        ...
        (r'^accounts/', include('registration.urls')),
        ...
    )
    

    Now you need to create some templates to support your django-registration.

    login.html — user login form
    logout.html — shown after a user has logged out
    password_change_form.html — password change form
    password_change_done.html — shown after successful password change
    password_reset_form.html — ask user for email to send password-reset mail to
    password_reset_email.html — template for password-reset mail
    password_reset_done.html — shown after password-reset email has been sent
    password_reset_confirm.html — ask user for new password after reset
    password_reset_complete.html — shown after successful password reset
    registration_form.html — user registration form
    registration_complete.html — shown after a user has registered
    activation_email_subject.txt — subject of activation email
    activation_email.txt — template for activation email
    activate.html — shown after a user has activated his account
    

    A basic model that what you need to put in these files can be @the-django-registration-git-hub-link

    Now I hope you can get it running.

    Few more link to check out.
    Link 1
    Link 2

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

Sidebar

Related Questions

Am trying to create a registration form by extending django-registration app and using Django
Django newbie here stumbling my way around the docs. I'm trying to create a
I'm using django-registration and I'm trying to connect to its signals to automatically create
I'm working on adding subscriptions using django-registration . Right now, I'm trying to create
Under Django 1.1.1, I am using several authentication backends such as social-registration for facebook
I'm using django-registration on my web app. I also already use django-mailer to send
I'm using Django to create registration/payment application for a limited number of products. I
So, I'm using django-registration in my project to enable user self-registration in the app
I'm using the django-registration app from https://bitbucket.org/ubernostrum/django-registration/ , and I'm a bit confused as
I am using django-registration and django-registration_defaults (for the templates) in my app. How do

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.