Compare commits
4 Commits
11f3a31d22
...
5fea6457da
Author | SHA1 | Date | |
---|---|---|---|
5fea6457da | |||
80c81dadaf | |||
b72ca536b3 | |||
e1470b1ff6 |
2
django/.gitignore
vendored
2
django/.gitignore
vendored
@ -1 +1,3 @@
|
||||
.env
|
||||
*.pyc
|
||||
db.sqlite3
|
0
django/trancendence/accounts/__init__.py
Normal file
0
django/trancendence/accounts/__init__.py
Normal file
3
django/trancendence/accounts/admin.py
Normal file
3
django/trancendence/accounts/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
django/trancendence/accounts/apps.py
Normal file
6
django/trancendence/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
django/trancendence/accounts/migrations/__init__.py
Normal file
0
django/trancendence/accounts/migrations/__init__.py
Normal file
3
django/trancendence/accounts/models.py
Normal file
3
django/trancendence/accounts/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
3
django/trancendence/accounts/tests.py
Normal file
3
django/trancendence/accounts/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
9
django/trancendence/accounts/urls.py
Normal file
9
django/trancendence/accounts/urls.py
Normal 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"),
|
||||
]
|
12
django/trancendence/accounts/views.py
Normal file
12
django/trancendence/accounts/views.py
Normal file
@ -0,0 +1,12 @@
|
||||
from django.shortcuts import render
|
||||
from django.views import View
|
||||
|
||||
# Create your views here.
|
||||
class Login(View):
|
||||
pass
|
||||
|
||||
class Create(View):
|
||||
pass
|
||||
|
||||
class Delete(View):
|
||||
pass
|
@ -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!
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = []
|
||||
ALLOWED_HOSTS = ["*"]
|
||||
|
||||
|
||||
# Application definition
|
||||
|
@ -15,8 +15,9 @@ Including another URLconf
|
||||
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
||||
"""
|
||||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
from django.urls import path, include
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
path('api/accounts/', include('accounts.urls')),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user