Skip to content

Commit

Permalink
switched to django 2.2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Elsworth committed Apr 28, 2020
1 parent ec1a36a commit ed959a0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
17 changes: 14 additions & 3 deletions django_project/django_project/templates/django_project/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
{% extends 'base.html' %}
{% block content %}
<div class="container">
<h1 class="text-center"><img src="http://melodi.biocompute.org.uk/static/browser/img/melodi_logo.png" alt="MELODI" height="30" style="position: relative; top: -3px;"> Lite</h1>
<hr/>
<div class="row">
<div class="col-4 text-center">
<h1 class="hw--blue"><a href='/docs/'>{{index.api}}</a></h1>
</div>
<div class="col-4 text-center">
<h1 class="hw--blue"><a href='/app/overlap/'>{{index.app}}</a></h1>
</div>
<div class="col-4 text-center">
<h1 class="hw--blue"><a href='https://github.com/MRCIEU/MELODI-Lite'>{{index.repo}}</a></h1>
</div>
</div>
<main role='main'>
<h1 class="hw--blue"><a href='/docs/'>{{index.api}}</a></h1>
<h1 class="hw--blue"><a href='/app/overlap/'>{{index.app}}</a></h1>
<h1 class="hw--blue"><a href='https://github.com/MRCIEU/MELODI-Lite'>{{index.repo}}</a></h1>
<p>
Previously we created MELODI, a method and tool to derive overlapping enriched literature elements connecting two biomedical terms, e.g. an exposure and a disease, <a href="https://doi.org/10.1093/ije/dyx251">(Elsworth et al., 2018)</a>.
The main data involved were derived from SemMedDB <a href="https://academic.oup.com/bioinformatics/article/28/23/3158/195282">(Kilicoglu et al., 2012)</a>, in particular a set of annotated ‘subject-predicate-object’ triples created from the titles and abstracts of almost 30 million biomedical articles.
Expand Down
6 changes: 3 additions & 3 deletions django_project/django_project/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def index(request):
template = loader.get_template('django_project/index.html')
context = {
'index': {
'api': 'MELODI Lite API',
'app': 'MELODI Lite App',
'repo': 'GitHub Repository'
'api': 'API',
'app': 'App',
'repo': 'GitHub'
}
}
return HttpResponse(template.render(context, request))
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ channels:
dependencies:
- python=3.7
- scipy
- Django=2.2.3
- gunicorn
- djangorestframework
- requests
Expand All @@ -18,4 +17,5 @@ dependencies:
- pip
- pip:
- drf-yasg
- Django==2.2.12

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Django==2.2.3
Django==2.2.12
gunicorn==19.7.0
djangorestframework
requests
Expand Down

0 comments on commit ed959a0

Please sign in to comment.