Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hunter-ht.cn
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘莹莹
hunter-ht.cn
Commits
ee052bbe
Commit
ee052bbe
authored
Apr 21, 2020
by
liuyingying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow host
parent
23f314e3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
settings.py
Hunter_ht/Hunter_ht/settings.py
+1
-1
index.html
Hunter_ht/hunter/templates/hunter/index.html
+1
-1
views.py
Hunter_ht/hunter/views.py
+2
-0
No files found.
Hunter_ht/Hunter_ht/settings.py
View file @
ee052bbe
...
@@ -25,7 +25,7 @@ SECRET_KEY = '^20@&z2z0rxbfy6m4y+p=5&d1n58g4ng03n2c=0)b@*=bu('
...
@@ -25,7 +25,7 @@ SECRET_KEY = '^20@&z2z0rxbfy6m4y+p=5&d1n58g4ng03n2c=0)b@*=bu('
# SECURITY WARNING: don't run with debug turned on in production!
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
DEBUG
=
True
ALLOWED_HOSTS
=
[]
ALLOWED_HOSTS
=
[
'*'
]
# Application definition
# Application definition
...
...
Hunter_ht/hunter/templates/hunter/index.html
View file @
ee052bbe
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
{% if publications %}
{% if publications %}
{% for publication in publications %}
{% for publication in publications %}
<ul>
<ul>
<li
class=
"big_text"
><a
href=
"{
{ publication.link }}
"
>
{{ publication.title }}
</a></li>
<li
class=
"big_text"
><a
href=
"{
% static 'hunter/publications/' %} {{ publication.link }}"
target=
"_blank
"
>
{{ publication.title }}
</a></li>
<li
class=
"small_text"
>
{{ publication.authors }}
</li>
<li
class=
"small_text"
>
{{ publication.authors }}
</li>
<li
class=
"middle_text right"
>
{{ publication.date }}
</li>
<li
class=
"middle_text right"
>
{{ publication.date }}
</li>
</ul>
</ul>
...
...
Hunter_ht/hunter/views.py
View file @
ee052bbe
...
@@ -15,6 +15,8 @@ def index(request):
...
@@ -15,6 +15,8 @@ def index(request):
for
pub
in
publication_list
:
for
pub
in
publication_list
:
year
=
str
(
pub
.
date
)[
0
:
4
]
year
=
str
(
pub
.
date
)[
0
:
4
]
pub
.
date
=
str
(
pub
.
date
)[
5
:
10
]
pub
.
date
=
str
(
pub
.
date
)[
5
:
10
]
pub
.
link
=
pub
.
link
.
split
(
'/'
)[
-
1
]
print
(
pub
.
link
)
if
year
in
publication_year_list
.
keys
():
if
year
in
publication_year_list
.
keys
():
publication_year_list
[
year
]
.
append
(
pub
)
publication_year_list
[
year
]
.
append
(
pub
)
else
:
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment