restructured the project to better fit the future applications
This commit is contained in:
parent
78e7752b3e
commit
4af6af5c99
15 changed files with 21 additions and 1 deletions
0
Palto/apps/User/__init__.py
Normal file
0
Palto/apps/User/__init__.py
Normal file
3
Palto/apps/User/admin.py
Normal file
3
Palto/apps/User/admin.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
Palto/apps/User/apps.py
Normal file
6
Palto/apps/User/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class UserConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = "User"
|
0
Palto/apps/User/migrations/__init__.py
Normal file
0
Palto/apps/User/migrations/__init__.py
Normal file
3
Palto/apps/User/models.py
Normal file
3
Palto/apps/User/models.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
3
Palto/apps/User/tests.py
Normal file
3
Palto/apps/User/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
3
Palto/apps/User/views.py
Normal file
3
Palto/apps/User/views.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
0
Palto/apps/__init__.py
Normal file
0
Palto/apps/__init__.py
Normal file
|
@ -50,6 +50,8 @@ INSTALLED_APPS = [
|
|||
'rest_framework',
|
||||
"debug_toolbar",
|
||||
'django_extensions',
|
||||
|
||||
"Palto.apps.User.apps",
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
|
@ -22,7 +22,7 @@ urlpatterns = [
|
|||
# ...
|
||||
|
||||
# API
|
||||
path('rest/', include('rest_framework.urls')), # API REST
|
||||
path('api/', include('rest_framework.urls')), # API REST
|
||||
|
||||
# Debug
|
||||
path('admin/', admin.site.urls), # Admin page
|
0
db.sqlite3
Normal file
0
db.sqlite3
Normal file
0
Palto/manage.py → manage.py
Executable file → Normal file
0
Palto/manage.py → manage.py
Executable file → Normal file
Loading…
Reference in a new issue