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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:28:15+00:00 2026-05-27T09:28:15+00:00

https://xxxx/category_check_view/?item_id=2 Above is a sample of URL pattern. How should i configured my URL

  • 0

https://xxxx/category_check_view/?item_id=2

Above is a sample of URL pattern. How should i configured my URL in order to enable it to redirect to the right view?
I seem to get it working for a url like this https://xxxx/category_check_view/2/ only so far.

  • 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-27T09:28:16+00:00Added an answer on May 27, 2026 at 9:28 am

    You can pass parameters to a view either in the url:

    /category_check_view/2
    

    Or via GET params:

    /category_check_view/?item_id=2
    

    GET params are not processed by the URL handler, but rather passed directly to the GET param dict accessible in a view at request.GET.

    The Django (i.e. preferred) way to do handle URLs is the first one. So you would have a URL conf:

    (r'^category_check_view/(\d{4})$', 'proj.app.your_view'),
    

    And a matching view:

    def your_view(request, id):
        obj = Obj.objects.get(id=id)
        # ...
    

    However, if you insist on passing the param via GET you would just do:

    (r'^category_check_view$', 'proj.app.your_view'),
    

    And:

    def your_view(request):
        id = request.GET.get('item_id')
        obj = Obj.objects.get(id=id)
        # ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

https://search.twitter.com/search.json?q=doug How do I read this like VIEW SOURCE, so that I know what
How do you redirect HTTPS to HTTP?. That is, the opposite of what (seemingly)
So, I am using https://www.facebook.com/dialog/oauth?client_id=xxxx&scope=email&redirect_uri=xx to allow me access to users' details. I want
In order for my application (.Net 1.1) to use the system configured proxy server
I have a Facebook page at https://www.facebook.com/xxxx and a web site at http://xxxx.com .
https://twitter.com/sessions?authenticity_token=b1b43178e09c1e6ccec1b3183f1f139f39643aaf&session%5Busername_or_email%5D=ddddd&session%5Bpassword%5D=rrrrr&q=&site_action=https%3A%2F%2Ftwitter.com%2Fsessions&serialized_string=Hello why is this url throwing a java.net.MalformedURLException ??
Duplicate : https://stackoverflow.com/questions/135651/learning-unit-testing I'm trying to develop some software for my research group to
Except https://www.php.net/manual/en/book.ktaglib.php and http://getid3.sourceforge.net/ does anyone know of any other way to work from
Will content requested over https still be cached by web browsers or do they
Here's the page: https://www.testmasters.net/test/ssltest2.aspx When I go to it (in firefox or chrome), it

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.