diff --git a/arka/settings.py b/arka/settings.py index 3d5834b..1895903 100644 --- a/arka/settings.py +++ b/arka/settings.py @@ -37,6 +37,7 @@ INSTALLED_APPS = [ 'dev.apps.DevConfig', 'index.apps.IndexConfig', 'account.apps.AccountConfig', + 'order.apps.OrderConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', diff --git a/arka/urls.py b/arka/urls.py index af0e5d4..38eeb4a 100644 --- a/arka/urls.py +++ b/arka/urls.py @@ -23,5 +23,6 @@ urlpatterns = [ path('accounts/', include('django.contrib.auth.urls')), path('api/', include('api.urls')), path('dev/', include('dev.urls')), + path('orders/', include('order.urls')), path('', include('index.urls')), ] diff --git a/order/__init__.py b/order/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/order/admin.py b/order/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/order/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/order/apps.py b/order/apps.py new file mode 100644 index 0000000..42888e4 --- /dev/null +++ b/order/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class OrderConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'order' diff --git a/order/migrations/__init__.py b/order/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/order/models.py b/order/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/order/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/order/tests.py b/order/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/order/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/order/urls.py b/order/urls.py new file mode 100644 index 0000000..e93a3e8 --- /dev/null +++ b/order/urls.py @@ -0,0 +1,29 @@ +"""stall URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/3.2/topics/http/urls/ +Examples: +Function views + 1. Add an import: from my_app import views + 2. Add a URL to urlpatterns: path('', views.home, name='home') +Class-based views + 1. Add an import: from other_app.views import Home + 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') +Including another URLconf + 1. Import the include() function: from django.urls import include, path + 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) +""" +from django.contrib import admin +from django.urls import path +from . import views + +urlpatterns = [ + path('', views.orders_list, name='orders-list'), + # path('account', views.account, name='account'), + # path('account_', views.account_action, name='account_action'), + # + # path('catalog/', views.catalog, name='catalog'), + # path('catalog//', views.product_view, name='product_view'), + # path('cart', views.cart, name='cart'), +] + diff --git a/order/views.py b/order/views.py new file mode 100644 index 0000000..878bd22 --- /dev/null +++ b/order/views.py @@ -0,0 +1,5 @@ +from django.shortcuts import render + + +def orders_list(request): + return render(request, 'orders/orders-list.html') diff --git a/static/fonts/Avenir.ttf b/static/fonts/Avenir.ttf new file mode 100644 index 0000000..7d75781 Binary files /dev/null and b/static/fonts/Avenir.ttf differ diff --git a/static/images/no_cover.png b/static/images/no_cover.png new file mode 100644 index 0000000..0dad638 Binary files /dev/null and b/static/images/no_cover.png differ diff --git a/templates/orders/orders-list.html b/templates/orders/orders-list.html new file mode 100644 index 0000000..fd4483c --- /dev/null +++ b/templates/orders/orders-list.html @@ -0,0 +1,13 @@ +{% extends 'base.html' %} +{% block title %} Аккаунт | вход {% endblock %} + +{% block content %} +

Ваш аккаунт

+ {% if user.is_authenticated %} + тут должен быть список заказов... + {% else %} +

Вы не можете просматривать заказы не войдя в аккаунт

+ Используйте меню аккаунта для регистрации или входа + {% endif %} + +{% endblock %} diff --git a/templates/test_page.html b/templates/test_page.html new file mode 100644 index 0000000..a30fc2f --- /dev/null +++ b/templates/test_page.html @@ -0,0 +1,49 @@ +{% extends 'base.html' %} +{% block title %} Лаба {% endblock %} +{% load static %} + +{% block styles %} + +{% endblock %} + +{% block content %} +

Страница для выполнения лабы

+ +
+ Тут будет текст из JS + +
+ +
+
+ +
+ +{% endblock %} diff --git a/templates/user-agreement.html b/templates/user-agreement.html new file mode 100644 index 0000000..4116318 --- /dev/null +++ b/templates/user-agreement.html @@ -0,0 +1,30 @@ +{% extends 'base.html' %} +{% block title %} Аккаунт | пользовательское соглашение {% endblock %} + +{% block content %} +

Пользовательское соглашение

+ +
+ +

Пункт пользовательского соглашения

+

+ Параграф, какой-то текст. Нумерованный список: + +

+ +
    +
  1. 1 пункт списка
  2. +
  3. 2 пункт списка
  4. +
  5. 3 пункт списка
  6. +
+ +

+ Параграф, еще какой-то текст. Ненумерованный список: +

+
    +
  • пункт ненумерованного списка
  • +
  • пункт ненумерованного списка
  • +
  • пункт ненумерованного списка
  • +
+
+{% endblock %}