The users will need a browser which is capable of rendering the file or
knowing what app it has to use - for example, on my machine (Linux) an XLS
file is rendered directly by LibreOffice; but on a colleague's machine with
Windows/IE they have to first download the file and then open it. So, you
I fixed it. but now the website give me the option of downloading the file.
How can i do for the website to display the file?
On Sunday, May 22, 2016 at 8:27:10 AM UTC-7, Wilfredo Rivera wrote:
>
> It give me this kind of error:
>
>
> Using the URLconf defined in hr_solution.urls, Django tried th
It give me this kind of error:
Using the URLconf defined in hr_solution.urls, Django tried these URL
patterns, in this order:
1. ^admin/
2. ^user/
3. ^$ [name='candidate_entry']
4. ^candidatelist/$ [name='candidate_list']
5.
^candidatelist/(?P\d{4})/(?P\d{1,2})/(?P\d{1,2})/
2016-05-21 13:21 GMT-06:00 Wilfredo Rivera :
> {{candidate.resumeFile}}"
{{candidate.resumeFile.name}}
"
Looking in your code probably you could be interested in
https://docs.djangoproject.com/ja/1.9/ref/class-based-views/generic-editing/
--
"La utopía sirve para caminar" Fernando Birri
-
I think my code is more or less what you said, i made the change in the
template to include a link to the uploaded file using the Media_URL
variable, but it didn't work. It gave me a page not found error. I don't
know if i have to include a URL, the documentation doesn't mention
anything. Below
Do you have a model with a fileField?
I think you are wrong passing file to template, if you have a model with
filefield you can use media url something like
class Mymodel(Model):
myfile = models.FileField(upload_to="my_file_path_in_media")
so you can use a form
class Myform(forms.Mod
Hello:
I want to display an uploaded file in the browser. My website save the file
in the database, but i don't have idea of how can the website display it
once the user click on the link. I am new to django and programming in
general so i am learning on a trial and error basis.
The view that
7 matches
Mail list logo