init account app

This commit is contained in:
starnakin 2023-10-24 13:56:16 +02:00
parent 80c81dadaf
commit 5fea6457da
5 changed files with 22 additions and 3 deletions

View File

@ -0,0 +1,9 @@
from django.urls import path
from . import views
urlpatterns = [
path("login", views.Login.as_view(), name="login"),
path("create", views.Create.as_view(), name="create"),
path("delete", views.Delete.as_view(), name="delete"),
]

View File

@ -1,3 +1,12 @@
from django.shortcuts import render from django.shortcuts import render
from django.views import View
# Create your views here. # Create your views here.
class Login(View):
pass
class Create(View):
pass
class Delete(View):
pass

View File

@ -25,7 +25,7 @@ SECRET_KEY = 'django-insecure-18!@88-wm-!skec9^n-85n(f$my^#mh3!#@f=_e@=*arh_yyjj
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = [] ALLOWED_HOSTS = ["*"]
# Application definition # Application definition

View File

@ -15,8 +15,9 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
""" """
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path, include
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('api/accounts/', include('accounts.urls')),
] ]