I am receiving this error when requesting a pdf file that was uploaded in admin using FileField
Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/site_media/pdf/Alg_.pdf The settings file: MEDIA_URL = 'http://127.0.0.1:8000/site_media/' the models file: internalfilename = models.FileField(upload_to="pdf/", blank=True, help_text="Publication must NOT be copyrighted") Postgres table: internalfilename character length 100 Template: {% if publication.internalfilename %} ( <a href="{{MEDIA_URL}}{{ publication.internalfilename| safe }}">{{ publication.mediaformat.mediaformat|safe }}</a> {{ publication.digitalsize|safe }} ) {% else %} {% endif %} Shouldn't the pdf file open without having to add anything to the URL.py file? Thank you for any help --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---