BES-28 Added simple homepage.
This commit is contained in:
parent
57d469611d
commit
605648b6dc
@ -2,14 +2,25 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="b23c009e-2f8a-48f7-8b29-023f93596932" name="Default Changelist" comment="">
|
<list default="true" id="b23c009e-2f8a-48f7-8b29-023f93596932" name="Default Changelist" comment="">
|
||||||
<change afterPath="$PROJECT_DIR$/bestnotes/templates/base.html" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/BestNotesProject/static/images/bg_notes.jpg" afterDir="false" />
|
||||||
<change afterPath="$PROJECT_DIR$/bestnotes/templates/homepage.html" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/bestnotes/migrations/0002_subject_topic.py" afterDir="false" />
|
||||||
<change afterPath="$PROJECT_DIR$/bestnotes/templates/navbar.html" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/bestnotes/static/bg_notes.jpg" afterDir="false" />
|
||||||
<change afterPath="$PROJECT_DIR$/bestnotes/templates/profesor.html" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/bestnotes/static/homepage.css" afterDir="false" />
|
||||||
<change afterPath="$PROJECT_DIR$/bestnotes/templates/przedmiot.html" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/bestnotes/static/laptop.jpg" afterDir="false" />
|
||||||
<change afterPath="$PROJECT_DIR$/bestnotes/templates/registration/login.html" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/bestnotes/static/laptop.png" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/bestnotes/static/login.css" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/bestnotes/static/navbar.css" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/bestnotes/static/subject.css" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/images/bg_notes.jpg" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/BestNotesProject/settings.py" beforeDir="false" afterPath="$PROJECT_DIR$/BestNotesProject/settings.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/BestNotesProject/settings.py" beforeDir="false" afterPath="$PROJECT_DIR$/BestNotesProject/settings.py" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/BestNotesProject/urls.py" beforeDir="false" afterPath="$PROJECT_DIR$/BestNotesProject/urls.py" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/bestnotes/admin.py" beforeDir="false" afterPath="$PROJECT_DIR$/bestnotes/admin.py" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/bestnotes/models.py" beforeDir="false" afterPath="$PROJECT_DIR$/bestnotes/models.py" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/bestnotes/templates/homepage.html" beforeDir="false" afterPath="$PROJECT_DIR$/bestnotes/templates/homepage.html" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/bestnotes/templates/navbar.html" beforeDir="false" afterPath="$PROJECT_DIR$/bestnotes/templates/navbar.html" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/bestnotes/templates/profesor.html" beforeDir="false" afterPath="$PROJECT_DIR$/bestnotes/templates/subjects.html" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/bestnotes/templates/przedmiot.html" beforeDir="false" afterPath="$PROJECT_DIR$/bestnotes/templates/subject.html" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/bestnotes/urls.py" beforeDir="false" afterPath="$PROJECT_DIR$/bestnotes/urls.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/bestnotes/urls.py" beforeDir="false" afterPath="$PROJECT_DIR$/bestnotes/urls.py" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/bestnotes/views.py" beforeDir="false" afterPath="$PROJECT_DIR$/bestnotes/views.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/bestnotes/views.py" beforeDir="false" afterPath="$PROJECT_DIR$/bestnotes/views.py" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/db.sqlite3" beforeDir="false" afterPath="$PROJECT_DIR$/db.sqlite3" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/db.sqlite3" beforeDir="false" afterPath="$PROJECT_DIR$/db.sqlite3" afterDir="false" />
|
||||||
@ -20,6 +31,9 @@
|
|||||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||||
</component>
|
</component>
|
||||||
|
<component name="FavoritesManager">
|
||||||
|
<favorites_list name="BestNotes" />
|
||||||
|
</component>
|
||||||
<component name="FileTemplateManagerImpl">
|
<component name="FileTemplateManagerImpl">
|
||||||
<option name="RECENT_TEMPLATES">
|
<option name="RECENT_TEMPLATES">
|
||||||
<list>
|
<list>
|
||||||
@ -39,6 +53,7 @@
|
|||||||
<component name="ProjectId" id="1U5Jq3TEUnuX8tmyYK4OsXqAEBc" />
|
<component name="ProjectId" id="1U5Jq3TEUnuX8tmyYK4OsXqAEBc" />
|
||||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
||||||
<component name="PropertiesComponent">
|
<component name="PropertiesComponent">
|
||||||
|
<property name="ASKED_ADD_EXTERNAL_FILES" value="true" />
|
||||||
<property name="DefaultHtmlFileTemplate" value="HTML File" />
|
<property name="DefaultHtmlFileTemplate" value="HTML File" />
|
||||||
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
||||||
<property name="last_opened_file_path" value="$PROJECT_DIR$/bestnotes" />
|
<property name="last_opened_file_path" value="$PROJECT_DIR$/bestnotes" />
|
||||||
@ -62,7 +77,7 @@
|
|||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="RunManager">
|
<component name="RunManager">
|
||||||
<configuration name="Unittests in bestnotesunittests.py" type="tests" factoryName="Unittests" temporary="true" nameIsGenerated="true">
|
<configuration name="Unittests in E:/MojeDane/StudiaWMI/Semestr_2_Zimowy_2019-20/Systemy_informatyczne/merged_master/BestNotes/bestnotes/bestnotesunittests.py" type="tests" factoryName="Unittests" temporary="true" nameIsGenerated="true">
|
||||||
<module name="BestNotesProject" />
|
<module name="BestNotesProject" />
|
||||||
<option name="INTERPRETER_OPTIONS" value="" />
|
<option name="INTERPRETER_OPTIONS" value="" />
|
||||||
<option name="PARENT_ENVS" value="true" />
|
<option name="PARENT_ENVS" value="true" />
|
||||||
@ -78,7 +93,7 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
<recent_temporary>
|
<recent_temporary>
|
||||||
<list>
|
<list>
|
||||||
<item itemvalue="Python tests.Unittests in bestnotesunittests.py" />
|
<item itemvalue="Python tests.Unittests in E:/MojeDane/StudiaWMI/Semestr_2_Zimowy_2019-20/Systemy_informatyczne/merged_master/BestNotes/bestnotes/bestnotesunittests.py" />
|
||||||
</list>
|
</list>
|
||||||
</recent_temporary>
|
</recent_temporary>
|
||||||
</component>
|
</component>
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -27,9 +27,12 @@ DEBUG = True
|
|||||||
|
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = []
|
||||||
|
|
||||||
|
|
||||||
|
STATIC_URL = '/static/'
|
||||||
#
|
#
|
||||||
LOGIN_REDIRECT_URL = '/bestnotes/profesor/'
|
LOGIN_REDIRECT_URL = '/bestnotes/'
|
||||||
LOGOUT_REDIRECT_URL = '/bestnotes/'
|
LOGOUT_REDIRECT_URL = '/bestnotes/accounts/login/'
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
|
BIN
BestNotesProject/static/images/bg_notes.jpg
Normal file
BIN
BestNotesProject/static/images/bg_notes.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
@ -15,8 +15,10 @@ Including another URLconf
|
|||||||
"""
|
"""
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from django.urls import path, include
|
from django.urls import path, include
|
||||||
|
from bestnotes.views import homepage
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('bestnotes/', include('bestnotes.urls')),
|
path('bestnotes/', include('bestnotes.urls')),
|
||||||
|
path('', homepage, name='homepage'),
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
]
|
]
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -2,6 +2,8 @@ from django.contrib import admin
|
|||||||
|
|
||||||
# Register your models here.
|
# Register your models here.
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
from .models import StudentProfile
|
from .models import StudentProfile, Subject, Topic
|
||||||
|
|
||||||
admin.site.register(StudentProfile)
|
admin.site.register(StudentProfile)
|
||||||
|
admin.site.register(Subject)
|
||||||
|
admin.site.register(Topic)
|
31
bestnotes/migrations/0002_subject_topic.py
Normal file
31
bestnotes/migrations/0002_subject_topic.py
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# Generated by Django 2.2.7 on 2019-12-01 22:21
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('bestnotes', '0001_initial'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Subject',
|
||||||
|
fields=[
|
||||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('name', models.CharField(max_length=30)),
|
||||||
|
('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='bestnotes.StudentProfile')),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
migrations.CreateModel(
|
||||||
|
name='Topic',
|
||||||
|
fields=[
|
||||||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||||
|
('name', models.CharField(max_length=30)),
|
||||||
|
('add_date', models.DateField()),
|
||||||
|
('subject', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='bestnotes.Subject')),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
]
|
Binary file not shown.
@ -33,4 +33,16 @@ def create_studentprofile(sender, instance, created, **kwargs):
|
|||||||
|
|
||||||
@receiver(post_save, sender=User)
|
@receiver(post_save, sender=User)
|
||||||
def save_studentprofile(sender, instance, **kwargs):
|
def save_studentprofile(sender, instance, **kwargs):
|
||||||
instance.studentprofile.save()
|
instance.studentprofile.save()
|
||||||
|
|
||||||
|
|
||||||
|
class Subject(models.Model):
|
||||||
|
name = models.CharField(max_length=30)
|
||||||
|
student = models.ForeignKey(StudentProfile, on_delete=models.CASCADE)
|
||||||
|
|
||||||
|
class Topic(models.Model):
|
||||||
|
name = models.CharField(max_length=30)
|
||||||
|
subject = models.ForeignKey(Subject, on_delete=models.CASCADE)
|
||||||
|
add_date = models.DateField()
|
||||||
|
|
||||||
|
|
||||||
|
BIN
bestnotes/static/bg_notes.jpg
Normal file
BIN
bestnotes/static/bg_notes.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 MiB |
0
bestnotes/static/homepage.css
Normal file
0
bestnotes/static/homepage.css
Normal file
BIN
bestnotes/static/laptop.jpg
Normal file
BIN
bestnotes/static/laptop.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
BIN
bestnotes/static/laptop.png
Normal file
BIN
bestnotes/static/laptop.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.9 KiB |
47
bestnotes/static/login.css
Normal file
47
bestnotes/static/login.css
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
.login-container{
|
||||||
|
margin-top: 5%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.logo{
|
||||||
|
color:white;
|
||||||
|
margin-bottom: 5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.login-form-2{
|
||||||
|
border-radius: 5%;
|
||||||
|
padding: 5%;
|
||||||
|
background: #0062cc;
|
||||||
|
box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 9px 26px 0 rgba(0, 0, 0, 0.19);
|
||||||
|
}
|
||||||
|
.input-group-text{
|
||||||
|
font-size: 1.5rem;
|
||||||
|
min-width: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.login-form-2 h1{
|
||||||
|
text-align: center;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.login-container form{
|
||||||
|
padding: 8%;
|
||||||
|
}
|
||||||
|
.btnSubmit
|
||||||
|
{
|
||||||
|
width: 50%;
|
||||||
|
border-radius: 1rem;
|
||||||
|
padding: 1.5%;
|
||||||
|
border: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-form-2 .btnSubmit{
|
||||||
|
font-weight: 600;
|
||||||
|
color: #0062cc;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
9
bestnotes/static/navbar.css
Normal file
9
bestnotes/static/navbar.css
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
.nolink{
|
||||||
|
text-decoration: none;
|
||||||
|
color:white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nolink:hover{
|
||||||
|
text-decoration: none;
|
||||||
|
color:white;
|
||||||
|
}
|
0
bestnotes/static/subject.css
Normal file
0
bestnotes/static/subject.css
Normal file
@ -10,7 +10,28 @@
|
|||||||
|
|
||||||
{% include 'navbar.html' %}
|
{% include 'navbar.html' %}
|
||||||
|
|
||||||
<div class="container">
|
<div class="bg-secondary">
|
||||||
|
<div class="w-100 p-3 mb-2 text-white">
|
||||||
|
<div >
|
||||||
|
<img src="{% static 'bg_notes.jpg' %}" class="w-100 img-fluid"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="w-25 d-flex justify-content-center">
|
||||||
|
<img src="{% static 'laptop.png' %}" class="img-fluid "/>
|
||||||
|
</div>
|
||||||
|
<div class="d-flex justify-content-center">
|
||||||
|
<h2>Stwórz najlepszą wersję mobilnych notatek</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="w-50 d-flex justify-content-center">
|
||||||
|
<div >
|
||||||
|
<h3>Dziel się notatkami ze znajomymi</h3>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -7,12 +7,13 @@
|
|||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<ul class="navbar-nav collapse navbar-collapse" id="navbarNav">
|
<ul class="navbar-nav collapse navbar-collapse" id="navbarNav">
|
||||||
<li class="nav-item nav-link" href="{% url 'homepage' %}"><a class="nolink" href="{% url 'homepage' %}">Strona główna</a><span class="sr-only">(current)</span></li>
|
<li class="nav-item nav-link active" ><a class="nolink" href="{% url 'homepage' %}">Strona główna</a> <span class="sr-only">(current)</span></li>
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<li class="nav-item nav-link active"><a class="nolink" href="{% url 'profesor' %}">Przedmioty</a></li>
|
<li class="nav-item nav-link active"><a class="nolink" href="{% url 'subject' %}">Przedmioty</a></li>
|
||||||
<li class="nav-item nav-link active"><a class="nolink" href="{% url 'logout' %}">Wyloguj się</a></li>
|
<li class="nav-item nav-link"><a class="nolink" href="{% url 'logout' %}">Wyloguj się</a></li>
|
||||||
{% else %}
|
{% else %}
|
||||||
<li class="nav-item nav-link active"><a class="nolink" href="{% url 'login' %}">Zaloguj się</a></li>
|
<li class="nav-item nav-link"><a class="nolink" href="{% url 'login' %}">Zaloguj się</a></li>
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
@ -1,6 +1,8 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
{% block css %}
|
||||||
|
<link rel="stylesheet" type="text/css" href="{% static 'subject.css' %}">
|
||||||
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% include 'navbar.html' %}
|
{% include 'navbar.html' %}
|
||||||
<div class="container d-flex justify-content-center">
|
<div class="container d-flex justify-content-center">
|
@ -26,17 +26,17 @@
|
|||||||
<a class="row justify-content-center">Liczba dostępnych przedmiotów: 3/5</a>
|
<a class="row justify-content-center">Liczba dostępnych przedmiotów: 3/5</a>
|
||||||
<ul class="list-group cProductsList mt-3">
|
<ul class="list-group cProductsList mt-3">
|
||||||
<li class="list-group-item d-sm-flex justify-content-between"><p class="p-0 m-0 flex-grow-1">Sztuczna inteligencja</p>
|
<li class="list-group-item d-sm-flex justify-content-between"><p class="p-0 m-0 flex-grow-1">Sztuczna inteligencja</p>
|
||||||
<button class="btn-primary mr-1" ><a class="nolink" href="/profesor/Sztuczna inteligencja">Zarządzaj</a></button>
|
<button class="btn-primary mr-1" ><a class="nolink" href="/bestnotes/subject/Sztuczna inteligencja">Zarządzaj</a></button>
|
||||||
<button class="btn-success mr-1">Edytuj</button>
|
<button class="btn-success mr-1">Edytuj</button>
|
||||||
<button class="btn-danger">Usuń</button>
|
<button class="btn-danger">Usuń</button>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item d-sm-flex justify-content-between"><p class="p-0 m-0 flex-grow-1">Systemy informatyczne</p>
|
<li class="list-group-item d-sm-flex justify-content-between"><p class="p-0 m-0 flex-grow-1">Systemy informatyczne</p>
|
||||||
<button class="btn-primary mr-1"><a class="nolink" href="/profesor/Systemy informatyczne">Zarządzaj</a></button>
|
<button class="btn-primary mr-1"><a class="nolink" href="/bestnotes/subject/Systemy informatyczne">Zarządzaj</a></button>
|
||||||
<button class="btn-success mr-1">Edytuj</button>
|
<button class="btn-success mr-1">Edytuj</button>
|
||||||
<button class="btn-danger">Usuń</button>
|
<button class="btn-danger">Usuń</button>
|
||||||
</li>
|
</li>
|
||||||
<li class="list-group-item d-sm-flex justify-content-between"><p class="p-0 m-0 flex-grow-1">Programowanie</p>
|
<li class="list-group-item d-sm-flex justify-content-between"><p class="p-0 m-0 flex-grow-1">Programowanie</p>
|
||||||
<button class="btn-primary mr-1"><a class="nolink" href="/profesor/Programowanie">Zarządzaj</a></button>
|
<button class="btn-primary mr-1"><a class="nolink" href="/bestnotes/subject/Programowanie">Zarządzaj</a></button>
|
||||||
<button class="btn-success mr-1">Edytuj</button>
|
<button class="btn-success mr-1">Edytuj</button>
|
||||||
<button class="btn-danger">Usuń</button>
|
<button class="btn-danger">Usuń</button>
|
||||||
</li>
|
</li>
|
@ -6,6 +6,6 @@ urlpatterns = [
|
|||||||
path('', views.homepage, name='homepage'),
|
path('', views.homepage, name='homepage'),
|
||||||
#path('/', views.login),
|
#path('/', views.login),
|
||||||
path('accounts/', include("django.contrib.auth.urls")),
|
path('accounts/', include("django.contrib.auth.urls")),
|
||||||
path('profesor/', views.profesor, name="profesor"),
|
path('subject/', views.subject, name="subject"),
|
||||||
path('profesor/<id>', views.profesor_id),
|
path('subject/<id>', views.subject_id, name="subjectid"),
|
||||||
]
|
]
|
||||||
|
@ -7,11 +7,10 @@ from django.http import HttpResponse
|
|||||||
def homepage(request):
|
def homepage(request):
|
||||||
#return HttpResponse("BestNotes' index will be here.")
|
#return HttpResponse("BestNotes' index will be here.")
|
||||||
return render(request, "homepage.html", {})
|
return render(request, "homepage.html", {})
|
||||||
def login(request):
|
|
||||||
return render(request, "login.html", {})
|
|
||||||
|
|
||||||
def profesor(request):
|
|
||||||
return render(request, "profesor.html", {})
|
|
||||||
|
|
||||||
def profesor_id(request,id):
|
def subject(request):
|
||||||
return render(request, "przedmiot.html", {'id': id})
|
return render(request, "subjects.html", {})
|
||||||
|
|
||||||
|
def subject_id(request,id):
|
||||||
|
return render(request, "subject.html", {'id': id})
|
BIN
db.sqlite3
BIN
db.sqlite3
Binary file not shown.
BIN
images/bg_notes.jpg
Normal file
BIN
images/bg_notes.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
Loading…
Reference in New Issue
Block a user