Thanks a lot! I was lost with paths and all that. You really helped me
to solve my problems!
On Aug 21, 1:44 pm, Steve Holden wrote:
> On 8/21/2010 4:52 AM, clochemer wrote:
>
>
>
> > Thanks for your quick replies. You helped me to understand what is
> > happening.
>
> > However, I can not make a
On 8/21/2010 4:52 AM, clochemer wrote:
> Thanks for your quick replies. You helped me to understand what is
> happening.
>
> However, I can not make all work together. Let me explain the problems
> that I am having right now...
>
> I wrote a piece of code in a folder within my django project path
Thanks for your quick replies. You helped me to understand what is
happening.
However, I can not make all work together. Let me explain the problems
that I am having right now...
I wrote a piece of code in a folder within my django project path just
like this:
/home/myproject/utils/commserver.py
If you set your environment variable DJANGO_SETTINGS_MODULE in the
environment your script is running in, you need only add this line to
your script (in addition to your model imports, of course).
from django.conf import settings
Otherwise you'll need to import the OS module in your script and ad
You need your external program to do several things:
1) make sure django is on your PYTHONPATH (or within the Python
script, on sys.path)
2) make sure your apps are also on the PYTHONPATH (or sys.path)
3) set the DJANGO_SETTINGS_MODULE environment variable in your shell
or script
Then you just i
Hi everyone!
It's my first question, and that's because I am totally lost. I am not
a great Django developer (neither a good Python programmer) so I do
not even know if I am doing the right things, let me explain...
I have an external Python program which reads from a socket and
depending on what
6 matches
Mail list logo