Opened 19 years ago

Closed 19 years ago

#519 closed defect (invalid)

Dir structure and modules

Reported by: wojtek3@… Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

These two things are against DRY in Django.

The project directory structure is too long and makes the user repeat the same thing over and over. For example apps/bulletin/model/bulletin.py, apps/bulletin/view/bulletin.py, etc. It would be nice if the user had more control on the directory layout and could instruct Django to use another one (for example apps/bulletin/model.py and apps/bulletin/view.py).

Another problematic thing is the django.models. package which causes that two models in two different apps with an identical name have to have different module_name's. So if I have a model 'Vote' in the 'poll' app and 'Vote' in the 'election' app, one of those has to have a different module_name since django will strangely try to push them both into django.models.votes. So why not make it django.models.poll.vote (why even pluralise it and make it more vague and problematic through the process?).

Regards!

Change History (1)

comment:1 by Adrian Holovaty, 19 years ago

Resolution: invalid
Status: newclosed

This is a bit too vague to be a ticket, and it's something that's been discussed on the mailing list. Please contribute to that discussion.

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