On 8/17/06, Gary Wilson <[EMAIL PROTECTED]> wrote: > IMO, the dependency checking is the easy part. In the README or > something, I say MyCoolApp requires the admin app. It's the > configuration settings of the admin app that's hairy.
That's what application documentation is for. In theory it's also possible to use this mechanism to ensure that any additional settings it requires exist in the project settings file and are non-empty; something like from django.conf import settings try: my_cool_app_setting = settings.COOL_APP_SETTING except AttributeError: dependency_errors.append("the setting 'COOL_APP_SETTING' must be specified in the project's settings file in order to use this application") But as Malcolm has pointed out, the idea here is not to provide a mechanism for automatically configuring applications -- it's to provide a way for applications to specify the things they need. > What do you mean a bit too much toward the app server? Isn't that what > we are all doing with django? Building and serving blog apps and forum > apps and news publishing apps and ... In my mind, at least, an "app server" is a system whose job is to take many different applications which may be written using wildly different frameworks, or even no frameworks at all, and mediate between them (assuming, for example, that they implement some common interface for communication with the app server). WSGI is a good example of this sort of thinking in the Python world -- the idea is that it doesn't matter what you use to write your application, so long as it exposes the appropriate WSGI-compliant interfaces for its intended role. That seems to be far and away a larger and more complex task than what Django aims for -- yes, Django provides facilities for Django-based applications to work with one another, but Django is first and foremost a tool for _writing_ applications, not a tool for _running_ applications. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---