Sir thanks very much indeed , now its works......... thanks.
On Jun 20, 11:37 pm, Jagdeep Singh Malhi <singh.malh...@gmail.com> wrote: > On Jun 20, 5:00 pm, Graham Dumpleton <graham.dumple...@gmail.com> > wrote: > > > On Jun 20, 9:17 pm, Jagdeep Singh Malhi <singh.malh...@gmail.com> > > wrote: > > > > On Jun 20, 3:08 pm, Graham Dumpleton <graham.dumple...@gmail.com> > > > wrote: > > > > > On Jun 20, 7:34 pm, Jagdeep Singh Malhi <singh.malh...@gmail.com> > > > > wrote: > > > > > > 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" / > > > > yes these links are shown in source file > > > > > In your browser, when you request the admin page which isn't showing > > > > the styling, use your browser to view the source code for that page as > > > > the browser received it. This may be under view menu or you can right > > > > click on page to get context menu and it will show option for viewing > > > > source code. > > > > > Did you validate that the /media/ URL shows those directories? > > > > /media is not show those directories > > > its display the files of my operating systems files under media > > > directriy me using ubuntu 10.04 > > > What do you mean by that? Post what the browser shows when you access: > > > /media/ > > > on your site from your browser. Eg. access: > > > http://localhost/media/ > > > if access it via localhost. > > output on browser:- > Index of /media > Name Last modified Size Description > Parent Directory - > css/ 08-Jun-2010 22:18 - > img/ 08-Jun-2010 22:18 - > js/ 08-Jun-2010 22:18 - > Apache/2.2.14 (Ubuntu) Server at localhost Port 80 > > > Note that the trailing slash is important. > > > There is no point just saying that it doesn't show what I suggest > > should be seen, post what it does show instead. > > > Also post the output of running: > > > ls -las /usr/local/lib/python2.6/dist-packages/django/contrib/admin/ > > media/ > > output of this :- > drwxr-sr-x 5 root staff 4096 2010-06-08 22:18 . > 4 drwxr-sr-x 6 root staff 4096 2010-06-08 22:18 .. > 4 drwxr-sr-x 2 root staff 4096 2010-06-08 22:18 css > 4 drwxr-sr-x 4 root staff 4096 2010-06-08 22:18 img > 4 drwxr-sr-x 3 root staff 4096 2010-06-08 22:18 js > > > > > Please supply these bits of information, otherwise it is just getting > > too hard to help you. May as well consult a tarot reader if you aren't > > going to provide what is asked or offer up any other information which > > may be relevant to working out what you have done wrong. > > > > > Did you set those values in settings file back to their default? > > > > setting is :- > > > MEDIA_ROOT = '/home/your_name/mysite/media/' > > > > MEDIA_URL = 'http://localhost/media' > > > > ADMIN_MEDIA_PREFIX = '/media/' > > > > is this correct or not ??? > > > As I pointed out before, the defaults should work without you having > > changed them. What you have there isn't the defaults I get in settings > > file when I generate a fresh Django site so you must have changed > > them. > > > Set them back to what I said in other email for now. Ie., > > > MEDIA_ROOT = '' > > MEDIA_URL = '' > > ADMIN_MEDIA_PREFIX = '/media/' > > > Graham > > Now , I set default value . > > > > > > > Graham > > > > > > 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.