Hello, this is ricky. Recently I started using Django in earnest and am creating an application. Meanwhile, I got into the implementation of the login screen, so I will write it as a memorandum. The cause is that the template information was not entered in setting.py. I was able to implement tutorials such as DjangoGirls well, so when I tried to make an app that I thought of myself, I got stuck in the above points. To explain in detail, in django, a directory with the name of the application is created in the templates directory, and html is described and used in that directory, but that setting must be described in setting.py. Therefore, even if I create a Templates directory and put html in the directory of the application name, an error occurs, so I created html in the Templates directory. (Since it moved halfway, it took time to resolve the error after that.) And when I tried to transition to the login screen, an error occurred. The cause was that login.html was not deployed in the registration directory. The reason I didn't deploy it was because the previous Templates didn't work, so I didn't deploy login.html in the directory. After all, I realized that even simple processing cannot be created without a solid understanding of the basics.
Recommended Posts