I read the tickets. Many are outdated and the approach in the trac ticket 
below I believe it's not very well defined. About putting app names on the 
INSTALLED_APPS, I don't think it would be good for packaging. That's why I 
believe it should be somewhere on the app itself. About using admin.py for 
registering the app, I think it would only scope the information to the 
admin site.

What I want to accomplish is some way to store app metadata for the use 
where it's needed and be able to translate it to multiple languages. Maybe 
on the future it exist a template tag so it could be used on the frontend 
as well without passing it through every view. Maybe we should create 
another module called "app.py" instead of using the "__init__.py" file.

On the other hand I believe we shouldn't modify yet the way the apps are 
loaded. Mainly because now there is an AppCache but it's tightly coupled in 
the db package (
https://github.com/django/django/blob/master/django/db/models/loading.py) 
and I don't think it's being used above that scope. It would be a hassle. I 
think we need a starting point, that's why a simple class with the 
information, that could be instantiated when needed, should be the best 
approach. Maybe later we could extend the app registry idea by extending 
the same class, decoupling the AppCache from the db module and rewriting 
the way models are loaded into the new app registry. That way for example 
in the case of the models in subpackages, we could load them from the app 
config class instead of using the app_label approach.

I will put a link to this discussion in the trac ticket seeking for more 
opinions.


El viernes, 7 de diciembre de 2012 11:18:07 UTC-3, Aymeric Augustin 
escribió:
>
> FYI the latest efforts on this topic are here:
> https://github.com/ptone/django/compare/app-loading
> http://code.djangoproject.com/ticket/3591
>
> -- 
> Aymeric.
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/3uB09G2TSoUJ.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to