Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.04 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.04 KB

custom-user-model

A Django project that use a custom user model.

Before you use this, you should probably read the documentation about Customizing authentication in Django.

Quickstart

  1. Clone this repository

    git clone https://github.com/dnwandana/custom-user-model.git
  2. Move to the cloned repo directory

    cd custom-user-model
  3. Activate your virtualenv

  4. Install the required dependencies

    pip install -r requirements.txt 
  5. Move the directory to custom_user_model, run makemigrations and migrate command

    cd custom_user_model
    python manage.py makemigrations
    python manage.py migrate
  6. Create a superuser

    Run the command below, and you'll be prompted an email, username, first & last name, and also password.

    python manage.py createsuperuser
  7. Run the app and check the admin site

    python manage.py runserver