Coder Social home page Coder Social logo

boysugi20 / django-auth-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 68 KB

The Django Allauth Custom User Template is a ready-to-use foundation for Django projects, combining Django Allauth for authentication with a custom user model. It simplifies the setup of user registration, login, and logout features, offering a quick start for developers building web applications with Django and specific authentication needs.

Python 43.03% HTML 49.74% JavaScript 7.03% CSS 0.20%

django-auth-template's Introduction

Django Allauth Custom User Template

Description

The Django Allauth Custom User Template is a starting template for Django projects that provides pre-configured authentication using Django Allauth and a custom user model. It helps developers quickly set up a Django project with user registration, login, and logout functionalities, utilizing the powerful features of Django Allauth while incorporating a custom user model to suit specific project requirements. This template serves as a solid foundation for building web applications with user authentication capabilities in Django.

Table of Contents

Setup

Follow these steps to set up the project locally:

  1. Install project dependencies using Pipenv:
    pipenv install
  2. Reset the database:
    python manage.py reset_db
  3. Apply database migrations:
    python manage.py migrate
  4. Start the development server:
    python manage.py runserver
  5. Start the tailwind server:
    python manage.py tailwind start

Requirements

Ensure the following prerequisites are met before running the project:

  • Node.js and npm:: Install npm to manage and compile Tailwind CSS styles.
  • Windows Users: Uncomment the "NPM_BIN_PATH" in the settings.py file.

Configurations

Follow these steps to change the project name:

  1. Rename the Project Directory:
    mv myProject newProjectName:
  2. Update manage.py and myProject/wsgi.py:
    change::
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myProject.settings'):
    into::
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'newProjectName.settings'):
  3. Update myProject/settings.py:
    change::
    ROOT_URLCONF = 'myProject.urls' and WSGI_APPLICATION = 'myProject.wsgi.application:
    into::
    ROOT_URLCONF = 'newProjectName.urls' and WSGI_APPLICATION = 'newProjectName.wsgi.application:

django-auth-template's People

Contributors

boysugi20 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.