Repository: liqd/a4-meinberlin

Issue:
Static/Assets directories in apps
Django says to include app specific static files in a `/static` directory in the root of the particular app (https://docs.djangoproject.com/en/1.11/howto/static-files/). On `runserver` Django collects static files from the project wide static directory (mentioned in base.py) and the `/static` directories within all apps, grouping them into one global `/static` directory.
Now, we don't need `.jsx` files in that global `/static` directory since they are required and put together into one file by webpack. Still, those files need a directory to be put into on app level – therefore sometimes there might be an asset directory instead of a static directory or the other way around.
It'd be great to have one directory and in the best case that would include not having `.jsx` files in that django-generated, global `/static` directory.


Discussion:
maybe we could use a solution like http://stackoverflow.com/questions/12082902/how-do-i-ignore-static-files-of-a-particular-app-only-with-collectstatic  but i'd suggest to move everything to /asset/ and copy them to the static directory.  i would really like to add static/ to .gitignore

Resolving patch:
diff --git a/apps/dashboard/blueprints.py b/apps/dashboard/blueprints.py
--- a/apps/dashboard/blueprints.py
+++ b/apps/dashboard/blueprints.py
@@ -28,7 +28,7 @@
          content=[
              ideas_phases.CollectPhase(),
          ],
-         image='images/blueprints/brainstorming.svg',
+         image='images/brainstorming.svg',
          settings_model=None,
      )),
     ('map-brainstorming',
@@ -40,7 +40,7 @@
          content=[
              mapideas_phases.CollectPhase(),
          ],
-         image='images/blueprints/map-brainstorming.svg',
+         image='images/map-brainstorming.svg',
          settings_model=('a4maps', 'AreaSettings'),
      )),
     ('map-idea-collection',
@@ -53,7 +53,7 @@
              mapideas_phases.CollectPhase(),
              mapideas_phases.RatingPhase()
          ],
-         image='images/blueprints/map-idea-collection.svg',
+         image='images/map-idea-collection.svg',
          settings_model=('a4maps', 'AreaSettings'),
      )),
     ('agenda-setting',
@@ -68,7 +68,7 @@
              ideas_phases.CollectPhase(),
              ideas_phases.RatingPhase(),
          ],
-         image='images/blueprints/agenda-setting.svg',
+         image='images/agenda-setting.svg',
          settings_model=None,
      )),
     ('text-review',
@@ -81,7 +81,7 @@
          content=[
              documents_phases.CommentPhase(),
          ],
-         image='images/blueprints/text-review.svg',
+         image='images/text-review.svg',
          settings_model=None,
      )),
     ('participatory-budgeting',
@@ -95,7 +95,7 @@
          content=[
              budgeting_phases.RequestPhase()
          ],
-         image='images/blueprints/participatory-budgeting.svg',
+         image='images/participatory-budgeting.svg',
          settings_model=('a4maps', 'AreaSettings'),
      )),
     ('external-project',
@@ -107,7 +107,7 @@
          content=[
              extprojects_phases.ExternalPhase(),
          ],
-         image='images/blueprints/external-project.svg',
+         image='images/external-project.svg',
          settings_model=None,
      )),
     ('poll',
@@ -120,7 +120,7 @@
          content=[
              poll_phases.VotingPhase(),
          ],
-         image='images/blueprints/poll.svg',
+         image='images/poll.svg',
          settings_model=None,
      )),
     ('topic-prioritization',
@@ -132,7 +132,7 @@
          content=[
              topicprio_phases.PrioritizePhase(),
          ],
-         image='images/blueprints/priorization.svg',
+         image='images/priorization.svg',
          settings_model=None,
      )),
     ('bplan',
@@ -143,7 +143,7 @@
          content=[
              bplan_phases.StatementPhase(),
          ],
-         image='images/blueprints/bplan.svg',
+         image='images/bplan.svg',
          settings_model=None,
      )),
     ('kiezkasse',
@@ -157,7 +157,7 @@
          content=[
              kiezkasse_phases.RequestFeedbackPhase(),
          ],
-         image='images/blueprints/kiezkasse.svg',
+         image='images/kiezkasse.svg',
          settings_model=('a4maps', 'AreaSettings'),
      )),
 ]


Test patch: