File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1414 TokenVerifyView as BaseTokenVerifyView , TokenBlacklistView ,
1515)
1616
17+ from .models import Profile
1718from .serializers import UserProfileSerializer , RefreshTokenSerializer
1819
1920logger = getLogger (__name__ )
Original file line number Diff line number Diff line change 1+ 2025-06-29 16:27:38.949 | Error during profile management: name 'Profile' is not defined
2+ 2025-06-29 16:27:38.949 | Traceback (most recent call last):
3+ 2025-06-29 16:27:38.949 | File "/code/account/views.py", line 74, in me
4+ 2025-06-29 16:27:38.949 | profile, created = Profile.objects.get_or_create(user=request.user)
5+ 2025-06-29 16:27:38.949 | ^^^^^^^
6+ 2025-06-29 16:27:38.949 | NameError: name 'Profile' is not defined
7+ 2025-06-29 16:27:38.954 | Internal server error occurred
8+ 2025-06-29 16:27:38.954 | Traceback (most recent call last):
9+ 2025-06-29 16:27:38.954 | File "/usr/local/lib/python3.13/site-packages/rest_framework/views.py", line 512, in dispatch
10+ 2025-06-29 16:27:38.954 | response = handler(request, *args, **kwargs)
11+ 2025-06-29 16:27:38.954 | File "/code/account/views.py", line 74, in me
12+ 2025-06-29 16:27:38.954 | profile, created = Profile.objects.get_or_create(user=request.user)
13+ 2025-06-29 16:27:38.954 | ^^^^^^^
14+ 2025-06-29 16:27:38.954 | NameError: name 'Profile' is not defined
15+ 2025-06-29 16:27:38.954 | Internal Server Error: /auth/me/
16+ 2025-06-29 16:27:38.955 | [pid: 20|app: 0|req: 5/5] 172.18.0.1 () {52 vars in 1214 bytes} [Sun Jun 29 13:27:38 2025] GET /auth/me/ => generated 51 bytes in 29 msecs (HTTP/1.1 500) 8 headers in 286 bytes (1 switches on core 0)
You can’t perform that action at this time.
0 commit comments