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.
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/
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