A framework for launching new Django Rest Framework projects quickly.
Clone or download
Latest commit 17d0bee Oct 2, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api initial commit Apr 2, 2018
drfx update to Django 2.1, add sessionauth too Oct 1, 2018
users initial commit Apr 2, 2018
.gitignore initial commit Apr 2, 2018
Pipfile update to Django 2.1, add sessionauth too Oct 1, 2018
Pipfile.lock update to Django 2.1, add sessionauth too Oct 1, 2018
Readme.md update Readme Oct 1, 2018
manage.py initial commit Apr 2, 2018
setup.md initial commit Apr 2, 2018

Readme.md

DRFx

A framework for launching new Django Rest Framework projects quickly. Comes with a custom user model, login/logout/signup, social authentication via django-allauth, and more.

Features

  • Django 2.1 and Python 3.7
  • Custom user model
  • Token-based auth
  • Signup/login/logout
  • django-allauth for social auth
  • Pipenv for virtualenvs

First-time setup

  1. Make sure Python 3.7x and Pipenv are already installed. See here for help.
  2. Clone the repo and configure the virtual environment:
$ git clone https://github.com/wsvincent/drfx.git
$ cd drfx
$ pipenv install
$ pipenv shell
  1. Set up the initial migration for our custom user models in users and build the database.
(drfx) $ python manage.py makemigrations users
(drfx) $ python manage.py migrate
(drfx) $ python manage.py createsuperuser
(drfx) $ python manage.py runserver
  1. Endpoints

Login with your superuser account. Then navigate to all users. Logout. Sign up for a new account and repeat the login, users, logout flow.


Want to learn more about Django REST Framework? I've written an entire book that takes a project-based approach to building web APIs with Django. The first 2 chapters are available for free online at https://restapiswithdjango.com/.

REST APIs with Django