https://github.com/dd/te-blog-back
https://github.com/dd/te-blog-back
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dd/te-blog-back
- Owner: dd
- Created: 2023-09-16T17:08:24.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-08T14:47:25.000Z (almost 2 years ago)
- Last Synced: 2025-03-26T21:36:48.618Z (about 1 year ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tovarisch Engineer / Blog / Backend
Production: [admin.tovarisch.engineer][production-admin] | [api.tovarisch.engineer][production-api]
## Dev
поставь [hatch](https://hatch.pypa.io/), например с использованием [pipx](https://pipx.pypa.io):
```console
$ pipx install hatch
```
подготовка локального сервера:
```console
$ hatch run dev:init # конфигурирование gitflow и git hooks
$ hatch run dev:migrate # миграции django
$ hatch run dev:collectstatic # сбор статики django
```
запусти дев сервер:
```console
$ hatch run dev:runserver
```
!!! note
Возможно тебе понадобится создать суперпользователя:
```console
$ hatch run dev:django-admin createsuperuser
```
[production-admin]: https://admin.tovarisch.engineer/
[production-api]: https://api.tovarisch.engineer/