On Wed, Jun 27, 2012 at 12:54 AM, Alireza Savand <alireza.savand@gmail.com> wrote:
HiCommon way to create [model|admin] classes is implement and create them in [models|admin].py file.But as standard non-django way is to create a python package named admin for AdminClass es and create a file for each admin class.But i couldn't find any standard way to register those admin classes, i mean should i register them in admin/__init__.py or register each class in it own file then import them at admin/__init__.py ?Sometimes when i register all of them at admin/__init__.py it's happening that classes will initialed multiple times and i don't know the reason.I'm just looking for common or standard way to do it.Thanks.--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/_UjokPA1WgYJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment