Monday, August 31, 2020

Re: Premission Denied - Apache

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+unsubscribe@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.

No comments:

Post a Comment