Hi Kasper,

When I was running with the django local server, I have permission and
works good. The error occurs when I publish the site with apache2
I gave 777 permission because I was trying to do it (give permission).



Em seg., 31 de ago. de 2020 às 12:11, Kasper Laudrup <laud...@stacktrace.dk>
escreveu:

> Hi Giovanni,
>
> On 31/08/2020 06.00, Giovanni Silva wrote:
> > Can anyone help me please?
> >
> > All my project folder is 777 permissions with www-data user owner and
> group
> >
>
> Please don't do that. That's a huge security risk and can cause all
> kinds of other problems.
>
> It is hard to know how to solve your issue since you haven't shared any
> of your code, but I'd suggest you specify a base path for where you save
> your PDF files in your settings.py, ensure that the user running your
> django code has write access to that directory (and only that directory)
> and then ensure you use that path when saving your PDF files (ie. no
> relative paths).
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8e0a8790-f947-15bb-8cf4-c9c0cc59c8d8%40stacktrace.dk
> .
>


-- 
*Giovanni Silva*
(31) 9 9532-1877

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABO2r9fmsYWNu0n2VjYVxoD9fH8SrMNJ-KiAgp9m_CwYBb3VYg%40mail.gmail.com.

Reply via email to