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

Related Questions

I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
For some reason, after submitting a string like this Jack’s Spindle from a text
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but

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.