On Wed, Apr 9, 2008 at 6:01 PM, mw <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I'm having problems with my installation of django on OS X leopard.  I
> followed the manual for the installation and installed Django from the
> svn repository.
>

Exactly, precisely, to the letter what you did to install would be helpful
to know here.  This problem kept intermittently getting reported on Windows
until it was finally tracked down to a difference in behavior depending on
whether one issued the command "python setup.py install" or just "setup.py
install".

Now I've seen it reported a few times on Leopard but I don't have a Leopard
(or any Mac) machine to test on so I can't determine if its the same problem
(which should be fixed in current SVN) or a different one.  I'm suspecting a
different one since it does keep getting reported intermittently for
Leopard, and you say you installed from SVN so I'd expect you got a fairly
recent version which should already have the fix mentioned above.


> Some things seem to be working while others do not.  I have reached
> the point in the tutorial where I am supposed to access the admin page
> for the site.  Up until this point, everything has worked well.
>
> Unfortunately, the admin site just displays a page with an exception
> that the template cannot be found.  Since I'm not doing anything
> fancy, and  I have been trying to follow the tutorial as much as
> possible, I'm pretty sure that I must have simply missed something or
> done symlinks incorrectly or something like that.


Did you actually create symlinks to install?  I'm having a hard time
figuring out how you could hit this problem using the symlink install method
instead of setup.py.


> Is anyone on the list knowledgeable enough about OS X and Django to
> help me out?  I'm OK with just deleting the install and starting over
> again, but being new to OS X and Django, I'm not even sure where
> everything is to delete and start over.  (What symlinks I need to
> delete, etc)
>

From
http://www.djangoproject.com/documentation/install/#remove-any-old-versions-of-django,
a command  to locate your  Python's site-packages directory is:

python -c "from distutils.sysconfig import get_python_lib; print
get_python_lib()"

Django is installed under that directory in a tree named 'django'.  Given
the error you are seeing, it would seem that django tree is missing the
contrib/admin/templates (and probably contrib/admin/media) trees underneath
it.  You could just delete the existing django tree here and try
re-installing, but it would be nice to figure out how it is happening that
Leopard installs sometimes wind up missing the admin templates.

Karen

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to