Skip to content

Commit

Permalink
Adds account profiles so Django's default urls down throw an error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders Hofstee committed May 9, 2022
1 parent 52f502b commit f8edacd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions django_registration_templates/templates/account_profile.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% extends "base.html" %}
{% load i18n %}

{% block content %}
Account Profile page
{% endblock %}
2 changes: 1 addition & 1 deletion django_registration_templates/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
{% load i18n %}

{% block content %}
Index page
Account Profile
{% endblock %}
3 changes: 2 additions & 1 deletion django_registration_templates/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@


urlpatterns = [
path('index_template/', views.Index.as_view(), name='index_template'),
path('index/', views.Index.as_view(), name='index'),
path('accounts/profile/', views.AccountProfile.as_view(), name='account_profile'),
]
4 changes: 4 additions & 0 deletions django_registration_templates/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@

class Index(TemplateView):
template_name = 'index.html'


class AccountProfile(TemplateView):
template_name = 'account_profile.html'

0 comments on commit f8edacd

Please sign in to comment.