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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:26:00+00:00 2026-06-15T20:26:00+00:00

I have the downlaod link in my Django view , where the user can

  • 0

I have the downlaod link in my Django view , where the user can download the pdf forms. But i also need to
grab the all the URL parameters passed with the link.

I mean if user click on

http://www.abc.com/download then the simple pdf form will be downloaded

but i use click on

http://www.abc.com/download?var1=20&var2=30&var3=40

Then i need to get those parameters with their name and fill in fields.

That arguments can vary so i can’t hard code those in view

  • 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-06-15T20:26:01+00:00Added an answer on June 15, 2026 at 8:26 pm
    def my_view(request):
        get_args = request.GET #dict of arguments from a get request (like your example)
        post_args = request.POST #dict of arguments from a post request
        all_args = requst.REQUEST #dict of arguments regardless of request type.
    

    Edit:
    Based on your comment, you must be new to python.

    Here are a few ways to access the items in your dictionary.

    #This method will throw an exception if the key is not in the dict.
    get_args['var1'] #represents the value for that key, in this case '20'
    
    #This method will return None if the key is not in the dict.
    get_args.get('var2') #represents the value for that key, in this case '30'
    

    Or you could loop over the dict:

    for key,val in get_args.items():
        do_something(val)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On pdf downlaod link need to open a jQuery dialog and have a form
I have a pdf and want to offer the user a simple Download link.
I have a download link, and after the user downloads it I want to
Digital commercial products that customers pay for download link. I have put all the
Can't find download link for jslint.js from http://www.jslint.com/ . I have downloaded http://jslint.com/webjslint.js ,
Can someone please explain to me how can I have a download link appear
I have a download link on my site (Django based), that worked fine until
hey, how can I have my download link hidden, and make a count down
I have written a code to download pdf file from server, but the code
When I have download sample code from this link and than try to build

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.