Skip to content

Commit

Permalink
Update profile views and templates with case-sensitive path corrections
Browse files Browse the repository at this point in the history
- Fix template path casing for Profile views (lowercase to uppercase)
- Ensure consistent template rendering for profile-related views
- Minor code cleanup in profile management functions
  • Loading branch information
NagiPragalathan committed Feb 9, 2025
1 parent b77e399 commit 086af71
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
10 changes: 6 additions & 4 deletions base/views/Profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def profile_management(request):
return render(request, 'profile/profile_management.html')
return render(request, 'Profile/profile_management.html')

def add_profile(request):
if request.method == 'POST':
Expand Down Expand Up @@ -72,11 +72,12 @@ def add_profile(request):
print(chapter)
for i in chapter:
print(i.id, i.chapter_name)
return render(request, 'profile/add_profile.html', {'data':profile, 'chapter':chapter})
return render(request, 'Profile/add_profile.html', {'data':profile, 'chapter':chapter})
except:
return render(request, 'profile/add_profile.html')
return render(request, 'Profile/add_profile.html')



def add_contact_details(request):
if request.method == 'POST':
user = request.user
Expand Down Expand Up @@ -142,7 +143,8 @@ def add_contact_details(request):
except ContactDetails.DoesNotExist:
initial_data = {}

return render(request, 'profile/add_contact_details.html', {"initial_data":initial_data})
return render(request, 'Profile/add_contact_details.html', {"initial_data":initial_data})



def add_edit_user_profile(request):
Expand Down
20 changes: 19 additions & 1 deletion note.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,22 @@ Chapter Performance report = sum of peoples

before creating profile select the chapter and region

sample
sample


reports user Management
add chapter redirection
main profile saving like bni
user active and inactive - backend
profile language dynamic
create new user tab to create new user
create new page to show the current profile - backend and frontend
write the code for portal - delete my account, download the profile, change password, update profile.

need to ask reports should show into all of the user


backend:
Email My Chapter
Email Visitor Invitation
Email Chapter Visitors

0 comments on commit 086af71

Please sign in to comment.