- Must have Docker installed.
- Change/duplicate
.env.tpl
to.env
and edit the values inside accordingly
make fix
make local
make down
make migrations name=
then the name you want to commit
make superuser
required because of JWT authentication
http://localhost:8000/api/admin/
http://localhost:8000/api/basic/information/
http://localhost:8000/api/basic/graphiql
make editor
deployment of applications inside software containers
Browsable api
For installing dependencies
As proxy
As the interface server
Handling connections and sockets asynchronously
As the backend
This django application eliminates certain annoyances in the Django framework.
Unlike some more typical uses of JWTs, this module only generates authentication tokens that will verify the user who is requesting one of your DRF protected API resources.
Primary focus here is to give a good understanding of how to connect models from Django ORM to graphene object types.
-
TypeError: 'module' object is not callable This is cause by django 3.7 and pipenv 18.1 version. So to fix this
pip install pipenv
pipenv run pip install pip==18.0
pipenv install
or just type
make fix
-
I'm getting
ERROR: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io ... : read: connection refused
error.- Do
docker-machine ssh default
, then edit the resolve filesudo vi /etc/resolv.conf
change the nameserver value to1.1.1.1
or8.8.8.8
- Do
-
: Bind for
0.0.0.0:5432
failed: port is already allocated-
docker ps
-
after that this will showen up
13b484047582 postgres:9.6.5-alpine "docker-entrypoint.s…" 28 hours ago Up 5 hours 0.0.0.0:5432->5432/tcp sample_db
-
the conflict is
0.0.0.0:5432->5432/tcp
-
we need to stop the docker container first
-
$ docker stop 13b484047582
-
then remove
-
$ docker remove 13b484047582
-
then re run the environment
-
$ make local(rebuilding container) / make up(starting container)
-