blob: 1171c250dce4ae7a082a72085ac7432e4f41e4e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# SEU Bookstore
## Development
```shell
$ uv sync
# Just like how any normal Django app
$ uv run manage.py migrate # to create db
$ uv run manage.py runserver
```
## Deployment
```shell
$ uv add gunicorn
# Also add settings.py:ALLOWED_HOSTS
$ uv run gunicorn bookstore_project.wsgi:application
```
## Default credentials
Check out `store/migrations/0002_create_superuser.py` for details.
## Import samples
`*.jsonl` are samples pulled from [Anna's Archive](https://annas-archive.li/faq) and can be imported under staff/superuser priviledge (`/book/import/`).
|