#11563: Models are not registered at the moment when AdminSite.get_urls() runs,
only at mod_wsgi environment
-----------------------------------+----------------------------------------
          Reporter:  daybreaker    |         Owner:  nobody         
            Status:  new           |     Milestone:  1.1            
         Component:  Contrib apps  |       Version:  SVN            
        Resolution:                |      Keywords:  admin urls wsgi
             Stage:  Unreviewed    |     Has_patch:  0              
        Needs_docs:  0             |   Needs_tests:  0              
Needs_better_patch:  0             |  
-----------------------------------+----------------------------------------
Changes (by daybreaker):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 For more information, I add some bits of my codes:

 {{{
 # in admin.py
 from django.contrib import admin
 from myproject.myapp.models import MyModel # imported for custom admin-
 actions

 class MyModelAdmin(admin.ModelAdmin):
 ...


 # in models.py
 from django.contrib import admin

 class MyModel(models.Model):
 ...

 from myproject.myapp.admin import *
 admin.site.register(MyModel, MyModelAdmin)
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11563#comment:1>
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 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