Re: python path in webpage error message not virtual environment's

2014-02-18 Thread Russell Keith-Magee
message, it shows the 'normal' python path, site packages installed, > etc. For example, I have jinja on my main installation, but not in the > virtual environment. Yet, jinja shows up in this message as one of the site > packages; similarly with the other python packages. Is th

python path in webpage error message not virtual environment's

2014-02-17 Thread knowledge_seeker
I understand the importance of doing projects in virtual environments, but I am hitting one snag. When I have an error in django, and I get the generated webpage with an error message, it shows the 'normal' python path, site packages installed, etc. For example, I have jinja

Re: Python path in new 1.4 project structure?

2013-03-25 Thread Shawn Milochik
On Mon, Mar 25, 2013 at 12:56 PM, Carsten Fuchs wrote: >> !!! PONTIFICATION ALERT !!! >> Don't do that. > > Uhh, about the first word, I didn't find it in any dictionary. > Is this somehow related to pope Franziskus? ;-) > >From http://www.thefreedictionary.com/pontificate: To express opinio

Re: Python path in new 1.4 project structure?

2013-03-25 Thread Carsten Fuchs
Hi Bill, thank you very much for your clear and detailed reply! All problems resolved. Am 22.03.2013 20:52, schrieb Bill Freeman: !!! PONTIFICATION ALERT !!! Don't do that. Uhh, about the first word, I didn't find it in any dictionary. Is this somehow related to pope Franziskus? ;-) So put

Re: Python path in new 1.4 project structure?

2013-03-22 Thread Bill Freeman
!!! PONTIFICATION ALERT !!! Don't do that. I believe that it has always been a goal of project structure that the directories on the python path be either in the default python places (/something/something/lib/python2.X/site-packages/ unless you're using a Debian provided pytho

Python path in new 1.4 project structure?

2013-03-22 Thread Carsten Fuchs
erns began with 'Zeiterfassung. ...' However, with the new project layout, it seems that the correct way to make it work is *contrary* to the description in the IntegrationWithDjango article: Is it right that the python path should now include the project root directory?

Re: add project directory path to python path permanently

2011-12-01 Thread DrBloodmoney
On Thu, Dec 1, 2011 at 5:59 AM, Nikhil Verma wrote: > > Hi all, > > I want to add my django project directory path to PYTHONPATH. I am a newbie > in ubuntu 11.10 > Please tell me step by step. When i do import sys sys.path.append(''project_directory path") > It does append but not permanen

Re: add project directory path to python path permanently

2011-12-01 Thread Nan
Do you have pip installed? If so, you can just create a setup.py script [1] and from inside your project directory run: pip install -e ./ I assume setuptools (easy_install) can do the same, but I'm not 100% clear on the command. [1] http://docs.python.org/distutils/setupscript.html On Dec 1,

Re: add project directory path to python path permanently

2011-12-01 Thread Daniel Roseman
On Thursday, 1 December 2011 10:59:15 UTC, Nikhil Verma wrote: > > > Hi all, > > I want to add my django project directory path to PYTHONPATH. I am a > newbie in ubuntu 11.10 > Please tell me step by step. When i do > >>>import sys > >>>sys.path.append(''project_directory path") > It does append

add project directory path to python path permanently

2011-12-01 Thread Nikhil Verma
Hi all, I want to add my django project directory path to PYTHONPATH. I am a newbie in ubuntu 11.10 Please tell me step by step. When i do >>>import sys >>>sys.path.append(''project_directory path") It does append but not permanently. I want it like whenever i do sys.path it should show me Project

Re: Incorrect Python path in Apache FCGI deployment

2009-09-30 Thread W.P. McNeill
I figured out the first problem listed above. It wasn't related to file permissions, but I want to document it here since if I hit it someone else is likely to hit it too. The problem was because I was writing application import statements incorrectly. For example, I was saying: from phone

Re: Incorrect Python path in Apache FCGI deployment

2009-09-30 Thread Karen Tracey
On Wed, Sep 30, 2009 at 12:47 PM, W.P. McNeill wrote: > > Because this appears to be a problem with load paths, I inserted code > at the top of phonemechart/urls.py just above the import statements to > write out the system path. > > import sys > > f = open('/tmp/pypath', 'w') > f.write("Path is:

Re: Incorrect Python path in Apache FCGI deployment

2009-09-30 Thread W.P. McNeill
uot; wrote: > I have written a set of Django apps that works on my development > machine but fails when I deploy it to Apache.  The issue appears to be > with the Python path that the Apache process is using, but none of the > things I have tried have worked.  I'm looking for sugge

Incorrect Python path in Apache FCGI deployment

2009-09-28 Thread W.P. McNeill
I have written a set of Django apps that works on my development machine but fails when I deploy it to Apache. The issue appears to be with the Python path that the Apache process is using, but none of the things I have tried have worked. I'm looking for suggestions as to what I am doing

Re: python path

2008-12-09 Thread mangamonk
egory) --- and then ran: [EMAIL PROTECTED]:~/django_projects/mysite$ python manage.py syncdb rather than.. [EMAIL PROTECTED]:~/django_projects$ python manage.py syncdb still a bit confused though as I thought that by exporting my python path i

Re: python path

2008-12-09 Thread mangamonk
/var/lib/python-support/python2.5', '/usr/lib/python2.5/site-packages/gtk-2.0', '/var/lib/python-support/python2.5/gtk-2.0'] On Dec 9, 12:02 pm, mangamonk <[EMAIL PROTECTED]> wrote: > I'm working through 'practical django projects' > on page 46, in

python path

2008-12-09 Thread mangamonk
I'm working through 'practical django projects' on page 46, in order to develop stanalone application, I need to add my django 'project' to the python path. therefore.. export PYTHONPATH=/home/mark/django_projects/:$PYTHONPATH then a little later in the tutorial after

Re: Python PATH question

2008-07-14 Thread phillc
> > The runserver stuff is a bit too magic. It puts 'root' on sys.path but > > only long enough to import 'mysite' package root. um, i have never experienced this behavior. plug: http://www.wtflab.com/tech/2008/jul/01/developed-directory-structure/ --~--~-~--~~~---

Re: Python PATH question

2008-07-13 Thread Rickard
ectories of all the modules you are going to > > import in your application." > > > If I have a typical Django project structure: > > > root > > - mysite > > -- myapp1 > > -- myapp2 > > > I should put root on the Python PATH, right? > > Yes

Re: Python PATH question

2008-07-13 Thread Graham Dumpleton
al Django project structure: > > root > - mysite > -- myapp1 > -- myapp2 > > I should put root on the Python PATH, right? Yes and if you don't always use 'mysite.' package prefix in url rules and just say 'myapp1.', 'myapp2.' etc, then you must also

Python PATH question

2008-07-13 Thread Rickard
Hi, The documentation says "The value you use for PythonPath should include the parent directories of all the modules you are going to import in your application." If I have a typical Django project structure: root - mysite -- myapp1 -- myapp2 I should put root on the Python PATH, r