The is my fork of the example code from the Django REST Tramework tutorial. It´s a base to discuss further topics, such as testing and deployment.
Why the DRF Tutorial?:
- Assuming you´re using Django, it´s likely you´re using Django REST Framework, so hopefully it should be familiar to you.
- It´s fully featured enough to be realistic, but...
- ...not so big as to get in the way.
Need Help?
If the steps here don´t work for you, Open a New Issue to discuss.
-
Clone this tutorial repo.
-
Create a virtual environment.
-
Install requirements.
pip install -r requirements.txt
-
Set up the local SQLite database:
-
Migrate:
./manage.py migrate
. -
Load fixtures:
./restore.sh
This script flushes the databases and then reloads initial fixture data.
-
Create your own admin user:
./manage.py createsuperuser
.
-
That´s it. You´re ready to go.