diff --git a/panel/src/panel/templates/accountdetail.html b/panel/src/panel/templates/account_detail.html similarity index 100% rename from panel/src/panel/templates/accountdetail.html rename to panel/src/panel/templates/account_detail.html diff --git a/panel/src/panel/urls.py b/panel/src/panel/urls.py index a8a8fab..8cc4522 100644 --- a/panel/src/panel/urls.py +++ b/panel/src/panel/urls.py @@ -22,6 +22,6 @@ urlpatterns = [ path('admin/', admin.site.urls), path('', views.Index.as_view(), name='index'), path("", include("django.contrib.auth.urls")), - path("account/", views.AccountDetail.as_view(), name='accountdetail') + path("account/", views.AccountDetail.as_view(), name='account_detail'), path("services/", views.ServiceList.as_view(), name='service_list'), ] diff --git a/panel/src/panel/views.py b/panel/src/panel/views.py index 184855b..1765696 100644 --- a/panel/src/panel/views.py +++ b/panel/src/panel/views.py @@ -8,7 +8,7 @@ class Index(TemplateView): class AccountDetail(LoginRequiredMixin, DetailView): model = User - template_name = 'accountdetail.html' + template_name = 'account_detail.html' def get_object(self): return self.request.user