Привет, я пытаюсь использовать django-field, но обнаружил эту ошибку:
Traceback (most recent call last):
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\core\handlers\exception.py", line 35, in inner
response = get_response(request)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\core\handlers\base.py", line 128, in _get_response
response = self.process_exception_by_middleware(e, request)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\core\handlers\base.py", line 126, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\contrib\admin\options.py", line 575, in wrapper
return self.admin_site.admin_view(view)(*args, **kwargs)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\utils\decorators.py", line 142, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\views\decorators\cache.py", line 44, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\contrib\admin\sites.py", line 223, in inner
return view(request, *args, **kwargs)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\contrib\admin\options.py", line 1557, in change_view
return self.changeform_view(request, object_id, form_url, extra_context)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\utils\decorators.py", line 62, in _wrapper
return bound_func(*args, **kwargs)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\utils\decorators.py", line 142, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\utils\decorators.py", line 58, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\contrib\admin\options.py", line 1451, in changeform_view
return self._changeform_view(request, object_id, form_url, extra_context)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\contrib\admin\options.py", line 1491, in _changeform_view
self.save_model(request, new_object, form, not add)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\contrib\admin\options.py", line 1027, in save_model
obj.save()
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\db\models\base.py", line 729, in save
force_update=force_update, update_fields=update_fields)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\db\models\base.py", line 769, in save_base
update_fields=update_fields, raw=raw, using=using,
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\dispatch\dispatcher.py", line 178, in send
for receiver in self._live_receivers(sender)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\django\dispatch\dispatcher.py", line 178, in <listcomp>
for receiver in self._live_receivers(sender)
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\audiofield\fields.py", line 223, in _rename_audio
self._convert_audio(dst_fullpath, instance, ext[1:4])
File "C:\Users\Sebastian\Envs\blog\lib\site-packages\audiofield\fields.py", line 140, in _convert_audio
response = subprocess.Popen(command.split(' '), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "C:\Python36\Lib\subprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "C:\Python36\Lib\subprocess.py", line 992, in _execute_child
startupinfo)
[WinError 2] FileNotFoundError
Аудиофайл фактически сохраняется в каталоге media в корне проекта, как указано в settings.py.
Не знаю где искать. Не удалось найти подобную тему и способ решить эту проблему ...
я меняю его в django.admin. Это не проблема views.py
он показывает мне ошибку после того, как я загружаю файл (успешно сохраненный в каталоге мультимедиа в корне проекта), но путь к audio_file не сохраняется





В соответствии с вашей ошибкой кажется, что ваш путь к файлу неверен. Выдает ошибку "файл не найден". Если возможно, поделитесь здесь своим кодом файла views.py.