Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
Django request GET return None on string

I have this url :

   /page_b/a015541/?pagei=a011&account_id=95651&application_id=5563&startdate=20170101&enddate=20170101

When parsing with :

   page_id=         request.GET.get('pagename')
   account_id=         request.GET.get('account_id')
   application_id=  request.GET.get('application_id')
   uurid=  request.GET.get('uurid')

I have for string values : page_id = None

Numerical have correct values

How to fix this ?

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

according to URL

/page_b/a015541/?pagei=a011&account_id=95651&application_id=5563&startdate=20170101&enddate=20170101

You are sending pagei.

just replace

page_id=         request.GET.get('pagename')

with

page_id=         request.GET.get('pagei')

you will get page_id

about 4 years ago · Santiago Trujillo Report

0

In URL you are not sending 'pagename'. I think you are trying to get 'pagei'.

That case use like below.

request.GET.get('pagei')
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!