youlaitech / python-diango-web Goto Github PK
View Code? Open in Web Editor NEWPython3.8+Django+MySQL实现的Python Web版学生增删改查,旨在快速入门Python Web开发。
Python3.8+Django+MySQL实现的Python Web版学生增删改查,旨在快速入门Python Web开发。
跟着您的教学步骤执行 想问id 要在mysql 开auto_increment吗 ?因为我在编辑和删除的时候抓不到资料 谢谢您
python manage.py migrate sims
why only 2 tables are created:
diango_migrations , sims_Student
C:\Users\wue\PycharmProjects\sms>python manage.py makemigrations sims
No changes detected in app 'sims'
C:\Users\wue\PycharmProjects\sms>python manage.py migrate sims
Operations to perform:
Apply all migrations: sims
Running migrations:
Applying sims.0001_initial... OK
怎么会每个函数都得放 database connection string 啊?!
conn = MySQLdb.connect(host="localhost", user="root", passwd="123456", db="sms", charset='utf8')
你好,我这边在数据库插入数据能正常显示,但是在网页增删改查就提示404
The current path, sims/add, didn't match any of these.
这是什么原因?
C:\Users\myname\PycharmProjects\sms>python manage.py startapp sims
Traceback (most recent call last):
File "manage.py", line 10, in main
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
[09/Mar/2022 23:54:34] "GET / HTTP/1.1" 404 77
[09/Mar/2022 23:54:34] "GET /favicon.ico HTTP/1.1" 404 77
老哥 求解答 感谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.