Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#21301 closed Cleanup/optimization (worksforme)

Directory Structure

Reported by: warrenbeyda@… Owned by: nobody
Component: contrib.staticfiles Version: 1.5
Severity: Normal Keywords:
Cc: warrenbeyda@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

I have a Django app and my static files are in:

~/django_app/app/app/static/app/

Who thought this directory structure was a good idea? and where can I go to hurt them? This is THE most frustrating thing about Django. This is worse than any PHP framework (and they are all bad). Django looking for static assets in the first folder it finds is not a valid excuse for this rediculous namespacing idea.

Change History (3)

comment:1 by Russell Keith-Magee, 11 years ago

Keywords: Retarded removed
Resolution: worksforme
Status: newclosed

Thank you for you kindly worded and considered opinion.

However, instead of taking the opportunity to suggest a solution, you've resorted to polemic, so there's very little we can do to action you complaint.

If you care to make a concrete suggestion for how we can improve things -- keeping in mind that the current design actually has a purpose behind it, and any proposal needs to acknowledge the reasons behind that purpose -- feel free to reopen this ticket.

comment:2 by Russell Keith-Magee, 11 years ago

I might also suggest that you need to spend some time either with the documentation, or with some of the helpful people on the django-users mailing list, or on the #django IRC channel. The sample directory path you've provided has at least one redundant element in it, which suggests it is your own project that is at least part of the problem.

comment:3 by loic84, 11 years ago

The name-spacing is optional, it's just a convention. You can do app/static/style.css if you want to.

Also this is just the AppDirectoriesFinder, Django also provides FileSystemFinder and even let you supply a custom Finder.

As a side note, reading the docs would get you a long way...

Note: See TracTickets for help on using tickets.
Back to Top