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

93
Views
consoling out django context in console

why am I getting output in console as {{request.num}} without the actual number?

This is my code:

def test(request):
    number = 4

    context = {"num": number}

javascript

var number = "{{request.num}}";
console.log(number)
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

What worked for me is when I explicitly created the exact js variable inside a script tag in the template and consoled it out from the external js file, seems to work! Don't exactly know why that's happening but is.

about 4 years ago · Juan Pablo Isaza 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!