#Need help displaying a PDF that is uploaded in the admin panel

9 messages · Page 1 of 1 (latest)

night bridge
#

Hey everyone!
I am making a newspaper website.
On the home page you see a list of all the newspapers. Each newspaper is created in the admin panel and is made up of a title, image, description, and content, which is a pdf. When you click on the link for a newspaper, it takes you a page where you can read the newspaper. the newspaper is in the form of a PDF, so I need to embed it into the site. But when I try to do so, Firefox says it cant "display the page if another site has embedded it"
What do I need to do in order to be able to embed a PDF into the site, or if there are other ways for me to display the pdf, bearing in mind that this project will end up going to production?
Thanks!

outer harnessBOT
night bridge
night bridge
gilded patrol
#

Of course this only applies if you're serving uploads using Django; this is often the case in development but almost never in production, so maybe revisit this once you've deployed the app, or only add the setting when working locally (e.g. if DEBUG:)

night bridge
#

will take a look soon, thanks

night bridge
#

Thank you so much, this worked for me.