I have developed a data science web app that generates various statistical analysis related graphs. Statistical functions being executed from the Django app called "ProtocolApp", where I have a directory as "Statistical_protocols" while the "Stat_Learning" project is the base directory. My programme is generating some image files and .csv output file withing the base directory of project "Stat_Learning", Same directory where "manage.py" is present".
Within a template i have provided link for all the file like this:
Template:
{% extends 'protocol/base.html' %}
{% load static %}
{% block content %}
<style type="text/css">
table {
margin-bottom: 20px;
border-collapse: collapse;
border-spacing: 0;
width: 30%;
border: 1px solid #ddd;
bgcolor: #00FF00;
}
th, td {
border: none;
text-align: left;
padding: 8px;
}
tr:nth-child(even){background-color: #f2f2f2}
</style>
<div style="overflow-x:auto;">
<table align="center">
<tr>
<th align="center">Result files</th>
</tr>
{% for a in names %}
<tr>
{% if a %}
<td><a href="/virtual_env_dir/Base_rectory_of_the_project/{{a}}"> {{a}} </a> <br></td>
{% endif %}
</tr>
{% endfor %}
</table>
</div>
{% endblock %}
Is there a method to provide downloadable link through this base directory for all the files.
or is there any method to add another directory called "Downloads" others then media directory. Because I am using media directory to upload the input file for the protocols.
thanks