Skip to content

Commit f70b71b

Browse files
committed
orm2Test完整版
1 parent 3e23293 commit f70b71b

49 files changed

Lines changed: 1075 additions & 472 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ORM2/.idea/workspace.xml

Lines changed: 229 additions & 182 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 Bytes
Binary file not shown.
88 Bytes
Binary file not shown.

ORM2/ORM2/settings.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
'django.contrib.sessions',
3838
'django.contrib.messages',
3939
'django.contrib.staticfiles',
40-
'appBook.apps.App01Config',
40+
'app01.apps.App01Config',
4141
]
4242

4343
MIDDLEWARE = [
@@ -84,12 +84,12 @@
8484

8585
DATABASES = {
8686
'default': {
87-
'ENGINE': 'django.db.backends.mysql',
88-
'NAME': "newblog",
89-
"USER":"root",
90-
"PASSWORD":"root",
91-
"HOST":"",
92-
"PORT":"3306"
87+
'ENGINE': 'django.db.backends.mysql',#对应的数据库
88+
'NAME': "newblog",#自己数据名称
89+
"USER":"root",#用户名
90+
"PASSWORD":"root",#密码
91+
"HOST":"",#主机好 默认本机
92+
"PORT":"3306"#端口
9393
}
9494
}
9595

ORM2/ORM2/urls.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@
1515
"""
1616
from django.conf.urls import url,include
1717
from django.contrib import admin
18-
from appBook import views
18+
from app01 import views
1919

2020
urlpatterns = [
2121
url(r'^admin/', admin.site.urls),
22-
url(r'^index/', views.index),
23-
url(r'^appBook/', include("appBook.urls")),
22+
# url(r'^index/', views.index),
23+
url(r'^app01/', include("app01.urls")),
2424
url(r'^appAuthor/', include("appAuthor.urls")),
2525
url(r'^appPublish/', include("appPublish.urls")),
26+
url(r'^login/', views.Login),
27+
url(r'^logout/', views.Logout),
28+
url(r'^changpwd/', views.changpwd),
29+
url(r'^reg/', views.reg),
2630

2731
]
File renamed without changes.
File renamed without changes.
338 Bytes
Binary file not shown.
1.36 KB
Binary file not shown.

0 commit comments

Comments
 (0)