初始化Django应用,添加企业管理和职位管理

This commit is contained in:
晓丰 2025-05-24 12:39:31 +08:00
parent 1123189a4a
commit 43296bdbe1
15 changed files with 36 additions and 1 deletions

0
companies/__init__.py Normal file
View File

3
companies/admin.py Normal file
View File

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

6
companies/apps.py Normal file
View File

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

View File

3
companies/models.py Normal file
View File

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

3
companies/tests.py Normal file
View File

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

3
companies/views.py Normal file
View File

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

0
positions/__init__.py Normal file
View File

3
positions/admin.py Normal file
View File

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

6
positions/apps.py Normal file
View File

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

View File

3
positions/models.py Normal file
View File

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

3
positions/tests.py Normal file
View File

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

3
positions/views.py Normal file
View File

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

View File

@ -1,7 +1,6 @@
from django.db import models
# Create your models here.
class Website(models.Model):
name = models.CharField(max_length=100, verbose_name="网站名称")
db_alias = models.CharField(max_length=50, unique=True, verbose_name="数据库别名")