mirror of
https://github.com/lemeow125/StudE-Backend.git
synced 2025-06-29 00:35:45 +08:00
Added Djoser
This commit is contained in:
parent
83682bead6
commit
ab7fb228e3
13 changed files with 340 additions and 3 deletions
0
stude/accounts/__init__.py
Normal file
0
stude/accounts/__init__.py
Normal file
3
stude/accounts/admin.py
Normal file
3
stude/accounts/admin.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
stude/accounts/apps.py
Normal file
6
stude/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
stude/accounts/migrations/__init__.py
Normal file
0
stude/accounts/migrations/__init__.py
Normal file
3
stude/accounts/models.py
Normal file
3
stude/accounts/models.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
3
stude/accounts/tests.py
Normal file
3
stude/accounts/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
7
stude/accounts/urls.py
Normal file
7
stude/accounts/urls.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from django.contrib import admin
|
||||
from django.urls import path, include
|
||||
|
||||
urlpatterns = [
|
||||
path('', include('djoser.urls')),
|
||||
path('', include('djoser.urls.authtoken'))
|
||||
]
|
3
stude/accounts/views.py
Normal file
3
stude/accounts/views.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
Loading…
Add table
Add a link
Reference in a new issue