Installation without root access

616 views
Skip to first unread message

orbital_fox

unread,
Feb 11, 2010, 5:32:19 AM2/11/10
to Django users
Is there a way and guides on how to install django without having root
access on a system? What are the requirements?

With regards,
Orbital Fox

Jonas Obrist

unread,
Feb 11, 2010, 8:20:21 AM2/11/10
to django...@googlegroups.com
This is possible but not very nice. I run some sites off a shared
hosting. You do need shell access though.

Jonas

Sam Lai

unread,
Feb 11, 2010, 8:52:49 PM2/11/10
to django...@googlegroups.com
On 11 February 2010 21:32, orbital_fox <orbit...@googlemail.com> wrote:
> Is there a way and guides on how to install django without having root
> access on a system? What are the requirements?

The easiest way I think is to use virtualenv, which creates a virtual
python environment in a directory that you have write access to. Do
you at least have shell access and python available?

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

James Bennett

unread,
Feb 11, 2010, 9:00:49 PM2/11/10
to django...@googlegroups.com
On Thu, Feb 11, 2010 at 4:32 AM, orbital_fox <orbit...@googlemail.com> wrote:
> Is there a way and guides on how to install django without having root
> access on a system? What are the requirements?

The single most useful thing you're going to be able to do for
yourself is go work through the standard Python tutorial, specifically
the part which covers the import path:

http://docs.python.org/tutorial/modules.html#the-module-search-path

You can put Django -- and any other Python code -- anywhere you like,
so long as you set up the import path to include the place where
you've put it.

For bonus points, have a look at the distutils manual which will tell
you how to do one-off installs of packages into a directory of your
choice:

http://docs.python.org/install/index.html#alternate-installation

Or how to configure it to *always* install Python packages in a
directory of your choice:

http://docs.python.org/install/index.html#distutils-configuration-files

--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

orbital_fox

unread,
Feb 12, 2010, 4:26:45 AM2/12/10
to Django users
I have managed to install django to a certain extend. What i did was
downloaded (wget) django to the server. Decompressed it and then the
run:
python setup.py install --home

That way the django packages were installed in my folder. It worked
for a while (import django) but now it has stopped. I think the
environmental variables have been reset.

My other problem is that when I follow the tutorial to detup the
<location /> stuff, but in an htaccess file, it doesnt recognise the
python directives?!

Any ideas there?

orbital_fox

unread,
Feb 12, 2010, 6:17:11 AM2/12/10
to Django users
OK, here are the stuff ive discovered so far.

I did the silly mistake of putting <location..> in the htaccess file..
If you are setting up a django app setting with htaccess you dont need
the <location.. > tag. Just the directives inside.

Also the Python directives are not recognised because the mod_python
is not installed/enabled.

Ill have to contact the hosting company about that (UK2.net). They
provide Ruby on Rails but not Django :/

Reply all
Reply to author
Forward
0 new messages