From 4c7649c77ce1c7e3811e57796bff38c36af9aeeb Mon Sep 17 00:00:00 2001 From: Th3NiKo Date: Sun, 24 Nov 2019 14:17:22 +0100 Subject: [PATCH] BES-14 Add base, login and navbar front --- Front/templates/base.html | 29 ++++++++++++++++++ Front/templates/navbar.html | 16 ++++++++++ Front/templates/registration/login.html | 39 +++++++++++++++++++++++++ Front/urls.py | 10 +++++++ Front/views.py | 11 +++++++ 5 files changed, 105 insertions(+) create mode 100644 Front/templates/base.html create mode 100644 Front/templates/navbar.html create mode 100644 Front/templates/registration/login.html create mode 100644 Front/urls.py create mode 100644 Front/views.py diff --git a/Front/templates/base.html b/Front/templates/base.html new file mode 100644 index 0000000..00716c2 --- /dev/null +++ b/Front/templates/base.html @@ -0,0 +1,29 @@ + + +{% load static %} + + + + + + + + + + + + {% block css %} + {% endblock %} + Best Notes + + + {% block content %} + {% endblock %} + + + + + + + + \ No newline at end of file diff --git a/Front/templates/navbar.html b/Front/templates/navbar.html new file mode 100644 index 0000000..6c5b549 --- /dev/null +++ b/Front/templates/navbar.html @@ -0,0 +1,16 @@ + \ No newline at end of file diff --git a/Front/templates/registration/login.html b/Front/templates/registration/login.html new file mode 100644 index 0000000..620d353 --- /dev/null +++ b/Front/templates/registration/login.html @@ -0,0 +1,39 @@ +{% extends 'base.html' %} +{% load widget_tweaks %} +{% load static %} +{% block css %} + +{% endblock %} +{% block content %} +
+
+ +
+
+{% endblock %} \ No newline at end of file diff --git a/Front/urls.py b/Front/urls.py new file mode 100644 index 0000000..81f8f29 --- /dev/null +++ b/Front/urls.py @@ -0,0 +1,10 @@ +from django.urls import path, include +from . import views + +urlpatterns = [ + + path('/', views.login), + path('accounts/', include("django.contrib.auth.urls")), + path('profesor/', views.profesor, name="profesor"), + path('profesor/', views.profesor_id), +] diff --git a/Front/views.py b/Front/views.py new file mode 100644 index 0000000..643923f --- /dev/null +++ b/Front/views.py @@ -0,0 +1,11 @@ +from django.shortcuts import render + +# Create your views here. +def login(request): + return render(request, "login.html", {}) + +def profesor(request): + return render(request, "profesor.html", {}) + +def profesor_id(request,id): + return render(request, "przedmiot.html", {'id': id}) \ No newline at end of file