ЧитайГород — демоэкзамен 09.02.07 (вариант В1)
Веб-приложение интернет-магазина книг ООО «ЧитайГород» на Django + PostgreSQL.
Стек
- Django
- PostgreSQL (pgAdmin 4)
- psycopg2-binary, pandas, Pillow, openpyxl, neapolitan, django-filter
Роли
| Роль | Возможности |
|---|---|
| Гость | Просмотр товаров без поиска/фильтрации/сортировки |
| Авторизированный клиент | Просмотр товаров |
| Менеджер | Товары с поиском, фильтрацией, сортировкой; просмотр заказов |
| Администратор | Полный CRUD товаров и заказов |
Установка
pip install -r requirements.txt
Создайте БД в pgAdmin 4 (имя: chitaygorod) или выполните db_script.sql.
Настройте подключение через переменные окружения (по умолчанию: postgres / postgres):
set PGDATABASE=chitaygorod
set PGUSER=postgres
set PGPASSWORD=postgres
set PGHOST=localhost
set PGPORT=5432
python manage.py migrate
python manage.py import_data
python manage.py runserver
Откройте http://127.0.0.1:8000/
Тестовые учётные записи
Данные из import_data/user_import.xlsx, например:
- Администратор:
94d5ous@gmail.com/uzWC67 - Менеджер:
ptec8ym@yahoo.com/LdNyos - Клиент:
yzls62@outlook.com/JlFRCZ
Структура
shop/— модели, представления, импортmedia/products/— фотографии товаровstatic/— стили, логотип, заглушкаpicture.pngimport_data/— Excel-файлы для импортаdb_script.sql— SQL-скрипт БД
Neapolitan
Дополнительные CRUD-маршруты Neapolitan:
/neapolitan/products//neapolitan/orders/
Основной интерфейс реализован в shop/views.py с учётом требований задания.
Metadata
Release files for crudplus 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crudplus-0.1.1.tar.gz | 885.6 kB | Without provenance | Details for crudplus-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crudplus-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for crudplus-0.1.1-py3-none-any.whl |
Total release size: 1.8 MB
Release files / crudplus-0.1.1.tar.gz
| Download URL | crudplus-0.1.1.tar.gz |
|---|---|
| Size | 885.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3fcf4c3baaafe3df6d10889a14bded9c7e7f9d9f397ea67b83923aca3185e592
|
|
BLAKE2b-256 checksum How to use checksums |
e8af98f7989f246237e43c7e7933e2d7302303935bc4be9176b91baf2d0049f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / crudplus-0.1.1-py3-none-any.whl
| Download URL | crudplus-0.1.1-py3-none-any.whl |
|---|---|
| Size | 910.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
08d6142b7f13fac954b322d8cc5fb9e57fb4c82bbaa4a8bf12b648a78b01c810
|
|
BLAKE2b-256 checksum How to use checksums |
8467a9c2c42da29521cac7c560f6d634da6d982c0f3e0f7077db8386d8596acd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for crudplus 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.