ibrahimadlani / twitch-recap

Web application made to get the bests of your twitch videos. (chats, audience activity, custom videos)
0 stars 0 forks source link

Create Custom User Model in "core" App #6

Open ibrahimadlani opened 1 month ago

ibrahimadlani commented 1 month ago

Description

This task involves creating a custom user model in the "core" app to store username, email, and password. This custom model will replace the default Django user model and provide more flexibility for future extensions.

Steps

  1. Create the Custom User Model:

    • Define a custom user model in the "core" app that includes the fields username, email, and password.
    • Ensure the custom user model inherits from AbstractBaseUser and PermissionsMixin for authentication and permissions.
  2. Update settings.py:

    • Update the AUTH_USER_MODEL setting in settings.py to point to the new custom user model.
  3. Create a Custom User Manager:

    • Define a custom user manager to handle the creation of users and superusers.
  4. Migrations:

    • Create and apply the necessary database migrations to accommodate the custom user model.
  5. Admin Integration:

    • Register the custom user model with the Django admin site for easy management.
  6. Testing:

    • Write tests to ensure the custom user model works as expected.
    • Test the creation of regular users and superusers.
    • Ensure authentication works with the custom user model.
  7. Documentation:

    • Update the project documentation to reflect the changes made with the custom user model.
    • Include instructions on how to create and manage users using the new model.

Resources

Priority

alirahmnicode commented 4 weeks ago

Hi Can i work on this?

ibrahimadlani commented 3 weeks ago

Yeah no problem