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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:28:05+00:00 2026-05-26T22:28:05+00:00

I have my URL defined as follows: (r’^article/edit/(.*)/$’, ‘mysite.views.edit_article’) And the function defined as:

  • 0

I have my URL defined as follows:

(r'^article/edit/(.*)/$', 'mysite.views.edit_article')

And the function defined as:

def edit_article(request, article_id):

However, it seems that any request to this page results in the wrong value being passed in for article_id. If I redefine my URL as

(r'^article/(.*)/$', 'mysite.views.edit_article')

Minus the “edit/” it seems to work. Any suggestions on how to fix this?

  • 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-26T22:28:05+00:00Added an answer on May 26, 2026 at 10:28 pm

    Try this:

    url (r'^article/edit/(?P<article_id>\d+)$', 'mysite.views.edit_article'),
    

    Take a look at the Named Groups in the Django documentation

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

Sidebar

Related Questions

I have 3 url fields defined in my model as follows: image_1 = models.URLField(max_length=100,
I use fileuploader Jquery, I tried to form defined as follows: <Form enctype="multipart/form-data" action="<%:Url.Action("Edit","Ticket")%>"
I have a route defined as follows: (r'^edit/(\d+)/$', 'app.path.edit') I want to use the
I have a JavaScript code coupon.js defined as follows - jQuery(document).ready(function(){ jQuery('.appnitro').submit( function() {
I have a base controller which is defined as follows, but the constructor that
I have three models defined as follows: class Comic < ActiveRecord::Base has_many :feeds end
I have a service defined as follows. public String getData(@QueryParam(date) Date date) I'm trying
I have a rails 3 nested resource defined as follows resources :candidates do collection
I have an HTML table defined as follows: <table border=0 cellpadding=0 cellspacing=0> <tr> <td
I have a div in an html file defined as follows: <div id=rangeTabAll></div> In

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.