/ / upgrade django-pipeline auf 1.2.7, kann aber keine statischen Dateien finden - django, sass, django-staticfiles

upgrade django-pipeline auf 1.2.7, kann aber keine statischen Dateien finden - django, sass, django-staticfiles

Ich habe früher Django-Pipeline 1.2 benutzt.6 und es hatte nie Probleme, die statischen Dateien zu finden. Nach dem Upgrade kann es jetzt nicht finden, wo die statischen Dateien sind. Nicht sicher, was falsch ist, aber ich verpasse wahrscheinlich nur etwas.

Ich bekomme diesen Fehler:

ValueError: The file "stylesheets/application.css.sass" could not be found with <pipeline.storage.PipelineFinderStorage object at 0x106e8b290>.

Ich benutze Django 1.4. Hier sind meine Einstellungen:

path = lambda *a: os.path.join(ROOT_PATH, *a)
MEDIA_ROOT = ""
MEDIA_URL = ""
STATIC_ROOT = path("assets/")
STATIC_URL = "assets/"
STATICFILES_DIRS = ()
STATICFILES_FINDERS = (
"django.contrib.staticfiles.finders.FileSystemFinder",
"django.contrib.staticfiles.finders.AppDirectoriesFinder",
# "django.contrib.staticfiles.finders.DefaultStorageFinder",
)
INSTALLED_APPS = (
# ...
"django.contrib.staticfiles",
"pipeline",
"app",
)
STATICFILES_STORAGE = "pipeline.storage.PipelineCachedStorage"
PIPELINE_COMPILERS = (
"pipeline.compilers.sass.SASSCompiler",
"pipeline.compilers.coffee.CoffeeScriptCompiler",
)
PIPELINE_CSS = {
"application": {
"source_filenames": (
"stylesheets/application.css.sass",
),
"output_filename": "stylesheets/application.css",
},
}

PIPELINE_JS = {
"application": {
"source_filenames": (
"javascripts/application.js.coffee",
),
"output_filename": "javascripts/application.js",
}
}

Bitte helfen Sie.

Interessanter Leckerbissen: Wenn ich PIPELINE_CSS komplett entferne, kann es auch javascripts / application.js.coffee nicht finden.

Eine weitere interessante Sache, egal welche Version der Django-Pipeline ich verwende, bekomme ich folgendes:

$ python manage.py findstatic stylesheets/application.css.sass
No matching file found for "stylesheets/application.css.sass".

Was mache ich falsch?

Antworten:

3 für die Antwort № 1

Wenn Sie dies haben, egal welche Version der Pipeline Sie verwenden:

$ python manage.py findstatic stylesheets/application.css.sass
No matching file found for "stylesheets/application.css.sass".

Es bedeutet nur, dass django-staticfiles falsch konfiguriert ist. Sobald Sie das herausgefunden haben, sollte die Pipeline korrekt funktionieren.

Wo sind Ihre re statischen Dateien gespeichert? static Verzeichnis in jeder App oder für das gesamte Projekt oder sonst?