Although Django's web side is nice, and I like the "free" Admin interface, what I really want to use Django for is its data model ORM and resulting "free" API. I want to use this to build a stand-alone Python application, using wxWidget for more sophisticated UI than I can get on a web page. I've built my model, got a slightly tweaked Admin web interface working and now I'm trying to write my first prototype application in Python.
I must be missing some "Django magic" because here's what I get when I run a trivial program: Traceback (most recent call last): File "C:\_Dev_\_Experiments_\Test Management System\TDtoTMS.py", line 18, in ? import myTMS.TestRepo.models as myTMS # The Django model for myTMS File "C:\_Dev_\_Experiments_\Test Management System\myTMS\TestRepo \models.py", line 1, in ? from django.db import models File "C:\Python24\lib\site-packages\django\db\__init__.py", line 7, in ? if not settings.DATABASE_ENGINE: File "C:\Python24\lib\site-packages\django\conf\__init__.py", line 28, in __getattr__ self._import_settings() File "C:\Python24\lib\site-packages\django\conf\__init__.py", line 53, in _import_settings raise EnvironmentError, "Environment variable %s is undefined." % ENVIRONMENT_VARIABLE EnvironmentError: Environment variable DJANGO_SETTINGS_MODULE is undefined. Another thing I haven't yet figured out is how to make my stand-alone application use Django's nice user/group permissions scheme. All the examples I've seen indicate that no login or authentication is necessary to use the API. Any assistance with either of these items, including pointers to examples and documentation, would be greatly appreciated. Thanks, Martin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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-users?hl=en -~----------~----~----~----~------~----~------~--~---