Management system templates based on Django and Mysql : backend management system, OA, form system, administrator system, database management system template, database access template. The front-end and back-end are not separated, and the web application adds, deletes, and changes to the database. Front-end, web application, mysql database. Detailed comments, highly encapsulated, and easy to reuse.
Personal website: www.bytesc.top
Personal blog: blog.bytesc.top
? If you have any project-related questions, you are welcome to raise issue in this project. I will usually reply within 24 hours.
front page 
Log in 
Use cookies to save login status. Users who are not logged in can only access the home page and login page. Otherwise redirect to login page. 
User management 
Add user 
Department management 
Number management 
Edit number 
task management 
Install dependencies
pip install -r requirement.txtOpen setting.py and find around line 83.
If you use mysql, use the following DATABASES and comment out the above. Fill in 'USER' , 'PASSWORD' , 'HOST' and 'PORT' of your mysql server. Manually create a database with the same name as the 'NAME' field content
If you use sqlite, use the above DATABASES and comment out the following.
# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases
# DATABASES = {
# "default": {
# "ENGINE": "django.db.backends.sqlite3",
# "NAME": BASE_DIR / "db.sqlite3",
# }
# }
DATABASES = {
'default' : {
'ENGINE' : 'django.db.backends.mysql' ,
'NAME' : 'djangolearntest' ,
'USER' : 'root' ,
'PASSWORD' : '123456' ,
'HOST' : '127.0.0.1' ,
'PORT' : '3306' ,
}
}Initialize database
python manage.py makemigrations
python manage.py migrateEnter django shell
python manage.py shellAdd administrator manually
import app01 . models
app01 . models . MyAdmin . objects . create ( id = "admin" , user_name = "admin" , password = "9b7bdac3cbd4af86551d5f27d64a5291" )
exit ()run
python manage.py runserverIf the default port 8000 is occupied, just change the port.
python manage.py runserver 8008 The login username is admin and the password is 12345678 
.
│ .gitignore
│ cmd.txt
│ guide.md
│ LICENSE
│ manage.py
│ README.md
│ requirement.txt
├─app01
│ │ admin.py
│ │ apps.py
│ │ models.py
│ │ tests.py
│ │ views.py
│ │ __init__.py
│ │
│ └─ middle_ware
│ └─ my_auth.py
├─srcs
│ │ ├─forms
│ │ │ └─ form.py
│ │ │
│ │ └─views
│ │ account.py
│ │ departments.py
│ │ myadmin.py
│ │ number.py
│ │ order.py
│ │ task.py
│ │ user.py
│ ├─static
│ │
│ ├─templates
│ │ │ change.html
│ │ │ error.html
│ │ │ index.html
│ │ │ layout.html
│ │ │
│ │ ├─account
│ │ │ login.html
│ │ │
│ │ ├─departments
│ │ │ depart_add.html
│ │ │ depart_edit.html
│ │ │ depart_list.html
│ │ │
│ │ ├─myadmin
│ │ │ myadmin_list.html
│ │ │
│ │ ├─numbers
│ │ │ num_add.html
│ │ │ num_edit.html
│ │ │ num_list.html
│ │ │
│ │ ├─order
│ │ │ order_list.html
│ │ │
│ │ ├─task
│ │ │ task_list.html
│ │ │
│ │ └─users
│ │ user_add.html
│ │ user_edit.html
│ │ user_list.html
│ │
│ └─ utils
│ bootstrap_modelform.py
│ md5.py
│ page_nav.py
│
├─Learntest
│ asgi.py
│ settings.py
│ urls.py
│ wsgi.py
│
└─ readme_img