【Django】どこからインポートするんだっけチートシート
投稿日: 2024/01/02
更新日: 2024/01/02
更新日: 2024/01/02
タグ:
Django
DB
from django.db import models
from django.contrib.auth.models import (
AbstractBaseUser,
BaseUserManager,
)
Form
from django import forms
from django.core.exceptions import ValidationError
View
from django.views import View
from django.views.decorators.http import require_http_methods
from django.views.generic import (
View,
TemplateView,
DetailView,
ListView,
CreateView,
UpdateView,
DeleteView,
FormView,
)
from django.views.generic.base import ContextMixin
from django.contrib import messages
from django.contrib.auth.mixins import AccessMixin
from django.contrib.auth.views import (
redirect_to_login,
LoginView,
LogoutView,
)
from django.http import (
HttpResponseRedirect,
Http404,
HttpResponse,
HttpResponseServerError,
FileResponse,
JsonResponse,
)
from django.shortcuts import (
render,
redirect,
get_object_or_404,
)
from django.urls import (
reverse,
reverse_lazy,
)
時間
from django.utils import timezone
URL
from django.urls import (
path,
include,
)
認証
from django.contrib.auth.hashers import check_password
設定
from django.conf import settings