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

Reply via email to