diff --git a/project_manage/.idea/dataSources.xml b/project_manage/.idea/dataSources.xml
new file mode 100644
index 0000000..aea6a24
--- /dev/null
+++ b/project_manage/.idea/dataSources.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ mysql.8
+ true
+ com.mysql.cj.jdbc.Driver
+ jdbc:mysql://localhost:3306/xiangmuguanli
+ $ProjectFileDir$
+
+
+
\ No newline at end of file
diff --git a/project_manage/.idea/modules.xml b/project_manage/.idea/modules.xml
index 7cb29cc..6da80f5 100644
--- a/project_manage/.idea/modules.xml
+++ b/project_manage/.idea/modules.xml
@@ -2,6 +2,7 @@
+
diff --git a/project_manage/.idea/project_manage.iml b/project_manage/.idea/project_manage.iml
index 0e49386..bbf67d9 100644
--- a/project_manage/.idea/project_manage.iml
+++ b/project_manage/.idea/project_manage.iml
@@ -18,6 +18,7 @@
+
diff --git a/project_manage/manage/__init__.py b/project_manage/manage/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/project_manage/manage/__pycache__/__init__.cpython-312.pyc b/project_manage/manage/__pycache__/__init__.cpython-312.pyc
new file mode 100644
index 0000000..0a2a682
Binary files /dev/null and b/project_manage/manage/__pycache__/__init__.cpython-312.pyc differ
diff --git a/project_manage/manage/models.py b/project_manage/manage/models.py
new file mode 100644
index 0000000..8a79331
--- /dev/null
+++ b/project_manage/manage/models.py
@@ -0,0 +1,51 @@
+from django.db import models
+class project(models.Model):
+ project_leader = models.CharField(u'项目名称',max_length=32)
+ project_description = models.CharField(u'项目描述',max_length=32)
+ customer_id = models.CharField(u'客户id',max_length=4,)
+ department_id = models.CharField(u'部门id',max_length=4)
+ id = models.CharField(u'项目id',max_length=4,primary_key=True)
+
+
+ def __str__(self):
+ return self.project_leader
+
+class customer(models.Model):
+ customer_name = models.CharField(u'客户名称',max_length=32)
+ customer_age = models.CharField(u'客户年龄',max_length=4)
+ customer_priority = models.CharField(u'客户优先级',max_length=4)
+ id = models.CharField(u'客户id',max_length=4,primary_key=True)
+
+ def __str__(self):
+ return self.customer_name
+
+class department(models.Model):
+ department_name = models.CharField(u'部门名称',max_length=10)
+ employe_number = models.CharField(u'员工数量',max_length=32)
+ id = models.CharField(u'部门id',max_length=4,primary_key=True)
+
+ def __str__(self):
+ return self.department_name
+
+class employe(models.Model):
+ employe_information = models.CharField(u'员工信息',max_length=32)
+ login_name = models.CharField(u'登录名',max_length=32)
+ password = models.CharField(u'密码',max_length=32)
+ telephone = models.CharField(u'电话',max_length=32)
+ mailbox = models.CharField(u'邮箱',max_length=32)
+ security_level = models.CharField(u'安全等级',max_length=32)
+ on_the_job_status = models.CharField(u'在职状态',max_length=32)
+ department_id = models.CharField(u'部门id',max_length=4)
+ id = models.CharField(u'员工id',max_length=4,primary_key=True)
+
+ def __str__(self):
+ return self.employe_information
+
+class administrator(models.Model):
+ administrator_name = models.CharField(u'管理员名称',max_length=32)
+ administrator_account = models.CharField(u'管理员账号',max_length=32)
+ administrator_password = models.CharField(u'管理员密码',max_length=32)
+ id = models.CharField(u'管理员id',max_length=4,primary_key=True)
+
+ def __str__(self):
+ return self.administrator_name
diff --git a/project_manage/project_manage/__pycache__/settings.cpython-312.pyc b/project_manage/project_manage/__pycache__/settings.cpython-312.pyc
index fb7521b..b3d68e6 100644
Binary files a/project_manage/project_manage/__pycache__/settings.cpython-312.pyc and b/project_manage/project_manage/__pycache__/settings.cpython-312.pyc differ
diff --git a/project_manage/project_manage/settings.py b/project_manage/project_manage/settings.py
index 69aeb1d..c157597 100644
--- a/project_manage/project_manage/settings.py
+++ b/project_manage/project_manage/settings.py
@@ -9,9 +9,10 @@ https://docs.djangoproject.com/en/5.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/5.0/ref/settings/
"""
-
+import os
from pathlib import Path
+
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
@@ -37,6 +38,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
+ 'manage'
]
MIDDLEWARE = [
@@ -108,21 +110,14 @@ AUTH_PASSWORD_VALIDATORS = [
# Internationalization
# https://docs.djangoproject.com/en/5.0/topics/i18n/
-LANGUAGE_CODE = 'en-us'
-
-TIME_ZONE = 'UTC'
-
-USE_I18N = True
-
+LANGUAGE_CODE = 'zh-hans'
+TIME_ZONE = 'Asia/Shanghai'
+USE_I18N = False
USE_TZ = True
-
-
-# Static files (CSS, JavaScript, Images)
-# https://docs.djangoproject.com/en/5.0/howto/static-files/
-
-STATIC_URL = 'static/'
-
-# Default primary key field type
-# https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field
-
+SIMPLEUI_DEFAULT_THEME = 'element.css'
+STATIC_URL = '/static/'
+STATICFILES_DIRS = [
+ os.path.join(BASE_DIR, 'static')
+]
+STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'