the question is what for? other than the ORM what else is useful for a
desktop app?
if it is only the ORM you want take a look at http://www.sqlalchemy.org/


On Mon, Sep 16, 2013 at 7:17 PM, Brad Pitcher <[email protected]> wrote:

> You need to do something like this before import django stuff:
>
> import os
> import sys
>
> sys.path.append(os.path.abspath(os.path.dirname(__file__)))
> os.environ['DJANGO_SETTINGS_MODULE'] = 'web.settings'
>
>
> ---------
> Brad Pitcher
>
>
> On Mon, Sep 16, 2013 at 8:19 AM, Nigel Legg <[email protected]> wrote:
>
>> Shouldn't it be
>>
>>        from django.db import models
>>
>> ??
>>
>> Cheers, Nigel
>> 07914 740972
>>
>>
>>
>> On 16 September 2013 15:25, DJ-Tom <[email protected]> wrote:
>>
>>> For reporting purposes I want to use List & Label from Combit. The
>>> web/online part is no big deal since the reporting module can be run
>>> without user interface (creating Excel or PDF files)
>>>
>>> But the actual form designer part that is used to define the report
>>> layout is a windows GUI application, so I would like to have a python file
>>> inside my Django app that I can call to start the designer part on my local
>>> machine.
>>>
>>> I have now read a bunch of descriptions on how to use Django in a
>>> standalone application but did not succeed so far in actually running my
>>> form designer.
>>>
>>> This is what I currently have, i tried to start this via "python
>>> formdesigner.py", after activating the correct virtualenv:
>>>
>>> from Tkinter import *
>>> from ctypes import *
>>> import django
>>> from models import *
>>>
>>> LL = windll.cmll18
>>>
>>> ### Declaration of application class omitted, this is plain python  ####
>>>
>>> app = Application()
>>> app.master.title("List & Label sample application")
>>> app.mainloop()
>>>
>>>
>>> Regardless what I try, I can't get the model class import to work.
>>>
>>> I also tried SET DJANGO_SETTINGS_MODULE=settings and project.settings
>>> and project.app.settings... nothing worked.
>>>
>>> thomas
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/django-users.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/django-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/django-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to