mmmmm

3 views
Skip to first unread message

Michael Jenkinson

unread,
Dec 25, 2009, 3:57:51 PM12/25/09
to django...@googlegroups.com
Hi

Please excuse my ignorance before we start. Ive had django for a week or so and am getting absolutely nowhere. I'm using Ubuntu 9.10 and installed Django via apt-get but the pathing is haywire. Ive copied all the files into usr/lib/python2.6/installed_packages but it still doesnt see it. I am missing something or doing something wrong but for the life of me I cant see what. Can you help before I give up and go back to something that works like c++ or php or council workmen or whatever.

Cheers


Michael


sh...@milochik.com

unread,
Dec 25, 2009, 4:40:11 PM12/25/09
to django...@googlegroups.com
I'm glad that, at least according to your subject line, you're finding
Django so tasty.

Here's everything you need to get started:
http://docs.djangoproject.com/en/1.1/intro/tutorial01/#intro-tutorial01

If you have a specific problem that you can describe, including error
messages if applicable, please post it when you hit a wall.

Shawn

Daniel Roseman

unread,
Dec 25, 2009, 6:17:04 PM12/25/09
to Django users

Firstly, where did it install Django and why do you think that is
'haywire'? Secondly, what makes you think installed_packages is the
right place for anything to go? That's not a standard directory even
in Debian-based distros. Thirdly, have you tried reading any of the
documentation - such as http://docs.djangoproject.com/en/dev/topics/install/#install-the-django-code
?
--
DR.

Michael Jenkinson

unread,
Dec 25, 2009, 8:26:49 PM12/25/09
to django...@googlegroups.com
hi

put the complte path to it and it worked. guess the path isnt set right somewhere. thanks anyway

when the tutorial says one thing and it doesnt work one starts to wonder why. hence the original query. sorry if I got you frustrated too, it wasnt my intention.

Michael

--

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.



Michael Jenkinson

unread,
Dec 25, 2009, 8:32:57 PM12/25/09
to django...@googlegroups.com
Hi

Yes I like the idea of both python and django, if only that django rheinhart played at a club in Warrington in about 1967, I got in when I shouldnt have, 17 instead of 21. he was just brilliant.
Ive been looking for a truly RAD system for web pages and this seems to fit the bill. Sometimes we each have blindspots, django-admin it seems is one of mine.

(Im also 59, senile, probably demented, certainly not 'normal' and its 130am and Im still here playing. Id guess you could say Im an anorak or modern day trainspotter or ....)

Have fun and live a life that gives you lots of memories to pass on to others.


Cheers


michael

Shawn

--

Karen Tracey

unread,
Dec 25, 2009, 10:46:32 PM12/25/09
to django...@googlegroups.com
On Fri, Dec 25, 2009 at 8:26 PM, Michael Jenkinson <mikeje...@yahoo.com> wrote:
hi

put the complte path to it and it worked. guess the path isnt set right somewhere. thanks anyway

when the tutorial says one thing and it doesnt work one starts to wonder why. hence the original query. sorry if I got you frustrated too, it wasnt my intention.


If your hope is to get help, you'll have better luck here in the future if you are more specific about the problem you are having, exactly.  "The pathing is haywire" does not give anyone here much to work with. What path?  System path to regular executables? Python path? 

Even here you don't mention the actual command you were having trouble with, but I'm guessing it is django-admin.py.  If so, the problem is not that the the path isn't set right but rather that Debian (upon which Ubuntu is based), for its packages, apparently prohibits scripts installed in the path from including the script extension in their name.  Thus instead of installing django-admin.py somewhere in the path, the package-installed version of Django has something named simply django-admin.

That packaging change is unfortunate since it causes problems for people using a package install trying to follow the online docs. Perhaps the online doc could mention the possibility that a package-installed version might have done something like this, though it's a bit unattractive to start down this path.  As it is the online doc describes what Django itself ships and does not attempt to account for whatever changes packagers may have made.

Karen

Michael Jenkinson

unread,
Dec 26, 2009, 1:13:03 AM12/26/09
to django...@googlegroups.com
Hi

Thank you so much for taking the time to reply.

When you are as new to both python and django as I am you dont always see the wood for the trees. Yes I still know I have a problem with how the paths are setup, system paths that is that relate to python in general and to django, what I do about it at this moment Im not sure. I may end up reinstalling ubuntu completely because I think it is something that I have done that has caused the problem. I do like how it (python/django) works when it does work but then I do something and the django bit stops. I do think that my 60yo brain needs the exercise though so will persevere. Perhaps I will avoid dementia for an extra 6 months because of this but then the stress probably takes off a year.

Thank you so much for your time and patience. Sorry for being vague. Happy to be still awake at 6:15 in the morning trying to get this to work. Its a while since had an all night session!!!

Cheers


Michael


From: Karen Tracey <kmtr...@gmail.com>
To: django...@googlegroups.com
Sent: Sat, December 26, 2009 3:46:32 AM
Subject: Re: mmmmm

Shawn Milochik

unread,
Dec 26, 2009, 1:50:15 AM12/26/09
to django...@googlegroups.com
Michael,

I think what Karen was referring to was this:
http://catb.org/~esr/faqs/smart-questions.html

It's not how much or how little you know. It's how you ask the question. There are a lot of people on this list who will willing answer the most elementary question, if the request is made in a way that shows that you're not asking people to be mind readers or do your work for you.

Since you said you're also new to Python, here's there mailing list:
http://mail.python.org/mailman/listinfo/python-list

Be conscious of the fact that they (as well as any group on the Internet) will have a low tolerance for vague and lazy questions and dozens or hundreds of people who will help you if you ask the question properly.

Shawn

Adrian Maier

unread,
Dec 26, 2009, 3:39:57 PM12/26/09
to django...@googlegroups.com
On Sat, Dec 26, 2009 at 08:13, Michael Jenkinson <mikeje...@yahoo.com> wrote:
Hi

Thank you so much for taking the time to reply.

When you are as new to both python and django as I am you dont always see the wood for the trees. Yes I still know I have a problem with how the paths are setup, system paths that is that relate to python in general and to django, what I do about it at this moment Im not sure. I may end up reinstalling ubuntu completely because I think it is something that I have done that has caused the problem. I do like how it (python/django) works when it does work but then I do something and the django bit stops. I do think that my 60yo brain needs the exercise though so will persevere. Perhaps I will avoid dementia for an extra 6 months because of this but then the stress probably takes off a year.

Thank you so much for your time and patience. Sorry for being vague. Happy to be still awake at 6:15 in the morning trying to get this to work. Its a while since had an all night session!!!


Michael,

Reinstalling the whole operating system sounds like a very extreme solution.

Firstly, does the following work or not ?
  $ python
  >>> import django
  >>> print django.VERSION
  (1, 1, 0, 'beta', 1)


Secondly, are you absolutely sure that you have installed _only_ the 'django' ubuntu package?  I'm asking because you have mentioned that you've copied some files. It is strange that you are trying to do such a thing  . When installing a package with apt-get the files are copied to the right directories, and you are not supposed to do anything with them.

Thirdly,  are you absolutely sure that you didn't in fact try to install django 'by hand'  which means "download a django archive from the website ,  unarchive it yourself and then install it as a python module"   ?

I have experienced a broken django installation when the ubuntu package was installed,   and then someone has also tried to install django 'by hand'.  

I'd suggest you to :
- uninstall the django ubuntu package
- get the django  tar.gz  from the Django website
- unarchive it
- (as root)  execute :   python  setup.py   install
- verify that the django module is installed  (  start python  , and then see if 'import django' works   )

If i remember correctly, the  django-admin.py  is copied to /usr/local/bin which is
not in the default PATH.   So for conveninience you might want to add /usr/local/bin
to your PATH .



Good luck,
Adrian Maier

Michael Jenkinson

unread,
Dec 26, 2009, 9:19:41 PM12/26/09
to django...@googlegroups.com
hi

Thanks for this. As it happens Ive had a hard drive go so installing again is now the only option. I will be much more careful about how I install stuff. I guess thats the peril of using older stuff but I cant afford new.

This pc (not the one with a hd failure) has fedora 12 on it. Ive just been looking at how it has installed python. I might give downloading django onto here a go and see if its any different.

Im sorry if I was vague before but extremely grateful for all of the help.


Cheers


Michael


From: Adrian Maier <adrian...@gmail.com>
To: django...@googlegroups.com
Sent: Sat, December 26, 2009 8:39:57 PM
Subject: Re: mmmmm

On Sat, Dec 26, 2009 at 08:13, Michael Jenkinson <mikeje...@yahoo.com> wrote:
Hi

Thank you so much for taking the time to reply.

When you are as new to both python and django as I am you dont always see the wood for the trees. Yes I still know I have a problem with how the paths are setup, system paths that is that relate to python in general and to django, what I do about it at this moment Im not sure. I may end up reinstalling ubuntu completely because I think it is something that I have done that has caused the problem. I do like how it (python/django) works when it does work but then I do something and the django bit stops. I do think that my 60yo brain needs the exercise though so will persevere. Perhaps I will avoid dementia for an extra 6 months because of this but then the stress probably takes off a year.

Thank you so much for your time and patience. Sorry for being vague. Happy to be still awake at 6:15 in the morning trying to get this to work. Its a while since had an all night session!!!


Michael,

Reinstalling the whole operating system sounds like a very extreme solution.

Firstly, does the following work or not ?
  $ python
  >>> import django
  >>> print django.VERSION
  (1, 1, 0, 'beta', 1)


Secondly, are you absolutely sure that you have installed _only_ the 'django' ubuntu package?  I'm asking because you have mentioned that you've copied some files. It is strange that you are trying to do such a thing  . When installing a package with apt-get the files are copied to the right directories, and you are not supposed to do anything with them.

Thirdly,  are you absolutely sure that you didn't in fact try to install django 'by hand'  which means "download a django archive from the website ,  unarchive it yourself and then install it as a python module"   ?

I have experienced a broken django installation when the ubuntu package was installed,   and then someone has also tried to install django 'by hand'.  

I'd suggest you to :
- uninstall the django ubuntu package- verify that the django module is installed  (  start python  , and then see if 'import django' works   )

- get the django  tar.gz  from the Django website
- unarchive it
- (as root)  execute :   python  setup.py   install
- verify that the django module is installed  (  start python  , and then see if 'import django' works   )- verify that the django module is installed  (  start python  , and then see if 'import django' works   )


If i remember correctly, the  django-admin.py  is copied to /usr/local/bin which is
not in the default PATH.   So for conveninience you might want to add /usr/local/bin
to your PATH .



Good luck,
Adrian Maier
Reply all
Reply to author
Forward
0 new messages