Hi
Common 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to