only short reply:
1.) Don't use distro packages for python packages
2.) Instal some libraries you will need (libmysqlclient-dev, python-dev,
build-essential, python-setuptools, ...)
3.) Install virtualenv (either using distro package or easy_install/pip if
you want/need newer one), create new empty virtual environment (I am using
~/.virtualenv for all environments):
virtualenv --no-site-packages ~/.virtualenv/django-1.2
4.) switch into that environment:
source ~/.virtualenv/django-1.2/bin/activate
5.) install python packages using pip or easy_install you will need:
pip install "django=1.2.5"
pip install mysql-python
pip install south
...
6.) start your project:
django-admin.py startproject someproject
and so on.
Remember, everytimes you want to work with that environment, you need to
switch into it (uning source path/bin/activate). Many people beginnning
with virtualenv forget this :)
Regards,
Martin
On Sat, 28 May 2011 04:27:42 +0200, DogGoesOut
<elizabethfalkner09@gmail.com> wrote:
> Hey, can anyone help me out? For some reason, django is not as easy as
> it would appear to install on my ubuntu laptop. Here are the stats:
> I'm running Ubuntu 10.10 Maverick Meerkat, and have Python 2.6
> installed already,
>
> So far, I've installed a subversion successfully, and am attempting to
> create a symbolic link from django to python:
>
> ln: creating symbolic link `/usr/local/bin/django-admin.py': File
> exists
> kyle@kyle-HP-Compaq-nx9420-GU760US-ABA:~$ cd ~/sites/dev
> bash: cd: /home/kyle/sites/dev: No such file or directory
> kyle@kyle-HP-Compaq-nx9420-GU760US-ABA:~$ python /path/to/django-trunk/
> django/bin/django-admin.py startproject djangoblog
> python: can't open file '/path/to/django-trunk/django/bin/django-
> admin.py': [Errno 2] No such file or directory
> kyle@kyle-HP-Compaq-nx9420-GU760US-ABA:~$ python /usr/local/bin/django-
> admin.py startproject djangoblog
> python: can't open file '/usr/local/bin/django-admin.py': [Errno 2] No
> such file or directory
> kyle@kyle-HP-Compaq-nx9420-GU760US-ABA:~$
>
> Ignoring the middle (which included a typo or two) there's a statement
> at the end of this code that makes no sense to me. The third line up
> from the bottom, calls the file from the first line
>
> /usr/local/bin/django-admin.py
>
> In the first line, this file is stated to exist. In the error message,
> the computer states that it can't open the same file, and that no such
> file or directory exists. This seems self-contradictory, and I'm not
> sure where to go from here, as my python interpreter cannot understand
> django yet. Any advice would be very much appreciated!
>
> Thanks!
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment