This project is intended to showcase the capabilities of the Django REST Framework with a minimal amount of code.
Read the wiki for a complete project breakthrough and explanation.
Or, if you can figure it out for yourself, follow the steps below !
- First, clone this repository:
git clone https://github.com/athento/drf-example
cd drf-example
- Create a Python virtual environment, this step is optional, but recommended:
pip install virtualenv
virtualenv env
source ./env/bin/activate
- Install the dependencies:
pip install -r requirements.txt
- Run database migrations:
python manage.py migrate
- Create a superuser:
python manage.py createsuperuser
- Run the server:
python manage.py runserver
- Browse the live example. Available URLs:
- Read the wiki: