Re: Novice 101 here

27 views
Skip to first unread message

song...@gmail.com

unread,
Mar 14, 2013, 8:40:21 AM3/14/13
to django...@googlegroups.com
I'll revise that to having django 1.5... not that it makes much difference to my issue I am sure.

On Thursday, March 14, 2013 11:03:40 PM UTC+13, song...@gmail.com wrote:
Mac Os X version 10.4.11 (pretty old desktop but believe it's sufficient to do the job)
Python version 2.7.3
also appear to have a version 2.3 of python on here , not sure if that's any issue.


I have a problem linking python to django

So to keep things simple I have no idea . https://www.djangoproject.com/download/   --->  "You can also download a zipped archive of the development version." This looked like the easiest way so I downloaded it here which I believe is 1.4 v 
When I go to site packages following python path - all there was in the folder was "read me"
 
I tried importing and installing it in terminal but it came up with "no module named django"

So my question is, which probably makes me look real clueless, is how do I get the right django file to cross into this path? Also, is the 'read me' file the only thing that should be in there, regardless of the the first question?


Cheers.

Shawn Milochik

unread,
Mar 14, 2013, 9:59:54 AM3/14/13
to django...@googlegroups.com
Download virtualenv and create a virtualenv by manually typing the
path to your Python 2.7 executable.

Something like this (path will probably be different on your Mac, type
"which python2.7" to find it:

/usr/bin/python2.7 virtualenv.py /home/user/my_virtualenv

Then activate your virtualenv:

source /home/user/my_virtualenv/bin/activate

Then you'll have your own Python environment just for this project.
You can install Django by just running "pip install django," plus any
other dependencies, without conflicts or requiring root access.

https://pypi.python.org/pypi/virtualenv

You'll just have to activate that virtualenv each time before you
start working on your project or running your app.

Jonathan Baker

unread,
Mar 14, 2013, 10:03:09 AM3/14/13
to django...@googlegroups.com
After you've successfully followed Shawn's directions, you can make your virtualenv experience even better by installing virtualenvrwapper: http://virtualenvwrapper.readthedocs.org/en/latest/


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.





--
Jonathan D. Baker
Developer
http://jonathandbaker.com
Reply all
Reply to author
Forward
0 new messages