python3 -m venv venv source venv/bin/activate
pip install -r requirements.txt
django-admin startproject modded_me cd modded_me/ ./manage.py startapp quotes_api
./manage.py makemigrations quotes_api ./manage.py migrate
from quotes_api.serializers import QuoteSerializer serializer = QuoteSerializer() print(repr(serializer) ... ) QuoteSerializer(): id = IntegerField(label='ID', read_only=True) text = CharField(style={'base_template': 'textarea.html'}) author = CharField(allow_blank=True, max_length=200, required=False)
docker build -t .
sudo docker-compose up -d --build
$ docker-compose up -d
Starting composetest_redis_1... Starting composetest_web_1...
$ docker-compose ps
composetest_redis_1 /usr/local/bin/run Up composetest_web_1 /bin/sh -c python app.py Up 5000->5000/tcp
- psql config
TODO: