Ok thanks, so I guess it's a 99% standard to have libraries installed
into the /site-packages/ because that's where setup.py installs them
to?

I never actually used that before. When I installed django I just
grabbed the zip off the site and extracted the /django/ folder
directly to /site-packages/ because I saw references to that folder in
the documentation. When time came to install markdown and pygments
(from James' book) the Python interpreter was throwing a hissy fit
because it couldn't import them. I originally placed them in a
different location other than /site-packages/ and simply referencing
the path in my IDE's settings wasn't enough (it worked for code
complete, but not running the the server).

Version control is also something I plan to get into. Fortunately the
recent djangocon videos already set me on the right path for that.
Just need to get around to setting it up and learning how to use it.

On Sep 15, 11:01 pm, Mike Dewhirst <mi...@dewhirst.com.au> wrote:
> On 16/09/2010 12:06pm, Nick wrote:
>
> > Yes and no. I'm familiar with the term but haven't read up on it
> > enough to wrap my head around installing it and getting it setup. Is
> > it absolutely essential to get used to working with virtualenv if you
> > plan to develop on a Windows machine but your production servers are
> > running *nix?
>
> I do that and it works ok <disclaimer> but I don't know whether it is
> best practice.</disclaimer>
>
> I don't use virtualenv although it seems like a good way to segregate
> stuff for different python versions. I don't currently have a need for
> it so it is on the future list for me. Back to your "Is it absolutely
> essential" question ...
>
> No.
>
> I always install third party apps with "setup.py install" which puts
> them in the correct respective site-packages directories on both Windows
> and Linux and they "just work".
>
> I use my own source directory on Windows for my own django apps and they
> all play together on both platforms without much current thought on my part.
>
> The trick is to automate delivery of your own source to the linux web
> server directory you have chosen. I think it would complicate things
> incredibly to try and manage third party source delivery at the same time.
>
> I use subversion hook scripts to trigger svn export into the chosen
> directory every time I commit a source change on Windows. At this point
> I must say the linux machine I'm using is a staging server not a
> production server. It doesn't matter if something goes belly-up. In fact
> when the unit tests fail it is usually because I haven't installed or
> updated a third party package on the linux machine.
>
> Finally, I put a shortcut to the site-packages directory in the same
> directory as my settings.py file so I can visit third-party source
> whenever I feel like it.
>
> hth
>
> Mike
>
>
>
>
>
> > On Sep 15, 9:50 pm, "nick.l...@gmail.com"<nick.l...@gmail.com>  wrote:
> >> Nick,
>
> >> yes...and no.
>
> >> Have you looked at using Virtualenv?http://pypi.python.org/pypi/virtualenv
>
> >> On Thu, Sep 16, 2010 at 1:44 AM, Nick<iregisteratwebsiteswitht...@gmail.com
>
> >>> wrote:
> >>> Let's say you have Python installed to D:/dev/python2.6
>
> >>> Is it wise/common practice to put django and other third party python
> >>> libraries (like pygments or markdown) in the python2.6/Lib/site-
> >>> packages/ directory while putting your actual projects in a completely
> >>> separate location off the python path?
>
> >>> I ask because I want to get used to placing my python install, django
> >>> install, third party python libs, django projects, and django
> >>> applications in a familiar/standard path structure so migrating to
> >>> various web hosts will be as painless as possible plus well organized.
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups
> >>> "Django users" group.
> >>> To post to this group, send email to django-us...@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@google­
> >>>  groups.com>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/django-users?hl=en.
>
> >> --
> >> Guadajuko! Vamos a correr!
> >>   -"Cool! we are going to run!"

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to