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.
Follow these steps to set up the project locally:
- Install project dependencies using Pipenv:
pipenv install
- Reset the database:
python manage.py reset_db
- Apply database migrations:
python manage.py migrate
- Start the development server:
python manage.py runserver
- Start the tailwind server:
python manage.py tailwind start
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.
Follow these steps to change the project name:
- Rename the Project Directory:
mv myProject newProjectName
: - Update
manage.py
andmyProject/wsgi.py
:
change::
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myProject.settings')
:
into::
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'newProjectName.settings')
: - Update
myProject/settings.py
:
change::
ROOT_URLCONF = 'myProject.urls'
andWSGI_APPLICATION = 'myProject.wsgi.application
:
into::
ROOT_URLCONF = 'newProjectName.urls'
andWSGI_APPLICATION = 'newProjectName.wsgi.application
: