Initialize Fonrey Django multi-tenant project skeleton
Set up the required directory layout, app scaffolding, core settings, templates, static assets, and Docker/Tailwind tooling to establish a standardized development baseline.
This commit is contained in:
0
apps/client/__init__.py
Normal file
0
apps/client/__init__.py
Normal file
1
apps/client/admin.py
Normal file
1
apps/client/admin.py
Normal file
@@ -0,0 +1 @@
|
||||
from django.contrib import admin
|
||||
6
apps/client/apps.py
Normal file
6
apps/client/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class ClientConfig(AppConfig):
|
||||
name = "apps.client"
|
||||
verbose_name = "客源管理"
|
||||
0
apps/client/models/.gitkeep
Normal file
0
apps/client/models/.gitkeep
Normal file
0
apps/client/models/__init__.py
Normal file
0
apps/client/models/__init__.py
Normal file
0
apps/client/services/.gitkeep
Normal file
0
apps/client/services/.gitkeep
Normal file
0
apps/client/services/__init__.py
Normal file
0
apps/client/services/__init__.py
Normal file
6
apps/client/tasks.py
Normal file
6
apps/client/tasks.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from celery import shared_task
|
||||
|
||||
|
||||
@shared_task
|
||||
def sample_task() -> str:
|
||||
return "client task placeholder"
|
||||
0
apps/client/tests/.gitkeep
Normal file
0
apps/client/tests/.gitkeep
Normal file
0
apps/client/tests/__init__.py
Normal file
0
apps/client/tests/__init__.py
Normal file
9
apps/client/urls.py
Normal file
9
apps/client/urls.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.urls import path
|
||||
|
||||
from . import views
|
||||
|
||||
app_name = "client"
|
||||
|
||||
urlpatterns = [
|
||||
path("", views.index, name="index"),
|
||||
]
|
||||
5
apps/client/views.py
Normal file
5
apps/client/views.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from django.http import HttpRequest, HttpResponse
|
||||
|
||||
|
||||
def index(request: HttpRequest) -> HttpResponse:
|
||||
return HttpResponse("client app placeholder")
|
||||
Reference in New Issue
Block a user