Created Accounts App
This commit is contained in:
0
core/accounts/__init__.py
Normal file
0
core/accounts/__init__.py
Normal file
3
core/accounts/admin.py
Normal file
3
core/accounts/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
core/accounts/apps.py
Normal file
6
core/accounts/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class AccountsConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'accounts'
|
||||
0
core/accounts/migrations/__init__.py
Normal file
0
core/accounts/migrations/__init__.py
Normal file
3
core/accounts/models.py
Normal file
3
core/accounts/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
core/accounts/tests.py
Normal file
3
core/accounts/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
6
core/accounts/urls.py
Normal file
6
core/accounts/urls.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.urls import path # type: ignore
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.home)
|
||||
]
|
||||
5
core/accounts/views.py
Normal file
5
core/accounts/views.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
def home(request):
|
||||
return render(request, 'accounts/home.html')
|
||||
@@ -14,9 +14,10 @@ Including another URLconf
|
||||
1. Import the include() function: from django.urls import include, path
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.contrib import admin # type: ignore
|
||||
from django.urls import path
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('', include('accounts.urls'))
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user