Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CaptainJD
Poetry-appreciation-and-communication-platform
提交
7571cadb
Poetry-appreciation-and-communication-platform
项目概览
CaptainJD
/
Poetry-appreciation-and-communication-platform
与 Fork 源项目一致
从无法访问的项目Fork
通知
4
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Poetry-appreciation-and-communication-platform
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
7571cadb
编写于
6月 20, 2020
作者:
T
TOBEALISTENER
提交者:
GitHub
6月 20, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add files via upload
上级
4616c80e
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
22 addition
and
3 deletion
+22
-3
Poetry_AE/__pycache__/settings.cpython-38.pyc
Poetry_AE/__pycache__/settings.cpython-38.pyc
+0
-0
Poetry_AE/__pycache__/urls.cpython-38.pyc
Poetry_AE/__pycache__/urls.cpython-38.pyc
+0
-0
Poetry_AE/__pycache__/views.cpython-38.pyc
Poetry_AE/__pycache__/views.cpython-38.pyc
+0
-0
Poetry_AE/settings.py
Poetry_AE/settings.py
+4
-1
Poetry_AE/urls.py
Poetry_AE/urls.py
+5
-2
Poetry_AE/views.py
Poetry_AE/views.py
+13
-0
未找到文件。
Poetry_AE/__pycache__/settings.cpython-38.pyc
浏览文件 @
7571cadb
无法预览此类型文件
Poetry_AE/__pycache__/urls.cpython-38.pyc
浏览文件 @
7571cadb
无法预览此类型文件
Poetry_AE/__pycache__/views.cpython-38.pyc
0 → 100644
浏览文件 @
7571cadb
文件已添加
Poetry_AE/settings.py
浏览文件 @
7571cadb
...
...
@@ -55,7 +55,7 @@ ROOT_URLCONF = 'Poetry_AE.urls'
TEMPLATES
=
[
{
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'DIRS'
:
[],
'DIRS'
:
[
os
.
path
.
join
(
BASE_DIR
,
'templates'
)
],
'APP_DIRS'
:
True
,
'OPTIONS'
:
{
'context_processors'
:
[
...
...
@@ -123,3 +123,6 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.0/howto/static-files/
STATIC_URL
=
'/static/'
STATICFILES_DIRS
=
[
os
.
path
.
join
(
BASE_DIR
,
"static"
),
]
\ No newline at end of file
Poetry_AE/urls.py
浏览文件 @
7571cadb
...
...
@@ -14,8 +14,11 @@ Including another URLconf
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from
django.contrib
import
admin
from
django.urls
import
path
from
django.urls
import
path
,
include
from
.
import
views
urlpatterns
=
[
path
(
''
,
views
.
index
),
path
(
'sign_in/'
,
views
.
Login
,
name
=
'Login'
),
path
(
'sign_up/'
,
views
.
Register
,
name
=
'Register'
),
path
(
'admin/'
,
admin
.
site
.
urls
),
]
Poetry_AE/views.py
0 → 100644
浏览文件 @
7571cadb
from
django.shortcuts
import
render
def
index
(
request
):
return
render
(
request
,
"index.html"
)
def
Login
(
request
):
return
render
(
request
,
"sign_in.html"
)
def
Register
(
request
):
return
render
(
request
,
"sign_up.html"
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录