/drf

✨ A django rest framework walkthrough

Primary LanguagePythonMIT LicenseMIT

Contributors MIT License

Project title

Django rest framework walkthrough

Table of Contents

About The Project

Project name screenshot

This is django restframework walkthrough where a complete Pastebin API is created which is fully web browsable, includes a schema-driven library and comes with complete authentication, per-object permissions as well as multirender formats.

Built With

Django framework, Pygments, Coreapi Coreapi-cli

Getting Started

Clone the project from github

git clone https://github.com/Curti-s/drf.git

Prerequisites

pip install django djangorestframework pygments coreapi coreapi-cli

Usage

python -m venv env
source env/bin/activate
cd tutorial
python manage.py makemigrations snippets
python manage.py migrate
python manage.py createsuperuser --username admin --email admin@example.com

In the web browser http://localhost:8000

In the terminal coreapi get http://127.0.0.1:8000/schema/

Authenticate coreapi coreapi credentials add 127.0.0.1 <username>:<password> --auth basic

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature)
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Your Name - @wizCurtis81 - matthewscurtis.dev81@gmail.com

Project Link: drf