in which file i see these lines . <link rel="stylesheet" type="text/css" href="/media/css/base.css" /> <link rel="stylesheet" type="text/css" href="/media/css/login.css" /
On Jun 20, 5:25 am, Graham Dumpleton <graham.dumple...@gmail.com> wrote: > On Jun 20, 3:06 am, Jagdeep Singh Malhi <singh.malh...@gmail.com> > wrote: > > > now my httpd.conf file is :- > > > Alias /media/ /usr/local/lib/python2.6/dist-packages/django/contrib/ > > admin/media/ > > > <Directory /usr/local/lib/python2.6/dist-packages/django/contrib/admin/ > > media/> > > Order deny,allow > > Allow from all > > </Directory> > > Change this to: > > <Directory /usr/local/lib/python2.6/dist-packages/django/contrib/ > admin/media/> > Options Indexes > Order deny,allow > Allow from all > </Directory> > > Then access the URL: > > /media/ > > on your web server via the browser. You should get a response > something like: > > Index of /media > > Name Last modified Size Description > Parent Directory - > css/ 09-Jun-2010 11:46 - > img/ 09-Jun-2010 11:46 - > js/ 09-Jun-2010 11:46 - > > If you aren't, then that isn't where the media files are or directory > is not accessible to Apache user for some reason. > > Then view the source of the response when access Django admin page. > You should see something like: > > <link rel="stylesheet" type="text/css" href="/media/css/base.css" /> > <link rel="stylesheet" type="text/css" href="/media/css/login.css" / > > > > If you don't see the href link starting with '/media', then you have > fiddled the default settings in your Django settings.py to something > incompatible. The defaults are: > > MEDIA_ROOT = '' > MEDIA_URL = '' > ADMIN_MEDIA_PREFIX = '/media/' > > And if left untouched everything should work where media mounted at / > media in Apache. > > Graham > > > WSGIScriptAlias / /home/jagdeep/mysite/apache/django.wsgi > > > <Directory /home/jagdeep/mysite/apache> > > Order allow,deny > > Allow from all > > </Directory> > > > but myhttp://localhost/admin/is not show in graphic format or not > > use css files > > > its again show in this format > > > MY admin page (http://localhost/admin/) > > > Django administration > > Welcome, Jagdeep. Change password / Log out > > Site administration > > Auth > > Groups Add Change > > Users Add Change > > Polls > > Polls Add Change > > Sites > > Sites Add Change > > > Recent Actions > > My Actions > > > but i can do sir ??? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.