#16755: syncdb confuses any app named auth with its own
-------------------------------------+-------------------------------------
               Reporter:  dean@…     |          Owner:  nobody
                   Type:  Bug        |         Status:  reopened
              Milestone:             |      Component:  Core (Management
                Version:  1.3        |  commands)
             Resolution:             |       Severity:  Normal
           Triage Stage:             |       Keywords:
  Unreviewed                         |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
Changes (by anonymous):

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


Comment:

 That would make sense if changing the name of the app didn't fix the
 problem.  I have disabled all apps in my settings.py file except for my
 site_auth app.

 It is not difficult to reproduce this problem and I have done it from a
 fresh project with django 1.3.

 1. Run: django-admin.py startproject temp
 2. Edit settings.py and comment out all apps under INSTALLED_APPS and all
 MIDDLEWARE_CLASSES
 3. Run: ./manage.py startapp auth
 4. Edit settings.py and add  'temp.auth', under INSTALLED_APPS
 5. Run: ./manage.py syncdb
 6. Notice the django.contrib.auth tables have been created.
 7. Remove tables/database to start over
 8. Rename auth project to s_auth (or anything other than just 'auth')
 9. Edit settings.py and change INSTALLED_APPS to reflect this change
 10. Run: ./manage.py syncdb
 11. Notice that the django.contrib.auth tables are not created this time.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16755#comment:2>
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