diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..218e1e3 Binary files /dev/null and b/.DS_Store differ diff --git a/database.sqlite3 b/database.sqlite3 new file mode 100644 index 0000000..c0f8f79 Binary files /dev/null and b/database.sqlite3 differ diff --git a/frame/.DS_Store b/frame/.DS_Store new file mode 100644 index 0000000..da9c6b3 Binary files /dev/null and b/frame/.DS_Store differ diff --git a/frame/__init__.py b/frame/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/frame/__pycache__/__init__.cpython-310.pyc b/frame/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..d34ad72 Binary files /dev/null and b/frame/__pycache__/__init__.cpython-310.pyc differ diff --git a/frame/__pycache__/__init__.cpython-311.pyc b/frame/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..38bb5b6 Binary files /dev/null and b/frame/__pycache__/__init__.cpython-311.pyc differ diff --git a/frame/__pycache__/settings.cpython-310.pyc b/frame/__pycache__/settings.cpython-310.pyc new file mode 100644 index 0000000..ff582b2 Binary files /dev/null and b/frame/__pycache__/settings.cpython-310.pyc differ diff --git a/frame/__pycache__/settings.cpython-311.pyc b/frame/__pycache__/settings.cpython-311.pyc new file mode 100644 index 0000000..5184390 Binary files /dev/null and b/frame/__pycache__/settings.cpython-311.pyc differ diff --git a/frame/__pycache__/urls.cpython-310.pyc b/frame/__pycache__/urls.cpython-310.pyc new file mode 100644 index 0000000..bb0f505 Binary files /dev/null and b/frame/__pycache__/urls.cpython-310.pyc differ diff --git a/frame/__pycache__/urls.cpython-311.pyc b/frame/__pycache__/urls.cpython-311.pyc new file mode 100644 index 0000000..36b7e2d Binary files /dev/null and b/frame/__pycache__/urls.cpython-311.pyc differ diff --git a/frame/__pycache__/wsgi.cpython-310.pyc b/frame/__pycache__/wsgi.cpython-310.pyc new file mode 100644 index 0000000..3d45f4c Binary files /dev/null and b/frame/__pycache__/wsgi.cpython-310.pyc differ diff --git a/frame/__pycache__/wsgi.cpython-311.pyc b/frame/__pycache__/wsgi.cpython-311.pyc new file mode 100644 index 0000000..ba6df2f Binary files /dev/null and b/frame/__pycache__/wsgi.cpython-311.pyc differ diff --git a/frame/asgi.py b/frame/asgi.py new file mode 100644 index 0000000..0f369f1 --- /dev/null +++ b/frame/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for frame project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'frame.settings') + +application = get_asgi_application() diff --git a/frame/settings.py b/frame/settings.py new file mode 100644 index 0000000..d64ff3a --- /dev/null +++ b/frame/settings.py @@ -0,0 +1,129 @@ +""" +Django settings for frame project. + +Generated by 'django-admin startproject' using Django 4.1.7. + +For more information on this file, see +https://docs.djangoproject.com/en/4.1/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/4.1/ref/settings/ +""" + +from pathlib import Path + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'django-insecure-j&$q6hwwc$!k=h0yk*jl*r&6%mwgwsu$uv+=u00d$39i-c_8&5' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = ['84.201.188.44', '127.0.0.1', '127.0.0.1:8000'] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'wrapper', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'frame.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'frame.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/4.1/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'database.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/4.1/topics/i18n/ + +LANGUAGE_CODE = 'ru-ru' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/4.1/howto/static-files/ + +STATIC_URL = 'static/' + +STATICFILES_DIRS = [ + BASE_DIR / "static", + "/var/www/static/", +] + +# Default primary key field type +# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/frame/urls.py b/frame/urls.py new file mode 100644 index 0000000..78b80f2 --- /dev/null +++ b/frame/urls.py @@ -0,0 +1,29 @@ +"""frame URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/4.1/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 include, path +from wrapper import views as wv +from wrapper import services as fun + +urlpatterns = [ + path('', include('wrapper.urls')), + path('admin/', admin.site.urls, name='admin'), +] + +for v in wv.views: + urlpatterns.append(path(f'{v.__name__}/', v, name=f'{v.__name__}')) + + diff --git a/frame/wsgi.py b/frame/wsgi.py new file mode 100644 index 0000000..6adcde2 --- /dev/null +++ b/frame/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for frame project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.1/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'frame.settings') + +application = get_wsgi_application() diff --git a/manage.py b/manage.py new file mode 100755 index 0000000..e56c1b9 --- /dev/null +++ b/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'frame.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/myarch 2/.DS_Store b/myarch 2/.DS_Store new file mode 100644 index 0000000..8024d02 Binary files /dev/null and b/myarch 2/.DS_Store differ diff --git a/myarch 2/database.sqlite3 b/myarch 2/database.sqlite3 new file mode 100644 index 0000000..0dbd2b1 Binary files /dev/null and b/myarch 2/database.sqlite3 differ diff --git a/myarch 2/frame/__init__.py b/myarch 2/frame/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/myarch 2/frame/__pycache__/__init__.cpython-310.pyc b/myarch 2/frame/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..fcc99a4 Binary files /dev/null and b/myarch 2/frame/__pycache__/__init__.cpython-310.pyc differ diff --git a/myarch 2/frame/__pycache__/__init__.cpython-311.pyc b/myarch 2/frame/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..63c60c7 Binary files /dev/null and b/myarch 2/frame/__pycache__/__init__.cpython-311.pyc differ diff --git a/myarch 2/frame/__pycache__/settings.cpython-310.pyc b/myarch 2/frame/__pycache__/settings.cpython-310.pyc new file mode 100644 index 0000000..b2de94f Binary files /dev/null and b/myarch 2/frame/__pycache__/settings.cpython-310.pyc differ diff --git a/myarch 2/frame/__pycache__/settings.cpython-311.pyc b/myarch 2/frame/__pycache__/settings.cpython-311.pyc new file mode 100644 index 0000000..fc133a4 Binary files /dev/null and b/myarch 2/frame/__pycache__/settings.cpython-311.pyc differ diff --git a/myarch 2/frame/__pycache__/urls.cpython-310.pyc b/myarch 2/frame/__pycache__/urls.cpython-310.pyc new file mode 100644 index 0000000..05ecd9f Binary files /dev/null and b/myarch 2/frame/__pycache__/urls.cpython-310.pyc differ diff --git a/myarch 2/frame/__pycache__/urls.cpython-311.pyc b/myarch 2/frame/__pycache__/urls.cpython-311.pyc new file mode 100644 index 0000000..26b2fda Binary files /dev/null and b/myarch 2/frame/__pycache__/urls.cpython-311.pyc differ diff --git a/myarch 2/frame/__pycache__/wsgi.cpython-310.pyc b/myarch 2/frame/__pycache__/wsgi.cpython-310.pyc new file mode 100644 index 0000000..b9a7afc Binary files /dev/null and b/myarch 2/frame/__pycache__/wsgi.cpython-310.pyc differ diff --git a/myarch 2/frame/__pycache__/wsgi.cpython-311.pyc b/myarch 2/frame/__pycache__/wsgi.cpython-311.pyc new file mode 100644 index 0000000..bfa0ce7 Binary files /dev/null and b/myarch 2/frame/__pycache__/wsgi.cpython-311.pyc differ diff --git a/myarch 2/frame/asgi.py b/myarch 2/frame/asgi.py new file mode 100644 index 0000000..0f369f1 --- /dev/null +++ b/myarch 2/frame/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for frame project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.1/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'frame.settings') + +application = get_asgi_application() diff --git a/myarch 2/frame/settings.py b/myarch 2/frame/settings.py new file mode 100644 index 0000000..c37b0e0 --- /dev/null +++ b/myarch 2/frame/settings.py @@ -0,0 +1,124 @@ +""" +Django settings for frame project. + +Generated by 'django-admin startproject' using Django 4.1.7. + +For more information on this file, see +https://docs.djangoproject.com/en/4.1/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/4.1/ref/settings/ +""" + +from pathlib import Path + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'django-insecure-j&$q6hwwc$!k=h0yk*jl*r&6%mwgwsu$uv+=u00d$39i-c_8&5' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'wrapper', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'frame.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'frame.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/4.1/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'database.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/4.1/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/4.1/topics/i18n/ + +LANGUAGE_CODE = 'ru-ru' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/4.1/howto/static-files/ + +STATIC_URL = 'static/' + +# Default primary key field type +# https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/myarch 2/frame/urls.py b/myarch 2/frame/urls.py new file mode 100644 index 0000000..7babe60 --- /dev/null +++ b/myarch 2/frame/urls.py @@ -0,0 +1,33 @@ +"""frame URL Configuration + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/4.1/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 wrapper import views as wv + +urlpatterns = [ + path('admin/', admin.site.urls), +] + +for v in wv.views: + urlpatterns.append(path(f'{v.__name__}/', v, name=f'{v.__name__}')) +from django.urls import include, path +from django.contrib import admin + +urlpatterns = [ + path('', include('wrapper.urls')), + path('admin/', admin.site.urls, name='admin'), +] + diff --git a/myarch 2/frame/wsgi.py b/myarch 2/frame/wsgi.py new file mode 100644 index 0000000..6adcde2 --- /dev/null +++ b/myarch 2/frame/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for frame project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.1/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'frame.settings') + +application = get_wsgi_application() diff --git a/myarch 2/manage.py b/myarch 2/manage.py new file mode 100755 index 0000000..e56c1b9 --- /dev/null +++ b/myarch 2/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'frame.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/myarch 2/wrapper/__init__.py b/myarch 2/wrapper/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/myarch 2/wrapper/__pycache__/__init__.cpython-310.pyc b/myarch 2/wrapper/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..494077c Binary files /dev/null and b/myarch 2/wrapper/__pycache__/__init__.cpython-310.pyc differ diff --git a/myarch 2/wrapper/__pycache__/__init__.cpython-311.pyc b/myarch 2/wrapper/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..fcf47ea Binary files /dev/null and b/myarch 2/wrapper/__pycache__/__init__.cpython-311.pyc differ diff --git a/myarch 2/wrapper/__pycache__/admin.cpython-310.pyc b/myarch 2/wrapper/__pycache__/admin.cpython-310.pyc new file mode 100644 index 0000000..18534af Binary files /dev/null and b/myarch 2/wrapper/__pycache__/admin.cpython-310.pyc differ diff --git a/myarch 2/wrapper/__pycache__/admin.cpython-311.pyc b/myarch 2/wrapper/__pycache__/admin.cpython-311.pyc new file mode 100644 index 0000000..22d81a2 Binary files /dev/null and b/myarch 2/wrapper/__pycache__/admin.cpython-311.pyc differ diff --git a/myarch 2/wrapper/__pycache__/apps.cpython-310.pyc b/myarch 2/wrapper/__pycache__/apps.cpython-310.pyc new file mode 100644 index 0000000..6d499ad Binary files /dev/null and b/myarch 2/wrapper/__pycache__/apps.cpython-310.pyc differ diff --git a/myarch 2/wrapper/__pycache__/apps.cpython-311.pyc b/myarch 2/wrapper/__pycache__/apps.cpython-311.pyc new file mode 100644 index 0000000..f7a05b4 Binary files /dev/null and b/myarch 2/wrapper/__pycache__/apps.cpython-311.pyc differ diff --git a/myarch 2/wrapper/__pycache__/models.cpython-310.pyc b/myarch 2/wrapper/__pycache__/models.cpython-310.pyc new file mode 100644 index 0000000..ad7278f Binary files /dev/null and b/myarch 2/wrapper/__pycache__/models.cpython-310.pyc differ diff --git a/myarch 2/wrapper/__pycache__/models.cpython-311.pyc b/myarch 2/wrapper/__pycache__/models.cpython-311.pyc new file mode 100644 index 0000000..57ec0b3 Binary files /dev/null and b/myarch 2/wrapper/__pycache__/models.cpython-311.pyc differ diff --git a/myarch 2/wrapper/__pycache__/services.cpython-310.pyc b/myarch 2/wrapper/__pycache__/services.cpython-310.pyc new file mode 100644 index 0000000..9eecacc Binary files /dev/null and b/myarch 2/wrapper/__pycache__/services.cpython-310.pyc differ diff --git a/myarch 2/wrapper/__pycache__/services.cpython-311.pyc b/myarch 2/wrapper/__pycache__/services.cpython-311.pyc new file mode 100644 index 0000000..f1853b4 Binary files /dev/null and b/myarch 2/wrapper/__pycache__/services.cpython-311.pyc differ diff --git a/myarch 2/wrapper/__pycache__/urls.cpython-311.pyc b/myarch 2/wrapper/__pycache__/urls.cpython-311.pyc new file mode 100644 index 0000000..c5df059 Binary files /dev/null and b/myarch 2/wrapper/__pycache__/urls.cpython-311.pyc differ diff --git a/myarch 2/wrapper/__pycache__/views.cpython-310.pyc b/myarch 2/wrapper/__pycache__/views.cpython-310.pyc new file mode 100644 index 0000000..31afc33 Binary files /dev/null and b/myarch 2/wrapper/__pycache__/views.cpython-310.pyc differ diff --git a/myarch 2/wrapper/__pycache__/views.cpython-311.pyc b/myarch 2/wrapper/__pycache__/views.cpython-311.pyc new file mode 100644 index 0000000..b4511cd Binary files /dev/null and b/myarch 2/wrapper/__pycache__/views.cpython-311.pyc differ diff --git a/myarch 2/wrapper/admin.py b/myarch 2/wrapper/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/myarch 2/wrapper/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/myarch 2/wrapper/apps.py b/myarch 2/wrapper/apps.py new file mode 100644 index 0000000..c17b4f6 --- /dev/null +++ b/myarch 2/wrapper/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class WrapperConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'wrapper' diff --git a/myarch 2/wrapper/migrations/__init__.py b/myarch 2/wrapper/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/myarch 2/wrapper/migrations/__pycache__/__init__.cpython-310.pyc b/myarch 2/wrapper/migrations/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..51bac58 Binary files /dev/null and b/myarch 2/wrapper/migrations/__pycache__/__init__.cpython-310.pyc differ diff --git a/myarch 2/wrapper/migrations/__pycache__/__init__.cpython-311.pyc b/myarch 2/wrapper/migrations/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..f6fe9a1 Binary files /dev/null and b/myarch 2/wrapper/migrations/__pycache__/__init__.cpython-311.pyc differ diff --git a/myarch 2/wrapper/models.py b/myarch 2/wrapper/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/myarch 2/wrapper/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/myarch 2/wrapper/services.py b/myarch 2/wrapper/services.py new file mode 100644 index 0000000..1eaecdd --- /dev/null +++ b/myarch 2/wrapper/services.py @@ -0,0 +1,6 @@ +def mnk(): + return "Это результат" + +def n100(): + return sum(range(100)) + diff --git a/myarch 2/wrapper/templates/login.html b/myarch 2/wrapper/templates/login.html new file mode 100644 index 0000000..1d5f69c --- /dev/null +++ b/myarch 2/wrapper/templates/login.html @@ -0,0 +1,9 @@ +{% if message %} +
{{ message }}
+{% endif %} + diff --git a/myarch 2/wrapper/tests.py b/myarch 2/wrapper/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/myarch 2/wrapper/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/myarch 2/wrapper/urls.py b/myarch 2/wrapper/urls.py new file mode 100644 index 0000000..a4eb4f6 --- /dev/null +++ b/myarch 2/wrapper/urls.py @@ -0,0 +1,6 @@ +from django.urls import path +from . import views + +urlpatterns = [ + path('login/', views.login_view, name='login'), +] \ No newline at end of file diff --git a/myarch 2/wrapper/views.py b/myarch 2/wrapper/views.py new file mode 100644 index 0000000..f1852df --- /dev/null +++ b/myarch 2/wrapper/views.py @@ -0,0 +1,32 @@ +from django.shortcuts import render, redirect +from django.http import HttpResponse +from django.contrib.auth import authenticate, login + +from . import services + +views = [] + +def wrap(f): + def my_view(request): + user_id = request.user.id + return HttpResponse(str(f())) + my_view.__name__ = f.__name__ + return my_view + +for n in dir(services): + if "_" not in n: + views.append(wrap(getattr(services, n))) + +def login_view(request): + if request.method == 'POST': + username = request.POST['username'] + password = request.POST['password'] + user = authenticate(request, username=username, password=password) + if user is not None: + login(request, user) + return redirect('/admin') + else: + message = 'Invalid login credentials' + else: + message = '' + return render(request, 'login.html', {'message': message}) \ No newline at end of file diff --git a/myproject/.DS_Store b/myproject/.DS_Store new file mode 100644 index 0000000..999955d Binary files /dev/null and b/myproject/.DS_Store differ diff --git a/myproject/myproject/db.sqlite3 b/myproject/myproject/db.sqlite3 new file mode 100644 index 0000000..78b86a6 Binary files /dev/null and b/myproject/myproject/db.sqlite3 differ diff --git a/myproject/myproject/manage.py b/myproject/myproject/manage.py new file mode 100755 index 0000000..92bb9a3 --- /dev/null +++ b/myproject/myproject/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +"""Django's command-line utility for administrative tasks.""" +import os +import sys + + +def main(): + """Run administrative tasks.""" + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') + try: + from django.core.management import execute_from_command_line + except ImportError as exc: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) from exc + execute_from_command_line(sys.argv) + + +if __name__ == '__main__': + main() diff --git a/myproject/myproject/myapp/__init__.py b/myproject/myproject/myapp/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/myproject/myproject/myapp/__pycache__/__init__.cpython-311.pyc b/myproject/myproject/myapp/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..6d8cbe1 Binary files /dev/null and b/myproject/myproject/myapp/__pycache__/__init__.cpython-311.pyc differ diff --git a/myproject/myproject/myapp/__pycache__/admin.cpython-311.pyc b/myproject/myproject/myapp/__pycache__/admin.cpython-311.pyc new file mode 100644 index 0000000..c269baa Binary files /dev/null and b/myproject/myproject/myapp/__pycache__/admin.cpython-311.pyc differ diff --git a/myproject/myproject/myapp/__pycache__/apps.cpython-311.pyc b/myproject/myproject/myapp/__pycache__/apps.cpython-311.pyc new file mode 100644 index 0000000..f184768 Binary files /dev/null and b/myproject/myproject/myapp/__pycache__/apps.cpython-311.pyc differ diff --git a/myproject/myproject/myapp/__pycache__/models.cpython-311.pyc b/myproject/myproject/myapp/__pycache__/models.cpython-311.pyc new file mode 100644 index 0000000..8428b6d Binary files /dev/null and b/myproject/myproject/myapp/__pycache__/models.cpython-311.pyc differ diff --git a/myproject/myproject/myapp/__pycache__/urls.cpython-311.pyc b/myproject/myproject/myapp/__pycache__/urls.cpython-311.pyc new file mode 100644 index 0000000..4411b2b Binary files /dev/null and b/myproject/myproject/myapp/__pycache__/urls.cpython-311.pyc differ diff --git a/myproject/myproject/myapp/__pycache__/views.cpython-311.pyc b/myproject/myproject/myapp/__pycache__/views.cpython-311.pyc new file mode 100644 index 0000000..332db3f Binary files /dev/null and b/myproject/myproject/myapp/__pycache__/views.cpython-311.pyc differ diff --git a/myproject/myproject/myapp/admin.py b/myproject/myproject/myapp/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/myproject/myproject/myapp/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/myproject/myproject/myapp/apps.py b/myproject/myproject/myapp/apps.py new file mode 100644 index 0000000..c34fb20 --- /dev/null +++ b/myproject/myproject/myapp/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class MyappConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'myapp' diff --git a/myproject/myproject/myapp/migrations/__init__.py b/myproject/myproject/myapp/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/myproject/myproject/myapp/migrations/__pycache__/__init__.cpython-311.pyc b/myproject/myproject/myapp/migrations/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..84efc44 Binary files /dev/null and b/myproject/myproject/myapp/migrations/__pycache__/__init__.cpython-311.pyc differ diff --git a/myproject/myproject/myapp/models.py b/myproject/myproject/myapp/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/myproject/myproject/myapp/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/myproject/myproject/myapp/templates/login.html b/myproject/myproject/myapp/templates/login.html new file mode 100644 index 0000000..949242a --- /dev/null +++ b/myproject/myproject/myapp/templates/login.html @@ -0,0 +1,9 @@ +{% if message %} +{{ message }}
+{% endif %} + \ No newline at end of file diff --git a/myproject/myproject/myapp/tests.py b/myproject/myproject/myapp/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/myproject/myproject/myapp/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/myproject/myproject/myapp/urls.py b/myproject/myproject/myapp/urls.py new file mode 100644 index 0000000..ddb3cc9 --- /dev/null +++ b/myproject/myproject/myapp/urls.py @@ -0,0 +1,6 @@ +from django.urls import path +from . import views + +urlpatterns = [ + path('login/', views.login_view, name='login'), +] diff --git a/myproject/myproject/myapp/views.py b/myproject/myproject/myapp/views.py new file mode 100644 index 0000000..1b54511 --- /dev/null +++ b/myproject/myproject/myapp/views.py @@ -0,0 +1,16 @@ +from django.shortcuts import render, redirect +from django.contrib.auth import authenticate, login + +def login_view(request): + if request.method == 'POST': + username = request.POST['username'] + password = request.POST['password'] + user = authenticate(request, username=username, password=password) + if user is not None: + login(request, user) + return redirect('home') + else: + message = 'Invalid login credentials' + else: + message = '' + return render(request, 'login.html', {'message': message}) diff --git a/myproject/myproject/myproject/__init__.py b/myproject/myproject/myproject/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/myproject/myproject/myproject/__pycache__/__init__.cpython-311.pyc b/myproject/myproject/myproject/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..602dd15 Binary files /dev/null and b/myproject/myproject/myproject/__pycache__/__init__.cpython-311.pyc differ diff --git a/myproject/myproject/myproject/__pycache__/settings.cpython-311.pyc b/myproject/myproject/myproject/__pycache__/settings.cpython-311.pyc new file mode 100644 index 0000000..6c79387 Binary files /dev/null and b/myproject/myproject/myproject/__pycache__/settings.cpython-311.pyc differ diff --git a/myproject/myproject/myproject/__pycache__/urls.cpython-311.pyc b/myproject/myproject/myproject/__pycache__/urls.cpython-311.pyc new file mode 100644 index 0000000..d3e4df0 Binary files /dev/null and b/myproject/myproject/myproject/__pycache__/urls.cpython-311.pyc differ diff --git a/myproject/myproject/myproject/__pycache__/wsgi.cpython-311.pyc b/myproject/myproject/myproject/__pycache__/wsgi.cpython-311.pyc new file mode 100644 index 0000000..aa02c90 Binary files /dev/null and b/myproject/myproject/myproject/__pycache__/wsgi.cpython-311.pyc differ diff --git a/myproject/myproject/myproject/asgi.py b/myproject/myproject/myproject/asgi.py new file mode 100644 index 0000000..115ddf8 --- /dev/null +++ b/myproject/myproject/myproject/asgi.py @@ -0,0 +1,16 @@ +""" +ASGI config for myproject project. + +It exposes the ASGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.2/howto/deployment/asgi/ +""" + +import os + +from django.core.asgi import get_asgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') + +application = get_asgi_application() diff --git a/myproject/myproject/myproject/settings.py b/myproject/myproject/myproject/settings.py new file mode 100644 index 0000000..160acbf --- /dev/null +++ b/myproject/myproject/myproject/settings.py @@ -0,0 +1,124 @@ +""" +Django settings for myproject project. + +Generated by 'django-admin startproject' using Django 4.2. + +For more information on this file, see +https://docs.djangoproject.com/en/4.2/topics/settings/ + +For the full list of settings and their values, see +https://docs.djangoproject.com/en/4.2/ref/settings/ +""" + +from pathlib import Path + +# Build paths inside the project like this: BASE_DIR / 'subdir'. +BASE_DIR = Path(__file__).resolve().parent.parent + + +# Quick-start development settings - unsuitable for production +# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ + +# SECURITY WARNING: keep the secret key used in production secret! +SECRET_KEY = 'django-insecure--)hp7pr+*_w0^is=f^$#isekryogt!v@sm654)*iogjc&j@l+3' + +# SECURITY WARNING: don't run with debug turned on in production! +DEBUG = True + +ALLOWED_HOSTS = [] + + +# Application definition + +INSTALLED_APPS = [ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.messages', + 'django.contrib.staticfiles', + 'myapp', +] + +MIDDLEWARE = [ + 'django.middleware.security.SecurityMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.common.CommonMiddleware', + 'django.middleware.csrf.CsrfViewMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.contrib.messages.middleware.MessageMiddleware', + 'django.middleware.clickjacking.XFrameOptionsMiddleware', +] + +ROOT_URLCONF = 'myproject.urls' + +TEMPLATES = [ + { + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': [], + 'APP_DIRS': True, + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, +] + +WSGI_APPLICATION = 'myproject.wsgi.application' + + +# Database +# https://docs.djangoproject.com/en/4.2/ref/settings/#databases + +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': BASE_DIR / 'db.sqlite3', + } +} + + +# Password validation +# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators + +AUTH_PASSWORD_VALIDATORS = [ + { + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + }, + { + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + }, +] + + +# Internationalization +# https://docs.djangoproject.com/en/4.2/topics/i18n/ + +LANGUAGE_CODE = 'en-us' + +TIME_ZONE = 'UTC' + +USE_I18N = True + +USE_TZ = True + + +# Static files (CSS, JavaScript, Images) +# https://docs.djangoproject.com/en/4.2/howto/static-files/ + +STATIC_URL = 'static/' + +# Default primary key field type +# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field + +DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' diff --git a/myproject/myproject/myproject/urls.py b/myproject/myproject/myproject/urls.py new file mode 100644 index 0000000..2ed36a6 --- /dev/null +++ b/myproject/myproject/myproject/urls.py @@ -0,0 +1,29 @@ +""" +URL configuration for myproject project. + +The `urlpatterns` list routes URLs to views. For more information please see: + https://docs.djangoproject.com/en/4.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 + +urlpatterns = [ + path('admin/', admin.site.urls), +] +from django.urls import include, path +from django.contrib import admin + +urlpatterns = [ + path('', include('myapp.urls')), + path('admin/', admin.site.urls), +] diff --git a/myproject/myproject/myproject/wsgi.py b/myproject/myproject/myproject/wsgi.py new file mode 100644 index 0000000..b0d0b1c --- /dev/null +++ b/myproject/myproject/myproject/wsgi.py @@ -0,0 +1,16 @@ +""" +WSGI config for myproject project. + +It exposes the WSGI callable as a module-level variable named ``application``. + +For more information on this file, see +https://docs.djangoproject.com/en/4.2/howto/deployment/wsgi/ +""" + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') + +application = get_wsgi_application() diff --git a/wrapper/.DS_Store b/wrapper/.DS_Store new file mode 100644 index 0000000..00ca247 Binary files /dev/null and b/wrapper/.DS_Store differ diff --git a/wrapper/__init__.py b/wrapper/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/wrapper/__pycache__/__init__.cpython-310.pyc b/wrapper/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..9bdba04 Binary files /dev/null and b/wrapper/__pycache__/__init__.cpython-310.pyc differ diff --git a/wrapper/__pycache__/__init__.cpython-311.pyc b/wrapper/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..0ad8152 Binary files /dev/null and b/wrapper/__pycache__/__init__.cpython-311.pyc differ diff --git a/wrapper/__pycache__/admin.cpython-310.pyc b/wrapper/__pycache__/admin.cpython-310.pyc new file mode 100644 index 0000000..bebcd4a Binary files /dev/null and b/wrapper/__pycache__/admin.cpython-310.pyc differ diff --git a/wrapper/__pycache__/admin.cpython-311.pyc b/wrapper/__pycache__/admin.cpython-311.pyc new file mode 100644 index 0000000..fe46575 Binary files /dev/null and b/wrapper/__pycache__/admin.cpython-311.pyc differ diff --git a/wrapper/__pycache__/apps.cpython-310.pyc b/wrapper/__pycache__/apps.cpython-310.pyc new file mode 100644 index 0000000..b57f799 Binary files /dev/null and b/wrapper/__pycache__/apps.cpython-310.pyc differ diff --git a/wrapper/__pycache__/apps.cpython-311.pyc b/wrapper/__pycache__/apps.cpython-311.pyc new file mode 100644 index 0000000..dee7192 Binary files /dev/null and b/wrapper/__pycache__/apps.cpython-311.pyc differ diff --git a/wrapper/__pycache__/forms.cpython-310.pyc b/wrapper/__pycache__/forms.cpython-310.pyc new file mode 100644 index 0000000..c7221bc Binary files /dev/null and b/wrapper/__pycache__/forms.cpython-310.pyc differ diff --git a/wrapper/__pycache__/functions.cpython-310.pyc b/wrapper/__pycache__/functions.cpython-310.pyc new file mode 100644 index 0000000..f64c48e Binary files /dev/null and b/wrapper/__pycache__/functions.cpython-310.pyc differ diff --git a/wrapper/__pycache__/models.cpython-310.pyc b/wrapper/__pycache__/models.cpython-310.pyc new file mode 100644 index 0000000..84bc802 Binary files /dev/null and b/wrapper/__pycache__/models.cpython-310.pyc differ diff --git a/wrapper/__pycache__/models.cpython-311.pyc b/wrapper/__pycache__/models.cpython-311.pyc new file mode 100644 index 0000000..089e0c0 Binary files /dev/null and b/wrapper/__pycache__/models.cpython-311.pyc differ diff --git a/wrapper/__pycache__/services.cpython-310.pyc b/wrapper/__pycache__/services.cpython-310.pyc new file mode 100644 index 0000000..3359c58 Binary files /dev/null and b/wrapper/__pycache__/services.cpython-310.pyc differ diff --git a/wrapper/__pycache__/services.cpython-311.pyc b/wrapper/__pycache__/services.cpython-311.pyc new file mode 100644 index 0000000..effc24c Binary files /dev/null and b/wrapper/__pycache__/services.cpython-311.pyc differ diff --git a/wrapper/__pycache__/types.cpython-310.pyc b/wrapper/__pycache__/types.cpython-310.pyc new file mode 100644 index 0000000..b483d15 Binary files /dev/null and b/wrapper/__pycache__/types.cpython-310.pyc differ diff --git a/wrapper/__pycache__/types.cpython-311.pyc b/wrapper/__pycache__/types.cpython-311.pyc new file mode 100644 index 0000000..572a494 Binary files /dev/null and b/wrapper/__pycache__/types.cpython-311.pyc differ diff --git a/wrapper/__pycache__/urls.cpython-310.pyc b/wrapper/__pycache__/urls.cpython-310.pyc new file mode 100644 index 0000000..07c16e1 Binary files /dev/null and b/wrapper/__pycache__/urls.cpython-310.pyc differ diff --git a/wrapper/__pycache__/urls.cpython-311.pyc b/wrapper/__pycache__/urls.cpython-311.pyc new file mode 100644 index 0000000..42baeb4 Binary files /dev/null and b/wrapper/__pycache__/urls.cpython-311.pyc differ diff --git a/wrapper/__pycache__/views.cpython-310.pyc b/wrapper/__pycache__/views.cpython-310.pyc new file mode 100644 index 0000000..5b064b1 Binary files /dev/null and b/wrapper/__pycache__/views.cpython-310.pyc differ diff --git a/wrapper/__pycache__/views.cpython-311.pyc b/wrapper/__pycache__/views.cpython-311.pyc new file mode 100644 index 0000000..3f349b3 Binary files /dev/null and b/wrapper/__pycache__/views.cpython-311.pyc differ diff --git a/wrapper/admin.py b/wrapper/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/wrapper/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/wrapper/apps.py b/wrapper/apps.py new file mode 100644 index 0000000..c17b4f6 --- /dev/null +++ b/wrapper/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class WrapperConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'wrapper' diff --git a/wrapper/forms.py b/wrapper/forms.py new file mode 100644 index 0000000..99c495b --- /dev/null +++ b/wrapper/forms.py @@ -0,0 +1,4 @@ +from django import forms + + + diff --git a/wrapper/migrations/__init__.py b/wrapper/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/wrapper/migrations/__pycache__/__init__.cpython-310.pyc b/wrapper/migrations/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000..25bff70 Binary files /dev/null and b/wrapper/migrations/__pycache__/__init__.cpython-310.pyc differ diff --git a/wrapper/migrations/__pycache__/__init__.cpython-311.pyc b/wrapper/migrations/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..40a7178 Binary files /dev/null and b/wrapper/migrations/__pycache__/__init__.cpython-311.pyc differ diff --git a/wrapper/models.py b/wrapper/models.py new file mode 100644 index 0000000..05158f0 --- /dev/null +++ b/wrapper/models.py @@ -0,0 +1,21 @@ +from django.db import models +import json +# Create your models here. + +class ServiceDB(models.Model): + serv_name = models.CharField(max_length = 50) + serv_record_id = models.IntegerField() + content = models.TextField() + +def storage_get(serv_name, serv_record_id): + try: + return ServiceDB.objects.get(serv_name = serv_name, serv_record_id = serv_record_id); + except ObjectDoesNotExist: + print("Объект не сушествует") + except MultipleObjectsReturned: + print("Найдено более одного объекта") + +def storage_set(serv_name, serv_record_id, value): + object = ServiceDB.objects.get_or_create(serv_name=serv_name, serv_record_id=serv_record_id) + object.content = json.dumps(value) + object.save() diff --git a/wrapper/services.py b/wrapper/services.py new file mode 100644 index 0000000..39ec05c --- /dev/null +++ b/wrapper/services.py @@ -0,0 +1,16 @@ +def mnk(): + return "Это результат" + +from .types import Text + +def n100(): + return sum(range(100)) + +def f(a: Text): + return a * 100 + +def ff(a: int, b: int): + return a + b + +def fff(a: int, b: int, c: int, d: int, e: int,): + return a + b + c + d + e \ No newline at end of file diff --git a/wrapper/static/.DS_Store b/wrapper/static/.DS_Store new file mode 100644 index 0000000..d04e7c3 Binary files /dev/null and b/wrapper/static/.DS_Store differ diff --git a/wrapper/static/logo.jpg b/wrapper/static/logo.jpg new file mode 100644 index 0000000..b042dad Binary files /dev/null and b/wrapper/static/logo.jpg differ diff --git a/wrapper/static/photo1.jpg b/wrapper/static/photo1.jpg new file mode 100644 index 0000000..668aab7 Binary files /dev/null and b/wrapper/static/photo1.jpg differ diff --git a/wrapper/templates/home.html b/wrapper/templates/home.html new file mode 100644 index 0000000..b4a05b7 --- /dev/null +++ b/wrapper/templates/home.html @@ -0,0 +1,208 @@ +{% load static %} + + + + + + + + +Описание карточки 2
+Описание карточки 3
+{{ message }}
+{% endif %} + + \ No newline at end of file diff --git a/wrapper/templates/trial.html b/wrapper/templates/trial.html new file mode 100644 index 0000000..a420bd1 --- /dev/null +++ b/wrapper/templates/trial.html @@ -0,0 +1,142 @@ + + + + + + ++ Теперь здесь можно удобно добавлять любой ваш сервис с любым количеством полей! Пользуйтесь! +
+ +