/django-template

Primary LanguagePythonOtherNOASSERTION

DjangoX

A framework for launching new Django projects quickly with a complete user authentication flow, custom user model, and social authentication options via Gmail, Facebook, Twitter, etc.

Features

  • Django 2.0 and Python 3.6
  • Uses email/password for login/signup
  • django-allauth for easy social authentication
  • Custom user model
  • Pipenv for virtualenvs
  • Bootstrap v4

Sign up

Home

First-time setup

  1. Make sure Python 3.6x and Pipenv are already installed. See here for help.
  2. Clone the repo and configure the virtualenv:
$ git clone https://github.com/wsvincent/djangox.git
$ cd djangox
$ pipenv install
$ pipenv shell
  1. Set up the initial migration for our custom user models in users and build the database.
(djangox) $ python manage.py makemigrations users
(djangox) $ python manage.py migrate
  1. Create a superuser:
(djangox) $ python manage.py createsuperuser
  1. Confirm everything is working:
(djangox) $ python manage.py runserver

Load the site at http://127.0.0.1:8000.

  1. (Optional) Under "Sites" in the admin http://127.0.0.1:8000/admin/sites/site/ change "example.com" to "127.0.0.1" and the name to whatever your project is called, for example djangox.

Recommendations

Adding Social Authentication

Acknowledgments

This project is heavily inspired by cookiecutter-django. If you're looking for an even more advanced framework that comes with deployment configurations, give it a look!