#16283: my application project.auth takes models from django.contrib.auth
--------------------------------------+------------------------------
               Reporter:  TheRoSS     |          Owner:  nobody
                   Type:  Bug         |         Status:  reopened
              Milestone:              |      Component:  contrib.auth
                Version:  1.3         |       Severity:  Normal
             Resolution:              |       Keywords:
           Triage Stage:  Unreviewed  |      Has patch:  0
    Needs documentation:  0           |    Needs tests:  0
Patch needs improvement:  0           |  Easy pickings:  0
                  UI/UX:  0           |
--------------------------------------+------------------------------
Changes (by TheRoSS):

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


Comment:

 I think there is a misunderstanding between us...
 I didn't used 'django.contrib.auth' at all, look at my second post,
 please.
 There is no 'django.contrib.auth.middleware.!AuthenticationMiddleware' in
 MIDDLEWARE_CLASSES

 I raised an exeption at the beginning of 'django.contrib.auth.models'.
 Look at the exception stack, please:

 {{{
 Traceback (most recent call last):
   File "C:\home\dev\seka\seka\manage.py", line 14, in <module>
     execute_manager(settings)
   File "C:\home\python\lib\site-
 packages\django\core\management\__init__.py", line 438, in execute_manager
     utility.execute()
   File "C:\home\python\lib\site-
 packages\django\core\management\__init__.py", line 379, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File "C:\home\python\lib\site-packages\django\core\management\base.py",
 line 191, in run_from_argv
     self.execute(*args, **options.__dict__)
   File "C:\home\python\lib\site-packages\django\core\management\base.py",
 line 219, in execute
     self.validate()
   File "C:\home\python\lib\site-packages\django\core\management\base.py",
 line 243, in validate
     from django.core.management.validation import get_validation_errors
   File "C:\home\python\lib\site-
 packages\django\core\management\validation.py", line 3, in <module>
     from django.contrib.contenttypes.generic import GenericForeignKey,
 GenericRelation
   File "C:\home\python\lib\site-
 packages\django\contrib\contenttypes\generic.py", line 13, in <module>
     from django.contrib.admin.options import InlineModelAdmin,
 flatten_fieldsets
   File "C:\home\python\lib\site-
 packages\django\contrib\admin\__init__.py", line 6, in <module>
     from django.contrib.admin.sites import AdminSite, site
   File "C:\home\python\lib\site-packages\django\contrib\admin\sites.py",
 line 4, in <module>
     from django.contrib.admin.forms import AdminAuthenticationForm
   File "C:\home\python\lib\site-packages\django\contrib\admin\forms.py",
 line 4, in <module>
     from django.contrib.auth.forms import AuthenticationForm
   File "C:\home\python\lib\site-packages\django\contrib\auth\forms.py",
 line 1, in <module>
     from django.contrib.auth.models import User
   File "C:\home\python\lib\site-packages\django\contrib\auth\models.py",
 line 15, in <module>
     raise 'AUTH MODELS CALLED'
 }}}

 So 'auth' package was called from 'admin' package which was called from
 'contenttypes' which was called from django core.

 I didn't included those packages in my settings, but they were called
 anymore.
 Is this ok?
 Are the names 'auth', 'admin', 'contenttypes' magic and forbidden to use
 as an application names?

 I attach my zipped example project with this message, hope it will be
 helpful.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16283#comment:5>
Django <https://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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to