?3???????é??-path ?·????:
D:\soft\python310\python.exe
D:\soft\python310\Scripts
https://dev.mysql.com/downloads/installer/
D:\soft\MySql8\MySQLServer 8.0\bin\
?·??????°?3???????é????-mysql.exe
?”1??omysql8.exe
mysql8 -uroot -P 3308 -p L@20220403
WIN+R services.msc
D:\soft\python310\Scripts\django-admin startproject devops
python manage.py runserver
http://127.0.0.1:8000/
python manage.py startapp at
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # ??–è…????”¨ mysql.connector.django
'NAME': 'db_at',
'USER': 'root',
'PASSWORD': 'L@20220403',
'HOST': 'localhost',
'PORT': '3308',
}
}
'DIRS':
[os.path.join(BASE_DIR, 'templates')],
def hello(request):
context = {'hello': 'Hello World!'}
return render(request,
'hello.html', context)
<h1>{{ hello }}</h1>
from django.urls import path
from . import views
urlpatterns = [
path(' ', views.hello, name='hello_name'),
]
path('at/', include('at.urls')),
python manage.py makemigrations at
python manage.py sqlmigrate at 0001
//sqlmigrate ?‘???¤??¥?”?????aè???§????????§°?????????è?”????ˉ1?o”???SQL
python manage.py migrate
python manage.py createsuperuser
http://127.0.0.1:8000/admin/ renjian01/123456a?
??‘??vscode??¥é”????
Import "django.contrib" could not be
resolved from source
PylancereportMissingModuleSource)
pip list??¥?????ˉ??|??‰è£…?o????è???????-????′¢python.analysis.extraPaths???????·????é?1?·??????…è·ˉ??????
2??vscode??¥é”????
"include" is not definedPylance
reportUndefinedVariable
?·????
from django.urls import path, include
1?????è??
https://www.jenkins.io/download/
???è??war??…???windows??liunxé????ˉ??¥?”¨??admin/123456a?
2????¢?o?
??…????o?
https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json
3??Jenkins ?μ??…¥??° Iframe
https://blog.csdn.net/github_39160845/article/details/108960606
4????‰è£…??’???
Blue Ocean
非常感谢您读完蓝港网络的这篇文章:"python简单制作网站(python 制作简单脚本)",仅为提供更多信息供用户参考使用或为学习交流的方便。我们公司提供:网站建设、网站制作、官网建设、SEO优化、小程序制作等服务,欢迎联系我们提供您的需求。
服务热线