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

270
Views
¿Cómo llamar al decorador django solo una vez por sesión?

quiero llamar al decorador personalizado solo una vez por sesión

 def cust_decorator(function): def wrapper(request,*args, **kwargs): ........ ....... wrapper.__doc__ = function.__doc__ wrapper.__name__ = function.__name__ return wrapper

quiero llamar al decorador cust_decorator solo una vez por sesión para un usuario en particular

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Podría establecer una variable de sesión cuando se haya llamado al decorador por primera vez y verificar este valor para determinar si la alerta debe mostrarse nuevamente. Otra forma podría ser escribir su propio middleware.

over 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!