First, setup virtual environment and activate
# Create
python3 -m venv venv
# Activate
source venv/bin/activate
Then, install packages from requirements.txt
pip install -r requirements.txt
Now, let's to connect to your Database following next steps:
- Set your credencias into the .env file, look .env_example as guide.
- Execute
python manage.py migrate
Finally, let's to rise our server executing python manage.py runserver
and type in your browser http://localhost:8000/
We have an admin section that we can use. Just execute the following:
- command
python manage.py createsuperuser
and type your credentials. - enter throught this url
http://localhost:8000/admin
and type your credentials that you joined in the previous step.
You can access to http://localhost:8000/api/v1/
and check what endpoints exists and make CRUD operations.
In this demo we use Postman, we have the following request:
and we have the following response:
If we chake our database, the api_movie
and api_rating
filled with the previous data.

