Skip to content

sumit4613/django-starter-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DjangoStarterTemplate

A template for launching new Django Rest Framework projects quickly. Comes with a custom user model, login/logout/register/login_with_otp via drf_user and more.

Features

  • Django 2.0(LTS), Django REST Framework 3.11
  • Custom user model via drf_user
  • JWT Token-based auth
  • Signup/login/logout
  • Requirements.txt for managing dependencies
  • Env based settings, just copy .env.example file to .env and add your variables
  • Swagger for API documentation

First-time setup

  • Make sure Python 3.x is already installed. See here for help.
  • Clone the repo and configure the virtual environment:
  • To know about virtualenv use this link VirtualEnv
$ git clone https://github.com/sumit4613/django-starter-template.git
$ cd django-starter-template
$ source .venv/bin/activate # activate virtual environment (.venv is the name, use any name as you like)
$ pip install -r requirements.txt
  • Set up the initial migration for our custom user models in users and build the database.
(.venv) $ python manage.py migrate
(.venv) $ python manage.py createsuperuser
(.venv) $ python manage.py runserver
  • Endpoints

Login with your superuser account. Then navigate to Swagger Url to view all the endpoints.


About

Template to bootstrap Django Projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages