Prach Pongpanich преди 2 години
родител
ревизия
4822d7acf2
променени са 3 файла, в които са добавени 71 реда и са изтрити 15 реда
  1. 1 1
      app/course/views.py
  2. 62 14
      app/templates/base.html
  3. 8 0
      app/templates/course/list.html

+ 1 - 1
app/course/views.py

@@ -3,4 +3,4 @@ from django.shortcuts import render
3 3
 # Create your views here.
4 4
 
5 5
 def index(request):
6
-   return render(request, 'base.html')
6
+   return render(request, 'course/list.html')

Файловите разлики са ограничени, защото са твърде много
+ 62 - 14
app/templates/base.html


+ 8 - 0
app/templates/course/list.html

@@ -0,0 +1,8 @@
1
+{% extends 'base.html' %}                                                          
2
+{% load static %}
3
+{% block content %}
4
+
5
+<div class="text-xl font-semibold inline-block">title</div>
6
+<div class="divider mt-2"></div>
7
+
8
+{% endblock %}