初始化Django应用,添加企业管理和职位管理
This commit is contained in:
parent
1123189a4a
commit
43296bdbe1
0
companies/__init__.py
Normal file
0
companies/__init__.py
Normal file
3
companies/admin.py
Normal file
3
companies/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
companies/apps.py
Normal file
6
companies/apps.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class CompaniesConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'companies'
|
0
companies/migrations/__init__.py
Normal file
0
companies/migrations/__init__.py
Normal file
3
companies/models.py
Normal file
3
companies/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
3
companies/tests.py
Normal file
3
companies/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
3
companies/views.py
Normal file
3
companies/views.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
0
positions/__init__.py
Normal file
0
positions/__init__.py
Normal file
3
positions/admin.py
Normal file
3
positions/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
positions/apps.py
Normal file
6
positions/apps.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PositionsConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'positions'
|
0
positions/migrations/__init__.py
Normal file
0
positions/migrations/__init__.py
Normal file
3
positions/models.py
Normal file
3
positions/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
3
positions/tests.py
Normal file
3
positions/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
3
positions/views.py
Normal file
3
positions/views.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
@ -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="数据库别名")
|
||||
|
Loading…
x
Reference in New Issue
Block a user