Django url inversa con parámetros a una vista basada en clase
Acabo de comenzar a aprender Python y Django y tengo una pregunta. Me dieron la tarea de convertir las vistas de funciones en vistas basadas en clases. Pero mis enlaces no funcionarán ahora.
estos son de urls.py
url(r'^ Este es mi enlace:
{% url rtr_contact.views.ContactView contact.id %}
pero esto no funciona dice:
Caught NoReverseMatch while rendering: Reverse for 'rtr_contact.views.ContactView' with arguments '(20L,)' and keyword arguments '{}' not found.
, ContactIndex.as_view()),
url(r'^add Este es mi enlace:
{% url rtr_contact.views.ContactView contact.id %}
pero esto no funciona dice:
Caught NoReverseMatch while rendering: Reverse for 'rtr_contact.views.ContactView' with arguments '(20L,)' and keyword arguments '{}' not found.
, ContactAdd.as_view()),
url(r'^([0-9]+)/update Este es mi enlace:
{% url rtr_contact.views.ContactView contact.id %}
pero esto no funciona dice:
Caught NoReverseMatch while rendering: Reverse for 'rtr_contact.views.ContactView' with arguments '(20L,)' and keyword arguments '{}' not found.
, ContactUpdate.as_view()),
url(r'^([0-9]+)/view Este es mi enlace:
{% url rtr_contact.views.ContactView contact.id %}
pero esto no funciona dice:
Caught NoReverseMatch while rendering: Reverse for 'rtr_contact.views.ContactView' with arguments '(20L,)' and keyword arguments '{}' not found.
, ContactView.as_view()),
Este es mi enlace:
{% url rtr_contact.views.ContactView contact.id %}
pero esto no funciona dice:
Caught NoReverseMatch while rendering: Reverse for 'rtr_contact.views.ContactView' with arguments '(20L,)' and keyword arguments '{}' not found.