阅读背景:

如何在Django中获取当前应用程序

来源:互联网 

I'm using the Django 1.3 alpha to create a project with two applications. I use 1.3 because of the class-based views. For these two applications I have a set of common base view-classes, that are inherited by the actual views in the applications. In the base class, is there a way to find out what application the view is "called" from? E.g. can I use the URL to get the "current" application?I'm using the Django 1.3 alpha to create a proj




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: