restructured the project to better fit the future applications

This commit is contained in:
faraphel-gima 2023-11-27 09:55:15 +01:00
parent 78e7752b3e
commit 4af6af5c99
15 changed files with 21 additions and 1 deletions

View file

3
Palto/apps/User/admin.py Normal file
View file

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

6
Palto/apps/User/apps.py Normal file
View file

@ -0,0 +1,6 @@
from django.apps import AppConfig
class UserConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = "User"

View file

View file

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

3
Palto/apps/User/tests.py Normal file
View file

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

3
Palto/apps/User/views.py Normal file
View file

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.

0
Palto/apps/__init__.py Normal file
View file

View file

@ -50,6 +50,8 @@ INSTALLED_APPS = [
'rest_framework',
"debug_toolbar",
'django_extensions',
"Palto.apps.User.apps",
]
MIDDLEWARE = [

View file

@ -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
View file

0
Palto/manage.py → manage.py Executable file → Normal file
View file