Skip to content

Commit

Permalink
new deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
oneillm71 committed Mar 1, 2020
1 parent eb5c0b5 commit 8877a8f
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 27 deletions.
Binary file modified Main/__pycache__/urls.cpython-37.pyc
Binary file not shown.
Binary file modified Main/__pycache__/views.cpython-37.pyc
Binary file not shown.
14 changes: 7 additions & 7 deletions Main/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
path('accounts/', include('accounts.urls')),
path('accounts/', include('django.contrib.auth.urls')),
path('', views.home, name='home'),
path('result/', views.result, name='result'),
path('projects/', views.recentlyused, name='projects'),
path('result/', views.result, name='result'),
path('recentlyused/', views.recentlyused, name='projects'),
path('resources/', TemplateView.as_view(template_name='resources.html'), name='resources'),
path('about/', TemplateView.as_view(template_name='about.html'), name='about'),
path('home/', TemplateView.as_view(template_name='home.html'), name='home'),
path('Content-Disposition/', views.download_file),
path('createProject/', views.createProject, name='createProject'),
path('recentlyused/<int:project_id>/', views.project_detail, name='project_detail'),
path('deleteallobjects/', views.delete_all_projects, name="delete_all_projects"),
path('home/', TemplateView.as_view(template_name='home.html'), name='home'),
path('Content-Disposition/', views.download_file),
path('createProject/', views.createProject, name='createProject'),
path('recentlyused/<int:project_id>/', views.project_detail, name='project_detail'),
path('deleteallobjects/', views.delete_all_projects, name="delete_all_projects"),
path('addDocument/<int:project_id>/', views.add_document, name="add_document"),
path('analyzeDocTFIDF/<int:document_id>', views.analyze_doc_tfidf, name="analyze_doc_tfidf"),
]
4 changes: 2 additions & 2 deletions Main/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def createProject(request):
context = {
'proj_list': project_list,
}
return redirect("recentlyused")
return redirect("/recentlyused")
elif text is not None:
user = request.user

Expand All @@ -306,7 +306,7 @@ def createProject(request):
context = {
'proj_list': project_list,
}
return redirect("recentlyused")
return redirect("/recentlyused")
else:
return render(request, 'createProject.html')

Expand Down
16 changes: 1 addition & 15 deletions output-2020-03-01.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1 @@
ipsum 1.6424710436699408
lorem 1.6424710436699408
use 1.1043815278967852
does 0.7071067811865476
come 0.7071067811865476
10 0.5775536322942031
reproduced 0.3902854965612084
content 0.3663522702810033
text 0.3531640840247509
versions 0.3334159734084631
32 0.329435449157358
like 0.31670192897156263
latin 0.28540265332307607
1500s 0.2747397902943241
standard 0.2747397902943241
thing 1.0
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1>Text Penguin</h1>
<a class="nav-link" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/projects">Projects</a>
<a class="nav-link" href="/recentlyused">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/resources">Resources</a>
Expand Down
2 changes: 1 addition & 1 deletion templates/createProject.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h2 id="createaprojectheader">Create Project</h3>
</div>

<div id="button">
<a href="/projects" class="button">Back</a>
<a href="/recentlyused" class="button">Back</a>
</div>
{% if user.is_authenticated %}
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion templates/recentlyused.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<h2 id="recentlyusedheader">Projects</h2>
<div id="projectitles">
{% for project in proj_list %}
<a href="/projects/{{ project.id }}/">
<a href="/recentlyused/{{ project.id }}/">
<div class="individualproject">
<h4 class="projecttitle">{{ project.title }}</h4>
</div>
Expand Down

0 comments on commit 8877a8f

Please sign in to comment.