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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:03:54+00:00 2026-05-23T12:03:54+00:00

I am using Django generic View but when i type /book/edit/9/ Then it says

  • 0

I am using Django generic View but when i type

/book/edit/9/

Then it says no URL macthed in config file

My URL file is

from django.conf.urls.defaults import *
from django.conf.urls.defaults import *
from myapp.views import *
from django.contrib import admin
from django.conf import settings
from django.views.generic.simple import direct_to_template
from django.views.generic import list_detail
from myapp.models import *
from django.views.generic import create_update
from django.views.generic.create_update import update_object


book_info = {'model' : Book}

(r'^book/create/$', create_update.create_object, book_info),
(r'^book/edit/(?P<object_id>d+)/$',create_update.update_object,book_info),

The create part is working fine

  • 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-23T12:03:55+00:00Added an answer on May 23, 2026 at 12:03 pm

    You’re missing the escape on the d (\d): you want (r'^book/edit/(?P<object_id>\d+)/$',create_update.update_object,book_info)

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

Sidebar

Related Questions

I using Django and a generic view django.views.generic.create_update.create_object I have a model form wich
I'm using django.views.generic.list_detail.object_detail. According to the documentation the view takes the variable object_id. To
I'm using Django's generic year archive view to display event objects by year. This
I'm using the generic CreateView like: #urls.py from django.conf.urls.defaults import * from django.views.generic import
I'm using the generic view django.contrib.auth.views.password_reset for the password reset form. In principle, it
I made in my web a menu using generic_view - simple 'django.views.generic.list_detail.object_list' in urls.py
Using Django 1.1, I am trying to select the maximum value from a varchar
I am having problems using django-tagging . I try to follow the documentation but
I'm trying to display the latest 5 posts using a generic view like this:
I am using Django's comment framework which utilizes generic foreign keys. Question: 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.