change: change apps folder
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
from django.contrib import admin
|
|
||||||
|
|
||||||
# Register your models here.
|
|
||||||
0
core/apps/shared/admin/__init__.py
Normal file
0
core/apps/shared/admin/__init__.py
Normal file
@@ -3,4 +3,4 @@ from django.apps import AppConfig
|
|||||||
|
|
||||||
class SharedConfig(AppConfig):
|
class SharedConfig(AppConfig):
|
||||||
default_auto_field = 'django.db.models.BigAutoField'
|
default_auto_field = 'django.db.models.BigAutoField'
|
||||||
name = 'shared'
|
name = 'core.apps.shared'
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
from django.db import models
|
|
||||||
|
|
||||||
# Create your models here.
|
|
||||||
0
core/apps/shared/models/__init__.py
Normal file
0
core/apps/shared/models/__init__.py
Normal file
12
core/apps/shared/models/base.py
Normal file
12
core/apps/shared/models/base.py
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
import uuid
|
||||||
|
|
||||||
|
from django.db import models
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class BaseModel(models.Model):
|
||||||
|
id = models.UUIDField(primary_key=True, editable=False, unique=True, default=uuid.uuid4)
|
||||||
|
created_at = models.DateTimeField(auto_created=True)
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
abstract = True
|
||||||
0
core/apps/shared/serializers/__init__.py
Normal file
0
core/apps/shared/serializers/__init__.py
Normal file
@@ -1,3 +0,0 @@
|
|||||||
from django.test import TestCase
|
|
||||||
|
|
||||||
# Create your tests here.
|
|
||||||
6
core/apps/shared/urls.py
Normal file
6
core/apps/shared/urls.py
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
from django.urls import path, include
|
||||||
|
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
|
||||||
|
]
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
from django.shortcuts import render
|
|
||||||
|
|
||||||
# Create your views here.
|
|
||||||
0
core/apps/shared/views/__init__.py
Normal file
0
core/apps/shared/views/__init__.py
Normal file
Reference in New Issue
Block a user