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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:37:18+00:00 2026-05-10T18:37:18+00:00

I’ve just started playing with Django and am loosely following the tutorial with my

  • 0

I’ve just started playing with Django and am loosely following the tutorial with my own set of basic requirements. The models I’ve sketched out so far are a lot more comprehensive than the tutorial, but they compile fine. Otherwise, everything should have been the same.

My problem is with the admin application. I can log into it, and view the editable models, but when I click on a model or any of the change/add buttons, I get a 404.

This is the exact error I get:

Page not found (404) Request Method:     GET Request URL:    http://localhost:8000/admin/auth/user/add/  App u'', model u'auth', not found. 

These are the relevant files and what is in them:

urls.py

from django.conf.urls.defaults import *  # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover()  urlpatterns = patterns('', # Example: # (r'^daso/', include('daso.foo.urls')),  # Uncomment the admin/doc line below and add 'django.contrib.admindocs'  # to INSTALLED_APPS to enable admin documentation: #(r'^admin/doc/', include('django.contrib.admindocs.urls')),  # Uncomment the next line to enable the admin:     (r'^admin(.*)', admin.site.root) ) 

admin.py

from daso.clients.models import Person, Client, Contact from django.contrib import admin  admin.site.register(Person) admin.site.register(Client) admin.site.register(Contact) 

models.py – I’ll just show one model

class Client(Person): relationships = models.ManyToManyField('Contact', through='Relationship', null=True) disabilities = models.ManyToManyField('Disability', related_name='disability', null=True) medical_issues = models.ManyToManyField('MedicalIssue', related_name='medical_issue', null=True) medicare_num = models.CharField(max_length=15, blank=True) insurance = models.OneToOneField('Insurance', null=True, blank=True) medications = models.ManyToManyField('Medication', through='Medication_Details', null=True)  def __unicode__(self):     client = u'[Client[id: ', self.id, ' name: ', self.first_name, ' ', self.last_name, ']'     return client 

settings.py

INSTALLED_APPS = (     'django.contrib.auth',     'django.contrib.contenttypes',     'django.contrib.sessions',     'django.contrib.sites',     'django.contrib.admin',     'daso.clients', )  MIDDLEWARE_CLASSES = (     'django.middleware.common.CommonMiddleware',     'django.contrib.sessions.middleware.SessionMiddleware',     'django.contrib.auth.middleware.AuthenticationMiddleware', ) 

Those should be the relevant files/sections of files. If anyone has an idea about WHY I’m getting a 404, please enlighten me?

Note, when pasting in here, installed apps had the last 2 apps tabbed instead of spaced*4, and when reloading the admin page it worked for half a second then 404’d again. Strange. Ideas?

  • 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. 2026-05-10T18:37:18+00:00Added an answer on May 10, 2026 at 6:37 pm

    It’s because you left out a / in urls.py. Change the admin line to the following:

    (r'^admin/(.*)', admin.site.root), 

    I checked this on my server and got the same error with your line from urls.py.

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

Sidebar

Ask A Question

Stats

  • Questions 86k
  • Answers 86k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer As described here, you can set emacs key binding to… May 11, 2026 at 5:19 pm
  • Editorial Team
    Editorial Team added an answer For as far as I know, there is no way… May 11, 2026 at 5:19 pm
  • Editorial Team
    Editorial Team added an answer dr_["ASSET"].ToString() returns a string representation of whatever happens to be… May 11, 2026 at 5:19 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.