Hi Diego,

Thanks for your suggestion - I had looked in the logs but not hard
enough it would seem!

I think I've tracked the problem down... for some reason my models.py
files sometimes can't complete an import (this was in the logs, I have
no idea why it fails however) and because of this, the model doesn't
show up in the admin homepage. The related content still shows in the
front end of the site though. I'm a bit confused, but I've refactored
the code so the offending import isn't required, and so far so good.

Greg



2009/11/5 Diego Ucha <[email protected]>:
>
> Hello Greg,
>
> What does Apache writes in his log when you try to access the admin
> when it is unreachable?
>
> []s,
> Diego Ucha
> http://www.scientificcircle.com/
>
> On 1 nov, 20:52, Greg <[email protected]> wrote:
>> Hi all,
>>
>> I have a very strange problem with one of my django sites - when I
>> start apache, everything works fine, but after a while, all of my site-
>> specific apps will stop showing in the admin site. Library apps and
>> django's built in apps are still there. Does anyone have any ideas as
>> to why this might happen?
>>
>> It seems like a path issue, but I have no idea why it works at the
>> start and then dies for no apparent reason down the track.
>>
>> I'm running it via mod_wsgi, on webfaction. In my wsgi file, I'm
>> setting the python path like so:
>>
>>
>>
>> > import os
>> > import sys
>>
>> > for directory in [
>> >     '/PATH/django',
>> >     '/PATH/django/library',
>> >     '/PATH/django/nzmusic',
>> >     '/PATH/django/lib'
>> > ]:
>> >     if not directory in sys.path:
>> >         sys.path.insert(0, directory)
>>
>> > from django.core.handlers.wsgi import WSGIHandler
>>
>> > os.environ['DJANGO_SETTINGS_MODULE'] = 'nzmusic.settings'
>> > os.environ['LD_LIBRARY_PATH'] = '/PATH/lib'
>> > application = WSGIHandler()
>>
>> Thanks,
>> Greg
> >
>



-- 
http://gregbrown.co.nz/

--~--~---------~--~----~------------~-------~--~----~
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