Re: The admin interface - this used to work?

2009-08-18 Thread Marek Palatinus

>  1. I have moved to the production server, and django is invoked with
> apache & mod_wsgi (previously used the dev server).

When using dev server, django serve all admin static files for you. Im
not absolutely sure, but when you switch from dev server to another
(im using fastcgi), you have to configure webserver to serve static
files instead of django _OR_ configure django to serve static files
(which have performance impact).

I solved the same issue before few days and because Im still in dev
phase, I added this line to urls.py to let django serve my static
files:
url(r'^admin-media/(?P.*)$', 'django.views.static.serve',
{'document_root': '/opt/django-1.1/django/contrib/admin/media'}),

You have to change admin-media to your MEDIA PATH and document root to
place, where you have admin media files.

Hope this helps.

Regards,
Marek

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: The admin interface - this used to work?

2009-08-18 Thread Sean Kemplay

I had a similar problem after updating the django version.  I had custom
admin templates based on the previous version.  Copying the latest
versions accross fixed it for me.

Regards,
Sean

On Tue, 2009-08-18 at 07:18 -0700, Joakim Hove wrote:
> Hello,
> 
> I am slowly building up a site with django - it feels very good.
> 
> About two months ago I tried the admin interface; with nearly zero
> effort (basically uncomment a couple of lines from the default files)
> I got a very nice and functional interface up and running - great!
> 
> Now I have done some changes, and can not get the interface to work
> any longer. What I have done is:
> 
>   1. I have moved to the production server, and django is invoked with
> apache & mod_wsgi (previously used the dev server).
>   2. I have upgraded django to the latest svn release (I had latest
> svn in june as well).
>   3. I have not installed any admin.py files.
> 
> When I now go to the admin url I can log in with the django super user
> account, but:
> 
>   1. The interface is damn basic - maybe some stylesheets / templates
> are missing?
>   2. The interface does not seem to contain any information about my
> site anymore.
> 
> Any tips?
> 
> Joakim
> 
> > 


--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---