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

222
Views
No se pudo analizar el resto: '=='Sophia'' de 'abc.first_name=='Sophia' Python/Django

Estoy tratando de poner un signo == dentro de una declaración if en mi documento html (cuarta línea).

Se parece a esto:

 <ol> {% for league in teams %} {% for abc in league.curr_players.all %} {% if abc.first_name=='Sophia' %} <li>{{league.location}} {{league.team_name}} </li> {% endif %} {% endfor %} {% empty %} <p>No leagues found. Try <code>python manage.py loaddata data.json</code>, or, if that doesn't work, going <a href="{% url 'make_data' %}">here</a> (but be prepared to wait).</p> {% endfor %} </ol>

De todos modos, sigo recibiendo este error que dice que no puede analizar el argumento en ese punto determinado.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

El analizador de plantillas de Django es bastante poco sofisticado, a diferencia del de Python. Una consecuencia de esto es que necesita usar espacios alrededor de cada operador.

 {% if abc.first_name == 'Sophia' %}
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!