murughan1985 / rest-framework-tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REST framework tutorial

Build Status

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.


Preparation

  1. Clone this tutorial repo.

  2. Create a virtual environment.

  3. Install requirements.

    pip install -r requirements.txt

  4. Set up the local SQLite database:

    1. Migrate: ./manage.py migrate.

    2. Load fixtures: ./restore.sh

      This script flushes the databases and then reloads initial fixture data.

    3. Create your own admin user: ./manage.py createsuperuser.

That´s it. You´re ready to go.

Guides

Using Django with Visual Studio Code & Azure

  1. Using Django with VS Code.
  2. Deploying Django to the Azure App Service.
  3. Adding CI & CD with Azure Pipelines.
  4. Serverless Django with Azure Functions.

About


Languages

Language:Python 98.9%Language:Shell 1.1%