Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.17 KB

README.md

File metadata and controls

54 lines (35 loc) · 1.17 KB

modded_me

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

docker build -t .

sudo docker-compose up -d --build

$ docker-compose up -d

Starting composetest_redis_1... Starting composetest_web_1...

$ docker-compose ps

Name Command State Ports

composetest_redis_1 /usr/local/bin/run Up composetest_web_1 /bin/sh -c python app.py Up 5000->5000/tcp

gitlab-ci

  • psql config

TODO: