django-admin-tools OSError: [Errno 22] Invalid argument
После изменения значений на:
INSTALLED_APPS = [
'admin_tools',
'admin_tools.theming',
'admin_tools.menu',
'admin_tools.dashboard',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
]
from admin_tools import urls
urlpatterns = [
path('admin/', admin.site.urls),
path('admin-tools/', include(urls)),
]
Начала возникать ошибка:
Traceback (most recent call last):
File "C:\Users\jeka0\AppData\Local\Programs\Python\Python39\lib\threading.py", line 973, in _bootstrap_inner
self.run()
File "C:\Users\jeka0\AppData\Local\Programs\Python\Python39\lib\threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\jeka0\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "C:\Users\jeka0\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\commands\runserver.py", line 118, in inner_run
self.check(display_num_errors=True)
File "C:\Users\jeka0\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\base.py", line 419, in check
all_issues = checks.run_checks(
File "C:\Users\jeka0\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\checks\registry.py", line 76, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "C:\Users\jeka0\AppData\Local\Programs\Python\Python39\lib\site-packages\admin_tools\checks.py", line 18, in check_admin_tools_configuration
get_template('admin:admin/base.html')
File "C:\Users\jeka0\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\loader.py", line 15, in get_template
return engine.get_template(template_name)
File "C:\Users\jeka0\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\backends\django.py", line 34, in get_template
return Template(self.engine.get_template(template_name), self)
File "C:\Users\jeka0\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\engine.py", line 143, in get_template
template, origin = self.find_template(template_name)
File "C:\Users\jeka0\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\engine.py", line 125, in find_template
template = loader.get_template(name, skip=skip)
File "C:\Users\jeka0\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\loaders\base.py", line 24, in get_template
contents = self.get_contents(origin)
File "C:\Users\jeka0\AppData\Local\Programs\Python\Python39\lib\site-packages\django\template\loaders\filesystem.py", line 23, in get_contents
with open(origin.name, encoding=self.engine.file_charset) as fp:
OSError: [Errno 22] Invalid argument: 'C:\\Users\\jeka0\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\admin_tools\\theming\\templates\\admin:admin\\base.html'
При попытке запустить код с репозитория на github (https://github.com/django-admin-tools/django-admin-tools/tree/master/test_proj) ошибка также возникает.
В чем причина ошибки и как от неё избавиться?