On Sat, Dec 26, 2009 at 08:13, Michael Jenkinson <[email protected]>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

--

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


Reply via email to