#12287: Application name must be unique in a project - silent sideeffect when 
it's
not
-------------------------------------------------------+--------------------
          Reporter:  Piotr Czachur <[email protected]>  |         Owner:  nobody
            Status:  reopened                          |     Milestone:        
         Component:  Uncategorized                     |       Version:  SVN   
        Resolution:                                    |      Keywords:        
             Stage:  Unreviewed                        |     Has_patch:  0     
        Needs_docs:  0                                 |   Needs_tests:  0     
Needs_better_patch:  0                                 |  
-------------------------------------------------------+--------------------
Changes (by Piotr Czachur <[email protected]>):

  * status:  closed => reopened
  * resolution:  duplicate =>

Comment:

 Why you closed this ticket without a word of explanation?
 I assume that setting this as duplicate of #12288 means that you just want
 to add documentation, and leave this as it is, but maybe this idea is
 worth more time.

 It would be much more flexible if under one project, applications were
 registered with user-defined name, for example:
 {{{
 INSTALLED_APPS =  {
     'django_auth' : 'django.contrib.auth',
     'my_auth' : 'my.package.path.auth',
 }
 }}}

 So one could run test separately for both applications:
 {{{
 manage.py test django_auth
 manage.py test my_auth
 }}}

 ...and those applications would use different database tables:
 {{{
 django_auth_ModelName # for django_auth
 my_auth_ModelName # for my_auth
 }}}

 So like today, Django would have application with names, but that names
 wouldn't collide when we got multiple applications with the same package
 name (like django.contrib.auth and my.package.path.auth). In this concept
 author of a project defines application name instead of author of an
 application.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12287#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--

You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.


Reply via email to