Commit 2ddee60f authored by Борис Ким's avatar Борис Ким

Создал приложение аккаунтов

parent c52482ce
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class AccoutnsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'accoutns'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.shortcuts import render
# Create your views here.
from django.shortcuts import get_object_or_404, render
from django.urls.base import reverse, reverse_lazy
from django.urls.base import reverse_lazy
from django.views.generic import ListView, CreateView, DetailView, DeleteView
from django.views.generic import UpdateView
......@@ -23,7 +22,7 @@ class CoursesListView(ListView):
model = Course
context_object_name = 'courses'
template_name = 'courses/courses_list.html'
paginate_by = 9
paginate_by = 6
class CourseDetailView(DetailView):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment