Configured a web server for a Django application using nginx , uwsgi . Everything works fine, but when adding files through the admin panel Django gives an error:
[Errno 13] Permission denied : path to the media files directory (where Django should save the file) Exception Location: /home/django/venv/lib/python3.4/site-
packages / django / core / files / storage.py in _save, line 264 Python Executable: / home / django / venv / bin / uwsgi Python Version: 3.4.3 Python Path: ['.', '', / / home / django / venv / lib / python3.4 ',
'/home/django/venv/lib/python3.4/plat-x86_64-linux-gnu',
'/home/django/venv/lib/python3.4/lib-dynload', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu',
'/home/django/venv/lib/python3.4/site-packages']
At the same time through the admin panel, you can add new data to the model if there is no media. I would appreciate any advice.
MEDIA_ROOT. - Sergey Gornostaevuid- AlTheOne