Introduced namespaces for views/actions
This commit is contained in:
parent
330928b0f5
commit
02bc2f4667
|
@ -1,4 +1,4 @@
|
|||
<h1>Container: {{ container.named_id }}</h1>
|
||||
<div>{{ container.description }}</div>
|
||||
<div>Color: {{ container.color }}</div>
|
||||
<div>Container Type: <a href="{% url 'container_type_details' container.container_type.id %}">{{ container.container_type.named_id }}</a></div>
|
||||
<div>Container Type: <a href="{% url 'container:container_type_details' container.container_type.id %}">{{ container.container_type.named_id }}</a></div>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{% if container_list %}
|
||||
<ul>
|
||||
{% for container in container_list %}
|
||||
<li><a href="{% url 'container_details' container.id %}">{{ container.named_id }}: {{ container.description }}</a></li>
|
||||
<li><a href="{% url 'container:container_details' container.id %}">{{ container.named_id }}: {{ container.description }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
|
@ -15,7 +15,7 @@
|
|||
{% if container_type_list %}
|
||||
<ul>
|
||||
{% for ctype in container_type_list %}
|
||||
<li><a href="{% url 'container_type_details' ctype.id %}">{{ ctype.named_id }} {{ ctype.description }}</a></li>
|
||||
<li><a href="{% url 'container:container_type_details' ctype.id %}">{{ ctype.named_id }} {{ ctype.description }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
|
|
|
@ -2,6 +2,7 @@ from django.urls import path
|
|||
|
||||
from . import views
|
||||
|
||||
app_name = 'container'
|
||||
urlpatterns = [
|
||||
path('', views.index, name='index'),
|
||||
path('<int:container_id>/', views.container_details, name='container_details'),
|
||||
|
|
Loading…
Reference in New Issue