May be your URL pattern is incorrect. On Friday, May 8, 2020 at 4:10:47 PM UTC+5:30, Gaurav Shrivastava wrote: > > RelatedObjectDoesNotExist at /account/edit/ > > User has no profile. > > Request Method: GET > Request URL: http://localhost:8000/account/edit/ > Django Version: 2.0.5 > Exception Type: RelatedObjectDoesNotExist > Exception Value: > > User has no profile. > > Exception Location: > D:\python\projects\env\bookmarks\lib\site-packages\django\db\models\fields\related_descriptors.py > > in __get__, line 386 > Python Executable: D:\python\projects\env\bookmarks\Scripts\python.exe > Python Version: 3.8.1 > Python Path: > > ['D:\\python\\projects\\env\\social_site', > 'D:\\python\\projects\\env\\bookmarks\\Scripts\\python38.zip', > 'c:\\users\\lenovo\\appdata\\local\\programs\\python\\python38-32\\DLLs', > 'c:\\users\\lenovo\\appdata\\local\\programs\\python\\python38-32\\lib', > 'c:\\users\\lenovo\\appdata\\local\\programs\\python\\python38-32', > 'D:\\python\\projects\\env\\bookmarks', > 'D:\\python\\projects\\env\\bookmarks\\lib\\site-packages'] > > Server time: Fri, 8 May 2020 05:19:23 +0000 >
-- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/79c8a26c-e766-4983-9da1-8210161154b6%40googlegroups.com.