PyCharm - Nicht aufgelöste Bibliothek 'staticfiles'

Ich arbeite mit PyCharm an einem Django-Projekt. Leider löst PyCharm die Vorlagen-Tags, die ich in meinen Vorlagen verwenden möchte, nicht auf.

{% load staticfiles %}

Das Projekt läuft innerhalb einer Ubuntu-VM via Vagrant. Die Ausführungskonfiguration kennt die virtuelle Umgebung, die ich in der VM verwende (Remote-Interpreter-Setup).

Meine Einstellungen sehen folgendermaßen aus:

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.humanize',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.sites',
    'django.contrib.flatpages',
    'django_extensions']

INSTALLED_APPS += get_core_apps(['myapp.dashboard')

STATICFILES_FINDERS = (
    'compressor.finders.CompressorFinder',
    'django.contrib.staticfiles.finders.FileSystemFinder',
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
    'compressor.finders.CompressorFinder',
)

STATIC_URL = '/static/'

BASE_DIR = os.path.dirname(os.path.abspath(__file__))

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, '../../../../myfolder/static'),
)

Noch bekomme ich die WarnungUnresolved library 'staticfiles'. Es zeigt dasselbe Verhalten wie andere Template-Tags. Könnte die dynamische Erstellung desSTATICFILES_DIRS das Problem sein? Wie könnte ich das lösen?

Antworten auf die Frage(6)

Ihre Antwort auf die Frage