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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:55:52+00:00 2026-05-16T10:55:52+00:00

In my urls file I have configured the Django admin application to run off

  • 0

In my urls file I have configured the Django admin application to run off the url /adminDJ/. However it doesn’t run. It loads up my own admin stuff. Here is my urls.py:

 (r'^admin/add/member/$', 'astonomyStuff.attendance.views.newMember'),
 (r'^admin/add/$', 'astonomyStuff.attendance.views.addPage'), 
(r'^admin/$', 'astonomyStuff.attendance.views.adminPage'),
 (r'^adminDJ/$', include(admin.site.urls)),
 (r'^talks/$', 'astonomyStuff.attendance.views.talksIndex'),
 (r'^talks/past/$', 'astonomyStuff.attendance.views.viewAllTalks'),
 (r'^members/$', 'astonomyStuff.attendance.views.viewMembers'),
 (r'^members/(?P<member_number>[^/]+)/$', 'astonomyStuff.attendance.views.viewMember'), 
 (r'^members/(?P<member_number>[^/]+)/delete$', 'astonomyStuff.attendance.views.deleteMember'),
 (r'^admin/add/talk/$', 'astonomyStuff.attendance.views.newTalk'),
 (r'^talks/(?P<talk_title>[^/]+)/$', 'astonomyStuff.attendance.views.viewTalk'), 
 (r'^attendance/(?P<talk_title>[^/]+)/$', 'astonomyStuff.attendance.views.viewAttendance'),  
 (r'^databrowse/(.*)', databrowse.site.root),
 (r'^adminDoc/doc/', include('django.contrib.admindocs.urls')),
 (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}),
 (r'^accounts/profile/$', 'astonomyStuff.attendance.views.adminPage'),
 (r'^admin/add/attendance/$', 'astonomyStuff.attendance.views.addAttendance'),
 (r'^members/(?P<member_number>[^/]+)/edit$', 'astonomyStuff.attendance.views.editMember'),
 (r'^public/talks/$', 'astonomyStuff.attendance.views.publicViewTalks')

I have rearranged the order to see if this was the problem but that’s not fixed it. Must the django admin application run on /admin/?

Edit

I have had the admin application working before just to let you know it only broke when I played around with the urls.

Edit 2

Here is my complete urls.py:

from django.conf.urls.defaults import *

from astonomyStuff.attendance.models import Member
from astonomyStuff.attendance.models import Non_Member
from astonomyStuff.attendance.models import Talk
from astonomyStuff.attendance.models import Event_Attendance
from django.contrib import admin
from django.contrib import databrowse


admin.autodiscover()
admin.site.register(Member)
admin.site.register(Non_Member)
admin.site.register(Talk)
admin.site.register(Event_Attendance)   
databrowse.site.register(Member)
databrowse.site.register(Non_Member)
databrowse.site.register(Talk)
databrowse.site.register(Event_Attendance)

urlpatterns = patterns('',
# Example:
# (r'^astonomyStuff/', include('astonomyStuff.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/add/member/$', 'astonomyStuff.attendance.views.newMember'),
 # (r'^admin/add/$', 'astonomyStuff.attendance.views.addPage'), 
 #     (r'^admin/$', 'astonomyStuff.attendance.views.adminPage'),
 (r'^admin/$', include(admin.site.urls)),
 (r'^talks/$', 'astonomyStuff.attendance.views.talksIndex'),
 (r'^talks/past/$', 'astonomyStuff.attendance.views.viewAllTalks'),
 (r'^members/$', 'astonomyStuff.attendance.views.viewMembers'),
 (r'^members/(?P<member_number>[^/]+)/$', 'astonomyStuff.attendance.views.viewMember'), 
 (r'^members/(?P<member_number>[^/]+)/delete$', 'astonomyStuff.attendance.views.deleteMember'),
 # (r'^admin/add/talk/$', 'astonomyStuff.attendance.views.newTalk'),
 (r'^talks/(?P<talk_title>[^/]+)/$', 'astonomyStuff.attendance.views.viewTalk'), 
 (r'^attendance/(?P<talk_title>[^/]+)/$', 'astonomyStuff.attendance.views.viewAttendance'),  
 (r'^databrowse/(.*)', databrowse.site.root),
 (r'^adminDoc/doc/', include('django.contrib.admindocs.urls')),
 (r'^accounts/login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}),
 (r'^accounts/profile/$', 'astonomyStuff.attendance.views.adminPage'),
 # (r'^admin/add/attendance/$', 'astonomyStuff.attendance.views.addAttendance'), 
 (r'^members/(?P<member_number>[^/]+)/edit$', 'astonomyStuff.attendance.views.editMember'),
 (r'^public/talks/$', 'astonomyStuff.attendance.views.publicViewTalks'),
)
  • 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-16T10:55:52+00:00Added an answer on May 16, 2026 at 10:55 am

    Not this (r'^adminDJ/$', include(admin.site.urls)),

    But this (r'^adminDJ/', include(admin.site.urls)), ##note, no $ in the regex

    Remember folks, gotta check your regexes…

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

Sidebar

Related Questions

I have URLs of the form http://domain/image/⟨uuid⟩/42x42/some_name.png . The Web server (nginx) is configured
Having some issues getting this MPMoviePlayerViewController to work. I have two sample URLs pointing
I have an apache webserver serving 2 URLs. I use VirtualHosts to configure it
Whole this day I was trying to configure django on production server. I use
I followed the Djangoappengine instructions. I used their django-testapp and copied the following folders
I'm embedding Jetty in a Spring based application. I configure my Jetty server in
I need to separate out a bunch of image urls from a document in
Up till now we've been rewriting URL's using a custon 404 page: the url
Below are the relevant configuration files, also at http://dpaste.com/97213/ . The apache config is
I've just built a basic ASP MVC web site for deployment on our intranet.

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.