redex-ai / simple-django-login-and-register

An example of Django project with basic user functionality.
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

REDEX #2

Open redex-ai opened 10 months ago

redex-ai commented 10 months ago

Add a log for the email in the backend when the customer creates an account.

redex-ai-powered-okr-tool[bot] commented 10 months ago

Change Summary

The changes include adding a profile picture upload feature to the user profile. This involves updating the User model, profile change form, associated view, and template. Additionally, settings for handling media files are added to the project's configuration.

FilePlan :-

File : source/accounts/models.py

Add a new ImageField to the User model to store profile pictures.

File : source/accounts/forms.py

Update the ChangeProfileForm to include an image upload field for the profile picture.

File : source/accounts/views.py

Modify the ChangeProfileView to handle the image file and save it to the User model.

File : source/accounts/templates/accounts/profile/change_profile.html

Add an image upload input to the profile change form template.

File : source/app/settings.py

Add settings for media files handling, including MEDIA_URL and MEDIA_ROOT.

File : source/app/urls.py

Add Django's static and media files serving view during development.

Please review the structure and let me know if any modifications are required.

redex-ai-powered-okr-tool[bot] commented 10 months ago

PULL REQUEST : https://github.com/redex-ai/simple-django-login-and-register/pull/4