#33492: Getting Errors for code that is commented
-------------------------------------+-------------------------------------
               Reporter:  kmurray24  |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Template   |        Version:  4.0
  system                             |       Keywords:  comments templates
               Severity:  Normal     |  error
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Should I be getting errors for code that is commented out?
 i believe I've seen this in a couple of areas.
 If I comment out the href shown below and execute run server it produces
 an error"
 django.urls.exceptions.NoReverseMatch: Reverse for 'register' not found.
 'register' is not a valid view function or pattern name.

 This is kind of a pain
 Should I really be getting these errors?

 {{{
 {% extends 'base.html' %}

 {% block title %}Login{% endblock %}

 {% block content %}
   <h2>Login</h2>
   <form method="post">
     {% csrf_token %}
     {{ form.as_p }}
     <button type="submit">Login</button>
   </form>

   <!-- <a href="{% url 'polls:register' %}" class="btn btn-primary btn-lg
 active" role="button" aria-pressed="true">Go Home</a> -->
 {% endblock %}
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33492>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.9e0c89fabe68976f7654bd4b6827c6a6%40djangoproject.com.

Reply via email to