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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:58:56+00:00 2026-05-30T15:58:56+00:00

In the admin console, I can add and edit users through the standard auth

  • 0

In the admin console, I can add and edit users through the standard auth app and sites through the standard site app, but if I try to add a group, I receive a 404 error that lacks the usual URLconf listing:

Page not found (404)
Request Method: GET
Request URL:    http://127.0.0.1:8000/admin/auth/group/add/
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

There are no groups in the database, and I can visit http://127.0.0.1:8000/admin/auth/group/ and see the empty list just fine.

For flatpages, there are entries in the database, and all SITE_IDs match my settings files. In this case, though, both http://127.0.0.1:8000/admin/flatpages/flatpage/ (which should list them) and http://127.0.0.1:8000/admin/flatpages/flatpage/add/ give 404 errors with no URLconf information given.

The public side of the flatpages does work. All content is served up as expected. The issue is only in the admin console.

Here are the contents of my urls.py file:

from django.conf.urls.defaults import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
  (r'^shortener|g|p/', include('charon_sheet.shortener.urls')),
  (r'^admin/doc/', include('django.contrib.admindocs.urls')),
  (r'^admin/', include(admin.site.urls)),
  (r'^', include('charon_sheet.ghosts.urls')),
)

if settings.DEBUG:
  urlpatterns += patterns('',
    (r'^public/(?P<path>.*)$', 'django.views.static.serve',
      {'document_root': settings.MEDIA_ROOT, 'show_indexes':True }),
  )

I have no custom apps that touch the admin interface, and so no admin.py files.

Here’s my middleware:

MIDDLEWARE_CLASSES = (
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
)

My template context processors:

TEMPLATE_CONTEXT_PROCESSORS = (
    'django.core.context_processors.media',
    'django.contrib.auth.context_processors.auth',
    'django.core.context_processors.request',
    'charon_sheet.context_processors.sharing_url_context_processor',
)

And my installed apps:

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.flatpages',
    'django.contrib.messages',
    'charon_sheet.shortener',
    'charon_sheet.ghosts',
    # Uncomment the next line to enable the admin:
    'django.contrib.admin',
    'django.contrib.admindocs',
)

I’ve tried the following:

  • Changing the order of the urlpatterns (particularly putting the charon_sheet.ghosts.urls above the admin lines)
  • Removing the custom context processor
  • Putting the FlatpageFallbackMiddleware at various places in the middleware list
  • Putting my apps below the admin apps in the INSTALLED_APPS list
  • Clearing the Flatpage database tables
  • Reinstalling Django

None of these have changed the errors at all.

This is using Django 1.3 and python 2.6, and is happening both on the standard dev server and through Passenger in a more production-like environment.

I’m running out of ideas to try on this. Any ideas? Here’s hoping it’s something simple.

  • 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-30T15:58:57+00:00Added an answer on May 30, 2026 at 3:58 pm

    As expected, this was a URL pattern issue. Here are the contents of the charon_sheet.shortener.urls file:

    urlpatterns = patterns(
      '',
      url(r'shorten/(?P<app_prefix>.*?)/$',
        view    = shorten,
        name    = 'shorten'
        ),
      url(r'(?P<id_hex>[a-fA-F0-9]+)(/)?$',
        view    = expand,
        name    = 'expand'
        )
    )
    

    The last pattern there was gobbling up certain URLs. Moving the inclusion of charon_sheet.shortener.urls file down below the admin pattern solved the issue.

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

Sidebar

Related Questions

When i try to configure security through the admin console of Websphere it just
I installed a self-signed certificate and restartet. Now i can't start the admin console
In your app.yaml configuration file you can required login: admin . My question is
In Biztalk 2009, I can view the 'Tracked Message Events' from the admin console.
I created a little app a while ago. I created admin.py and used admin.site.register(MenuEntry)
How can I delete sharepoint website from TFS Admin console? Because I delete Team
In my admin view I would like several sub directories for example: admin/users/list.aspx I
I'm the IIS admin, not the developer on this site, so the code is
how can i check admin-privileges for my script during running?
i've installed mySQL .. i entered my password , but i can't remember they've

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.