39 lines
597 B
Markdown
39 lines
597 B
Markdown
# Requirements
|
|
```
|
|
conda create -n matitos python=3.12
|
|
conda activate matitos
|
|
pip install ipykernel django requests ollama psycopg[binary] # openai
|
|
```
|
|
|
|
# Development
|
|
|
|
* app_web
|
|
```
|
|
|
|
# 1) Change models.py
|
|
python manage.py inspectdb
|
|
|
|
# 2)
|
|
python manage.py makemigrations
|
|
# 3)
|
|
python manage.py migrate --fake
|
|
|
|
# ?
|
|
python manage.py migrate --fake sessions zero
|
|
python manage.py migrate --fake-initial
|
|
|
|
|
|
python manage.py createsuperuser
|
|
```
|
|
|
|
* app_img_gen
|
|
```
|
|
docker build -t image_generation .
|
|
docker run --rm -it -p 12343:80 image_generation
|
|
```
|
|
|
|
# Deploy
|
|
```
|
|
python app_web/manage.py runserver
|
|
```
|