A story about implementing a login screen with django

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

A story about implementing a login screen with django
Creating a login screen with Django allauth
Create a Django login screen
A story about machine learning with Kyasuket
A story about making 3D space recognition with Python
A story about using Resona's software token with 1Password
A story about predicting exchange rates with Deep Learning
A story about making Hanon-like sheet music with Python
A story about trying a (Golang +) Python monorepo with Bazel
A story about how theano was moved with TSUBAME 2.0
Transit to the update screen with the Django a tag
A memo about building a Django (Python) application with Docker
Create a homepage with django
Login with django rest framework
A story about competing with a friend in Othello AI Preparation
A story about installing matplotlib using pip with an error
A story about an amateur making a breakout with python (kivy) ②
A story about how to deal with the CORS problem
A story about an amateur making a breakout with python (kivy) ①
A story about making a tanka by chance with Sudachi Py
[Python] Create a screen for HTTP status code 403/404/500 with Django
A story about a python beginner stuck with No module named'http.server'
[Django] A story about getting stuck in a swamp trying to validate a zip with form [TDD]
A refreshing story about Python's Slice
A sloppy story about Python's Slice
Deploy a Django application with Docker
Django Tips-Create a ranking site with Django-
Build a web application with Django
Make a filter with a django template
A story about using Python's reduce
Create a file uploader with Django
A story about adding a REST API to a daemon made with Python
A story about developing a soft type with Firestore + Python + OpenAPI + Typescript
A story about custom users having a sweet and painful look at Django
A story about remodeling Lubuntu into a Chromebook
A story about adopting Django instead of Rails at a young seed startup
A story about automating online mahjong (Mahjong Soul) with OpenCV and machine learning
Build a TOP screen for Django users
Create an update screen with Django Updateview
A note on enabling PostgreSQL with Django
A story about Python pop and append
A story about a 503 error on Heroku open
I made a WEB application with Django
Redo everything for the Django login screen
A story about a programming beginner who made a business efficiency map application with GeoDjango
[Note] A story about not being able to break through a proxy with pip
A story about building an IDE environment with WinPython on an old Windows OS.
The story of making a web application that records extensive reading with Django
A story about making an x86 bootloader that can boot vmlinux with Rust
A story about simple machine learning using TensorFlow
Recreate the django staff registration screen with class
[Python3] A story stuck with time zone conversion
How to develop a cart app with Django
Start Django in a virtual environment with Pipenv
A story about operating a GCP instance from Discord
[Python] Build a Django development environment with Docker
Build a Django environment with Vagrant in 5 minutes
A story stuck with handling Python binary data
Create a dashboard for Network devices with Django!
A story about displaying article-linked ads on Jubatus
A story about running Python on PHP on Heroku