Rename .djhtml files to .dj.html

This commit is contained in:
Adam Goldsmith 2022-01-23 23:01:47 -05:00
parent c1c6a5a4ef
commit cc18c78235
10 changed files with 13 additions and 13 deletions

View File

@ -26,9 +26,9 @@ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('auth/', include([ path('auth/', include([
path('login/', LoginView.as_view( path('login/', LoginView.as_view(
template_name="auth/login.djhtml", template_name="auth/login.dj.html",
redirect_authenticated_user=True), name='login'), redirect_authenticated_user=True), name='login'),
path('logout/', LogoutView.as_view(template_name="auth/logout.djhtml"), name='logout'), path('logout/', LogoutView.as_view(template_name="auth/logout.dj.html"), name='logout'),
])), ])),
path('markdownx/', include('markdownx.urls')), path('markdownx/', include('markdownx.urls')),
] ]

View File

@ -1,10 +1,10 @@
{% extends "base.djhtml" %} {% extends "base.dj.html" %}
{% block content %} {% block content %}
<h1> Tools </h1> <h1> Tools </h1>
<ul> <ul>
{% for tool in tools %} {% for tool in tools %}
{% include "./components/tool_li.djhtml" with tool=tool %} {% include "./components/tool_li.dj.html" with tool=tool %}
{% empty %} {% empty %}
<p>No tools are available.</p> <p>No tools are available.</p>
{% endfor %} {% endfor %}
@ -13,7 +13,7 @@
<h1> Tasks </h1> <h1> Tasks </h1>
<ul> <ul>
{% for task in tasks %} {% for task in tasks %}
{% include "./components/task_li.djhtml" with task=task %} {% include "./components/task_li.dj.html" with task=task %}
{% empty %} {% empty %}
<p>No tasks are available.</p> <p>No tasks are available.</p>
{% endfor %} {% endfor %}

View File

@ -1,4 +1,4 @@
{% extends "base.djhtml" %} {% extends "base.dj.html" %}
{% load markdownify %} {% load markdownify %}
{% load widget_tweaks %} {% load widget_tweaks %}

View File

@ -1,4 +1,4 @@
{% extends "base.djhtml" %} {% extends "base.dj.html" %}
{% load markdownify %} {% load markdownify %}
@ -18,7 +18,7 @@
<h2>Tasks</h2> <h2>Tasks</h2>
<ul> <ul>
{% for task in tasks %} {% for task in tasks %}
{% include "./components/task_li.djhtml" with task=task %} {% include "./components/task_li.dj.html" with task=task %}
{% endfor %} {% endfor %}
</ul> </ul>
</section> </section>

View File

@ -10,7 +10,7 @@ def index(request):
'tools': Tool.objects.all(), 'tools': Tool.objects.all(),
'tasks': Task.objects.all(), 'tasks': Task.objects.all(),
} }
return render(request, 'tasks/index.djhtml', context) return render(request, 'tasks/index.dj.html', context)
def toolDetail(request, tool_slug): def toolDetail(request, tool_slug):
@ -22,7 +22,7 @@ def toolDetail(request, tool_slug):
'tasks': tasks, 'tasks': tasks,
'events': events, 'events': events,
} }
return render(request, 'tasks/toolDetail.djhtml', context) return render(request, 'tasks/toolDetail.dj.html', context)
def taskDetail(request, tool_slug, task_slug): def taskDetail(request, tool_slug, task_slug):
@ -55,4 +55,4 @@ def taskDetail(request, tool_slug, task_slug):
'task_subs': task.grouptasksubscription_set.filter(group__user=request.user), 'task_subs': task.grouptasksubscription_set.filter(group__user=request.user),
'tool_subs': tool.grouptoolsubscription_set.filter(group__user=request.user), 'tool_subs': tool.grouptoolsubscription_set.filter(group__user=request.user),
}) })
return render(request, 'tasks/taskDetail.djhtml', context) return render(request, 'tasks/taskDetail.dj.html', context)

View File

@ -1,4 +1,4 @@
{% extends "base.djhtml" %} {% extends "base.dj.html" %}
{% load widget_tweaks %} {% load widget_tweaks %}

View File

@ -1,4 +1,4 @@
{% extends "base.djhtml" %} {% extends "base.dj.html" %}
{% block title %} Logout {% endblock %} {% block title %} Logout {% endblock %}