Code

Opened 9 years ago

Closed 9 years ago

#519 closed defect (invalid)

Dir structure and modules

Reported by: wojtek3@… Owned by: adrian
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: UI/UX:

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!

Attachments (0)

Change History (1)

comment:1 Changed 9 years ago by adrian

  • Resolution set to invalid
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.