RE: Models: Referencing A Model In Another App and Different Project

2012-07-26 Thread michael.pimmer.ext
I'm not sure whether there is a good solution for this problem with the prerequisites you mentioned. Just because you import onde model doesn't mean you have full access to the underlying database of another project. If nobody comes up with a better idea (I never tried something similar), here is

Profiling Django

2011-10-12 Thread michael.pimmer.ext
The django application I am working on is very slow on the server-side, and I want to know why. The essence is to identify which code-parts of processing one request take most time. The app runs with mod_wsgi on Apache, here is what I tried: - django-timelog: the information logged is too unspeci

RE: Limiting choices for ModelForm's ForeignKey/ManyToMany

2012-01-04 Thread michael.pimmer.ext
> I'm not sure if this will work, as the ModelForm's QuerySet for the choiceField cannot be changed dynamically during runtime, or can it? You can change the queryset directly in the view: http://stackoverflow.com/questions/291945/how-do-i-filter-foreignkey-choices- in-a-django-modelform Altough