Skip to content
Snippets Groups Projects
Commit c86f26ff authored by Brody Wilton's avatar Brody Wilton
Browse files

Add routes and url mapping and templates for index and register pages

parent ca163bb8
No related branches found
No related tags found
3 merge requests!12dashboard waiting for user logic final and data for tables. changed index....,!11dashboard waiting for user logic final and data for tables. changed index....,!5dashboard waiting for user logic final and data for tables. changed index....
{% extends "_base.html"%}{% block content %}
<h1>Login page</h1>
{% endblock content%}
\ No newline at end of file
{% extends "_base.html"%}{% block content %}
<h1>Register page</h1>
{% endblock content%}
\ No newline at end of file
......@@ -4,12 +4,17 @@ from .views import users
from .views import maintenance
from .views import handler404
from .views import handler500
from .views import register
from .views import login
urlpatterns = [
path('', index, name='index'),
path('user/',users),
path('404/', handler404),
path('500/', handler500),
path('maintenance/', maintenance)
path('maintenance/', maintenance),
path('register/', register, name='register'),
path('login/', login, name='login'),
]
......@@ -19,3 +19,9 @@ def handler500(request, *args, **kwargs):
def maintenance(request):
return render(request, 'maintenance.html')
def login(request):
return render(request, 'login.html')
def register(request):
return render(request, 'register.html')
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment