2017-01-07 2 views

Antwort

1

Django sagt nichts dergleichen. Platziere den statischen Ordner wo immer du willst, solange du ihn in STATICFILES_DIRS einfügst, damit Collectstatic ihn findet.

1

Sie können separate static Ordner für alle Anwendungen erstellen und STATICFILES_DIRS entsprechend festlegen.

Ich persönlich benutze das folgende Projekt-Layout

project/apps/app_1 
      ... 
      app_n 
      static  <- static files for all apps 
      templates  <- templates for all apps 

     /config/... 
       settings.py 
       ... 

, die ich von Two Scoops of Django book entlehnt

Verwandte Themen