I have a view issue in django the file is not working properly

37 views Asked by At
File "C:\Users\Zeeshan Alvi ( BUH )\Desktop\Python\Webitewithdjango\ebookbackend\ebookbackend\urls.py", line 26, in <module>       
    path('login/', views.login_view, name='login'),  # Corrected URL pattern for login
                   ^^^^^^^^^^^^^^^^
AttributeError: module 'myapp.views' has no attribute 'login_view' 

I make my website fronted complete using HTML , CSS & Java Script . I also connect my contact page to my database and also get data , but I did a mistake a make a backend using a single file index.html only after I try to connect my login page with my database but it gives some error and that of my backend of contact page is also ruined and right now I try for many hours but cant fix the bug. Is there anyone to help me.

I need a person some to have a chat with him/her to discuss it .

1

There are 1 answers

0
Sachin On

It says that your myapp application in Django doesn't have login_view function in views.py file. Please check it, or There can be any Typo's in the Spelling of function name login_view.