Re: Repost Admin Site Without Graphics

2010-11-03 Thread Robbington
So is your media stored at "" a...@h2oamr:~/django/amr/media? ""
and you MEDIA_ROOT = '/home/amr/django/media' ?

Rob


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



Re: Repost Admin Site Without Graphics

2010-11-03 Thread octopusgrabbus
Here is my symbolic link to what I believe is the admin media:

media -> /usr/local/lib/python2.6/site-packages/django/contrib/admin/
media

Here's what's in that directory:

a...@h2oamr:~/django/amr$ ls -lH media
total 12
drwxr-xr-x 2 root root 4096 Sep 15 13:54 css
drwxr-xr-x 4 root root 4096 Sep 15 13:54 img
drwxr-xr-x 3 root root 4096 Sep 15 13:54 js

and these directories appear to contain the admin media.

Here's what's in settings.py

# Absolute path to the directory that holds media.
# Example: "/home/media/media.lawrence.com/"
MEDIA_ROOT = '/home/amr/django/media'

# URL that handles the media served from MEDIA_ROOT. Make sure to use
a
# trailing slash if there is a path component (optional in other
cases).
# Examples: "http://media.lawrence.com;, "http://example.com/media/;
MEDIA_URL = 'media/'

# URL prefix for admin media -- CSS, JavaScript and images. Make sure
to use a
# trailing slash.
# Examples: "http://foo.com/media/;, "/media/".
ADMIN_MEDIA_PREFIX = '/media/'


I'm missing something, but don't get what I'm missing.
tnx
cmn

On Nov 2, 3:20 pm, James  wrote:
> So your admin media (js, css, images, etc) isn't working?
>
> Try two things:
>
> 1. Open the source of some admin page. Look at some image, css, or js
> object. Find the path where it is pointing. Does this path makes
> sense? (Have you put it in the settings.py file?)
>
> 2. Check your site settings. If you are using django's web server, it
> will serve the admin files automatically, if you are using apache or
> some other web server, you will have to specify where the admin site's
> files are, like Robbington said. Compare the path in the settings file
> to the one that is being served.
>
> ...
>
> On Tue, Nov 2, 2010 at 11:58 AM, octopusgrabbus
>
>  wrote:
> > Tried suggestions, and still do not get full graphics. Everything else
> > works. Users are displayed, and so on.
>
> > On Nov 2, 12:24 pm, octopusgrabbus  wrote:
> >> Thanks. I'll try your suggestions. I am using the phrase no graphics
> >> to mean the admin site comes up, but doesn't have all the nice
> >> background.
>
> >> On Nov 1, 3:41 pm, Robbington  wrote:
>
> >> > Hi,
>
> >> > By 'with out graphics' do you mean no css or Javascript?
>
> >> > If so you want to make sure the value for these 3 varibles are correct
> >> > as its not governed by the templates list.
>
> >> > MEDIA_ROOT = ' /var/www/django_project/media' # Where media is the
> >> > copied folder of admin media or a symbolic link if you are using
> >> > Linux.
>
> >> > MEDIA_URL = 'media/'
>
> >> > ADMIN_MEDIA_PREFIX = '/media/'
>
> >> > Rob

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



Re: Repost Admin Site Without Graphics

2010-11-02 Thread James
So your admin media (js, css, images, etc) isn't working?

Try two things:

1. Open the source of some admin page. Look at some image, css, or js
object. Find the path where it is pointing. Does this path makes
sense? (Have you put it in the settings.py file?)

2. Check your site settings. If you are using django's web server, it
will serve the admin files automatically, if you are using apache or
some other web server, you will have to specify where the admin site's
files are, like Robbington said. Compare the path in the settings file
to the one that is being served.

...

On Tue, Nov 2, 2010 at 11:58 AM, octopusgrabbus
 wrote:
> Tried suggestions, and still do not get full graphics. Everything else
> works. Users are displayed, and so on.
>
> On Nov 2, 12:24 pm, octopusgrabbus  wrote:
>> Thanks. I'll try your suggestions. I am using the phrase no graphics
>> to mean the admin site comes up, but doesn't have all the nice
>> background.
>>
>> On Nov 1, 3:41 pm, Robbington  wrote:
>>
>> > Hi,
>>
>> > By 'with out graphics' do you mean no css or Javascript?
>>
>> > If so you want to make sure the value for these 3 varibles are correct
>> > as its not governed by the templates list.
>>
>> > MEDIA_ROOT = ' /var/www/django_project/media' # Where media is the
>> > copied folder of admin media or a symbolic link if you are using
>> > Linux.
>>
>> > MEDIA_URL = 'media/'
>>
>> > ADMIN_MEDIA_PREFIX = '/media/'
>>
>> > Rob

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



Re: Repost Admin Site Without Graphics

2010-11-02 Thread octopusgrabbus
Tried suggestions, and still do not get full graphics. Everything else
works. Users are displayed, and so on.

On Nov 2, 12:24 pm, octopusgrabbus  wrote:
> Thanks. I'll try your suggestions. I am using the phrase no graphics
> to mean the admin site comes up, but doesn't have all the nice
> background.
>
> On Nov 1, 3:41 pm, Robbington  wrote:
>
> > Hi,
>
> > By 'with out graphics' do you mean no css or Javascript?
>
> > If so you want to make sure the value for these 3 varibles are correct
> > as its not governed by the templates list.
>
> > MEDIA_ROOT = ' /var/www/django_project/media' # Where media is the
> > copied folder of admin media or a symbolic link if you are using
> > Linux.
>
> > MEDIA_URL = 'media/'
>
> > ADMIN_MEDIA_PREFIX = '/media/'
>
> > Rob

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



Re: Repost Admin Site Without Graphics

2010-11-02 Thread octopusgrabbus
Thanks. I'll try your suggestions. I am using the phrase no graphics
to mean the admin site comes up, but doesn't have all the nice
background.

On Nov 1, 3:41 pm, Robbington  wrote:
> Hi,
>
> By 'with out graphics' do you mean no css or Javascript?
>
> If so you want to make sure the value for these 3 varibles are correct
> as its not governed by the templates list.
>
> MEDIA_ROOT = ' /var/www/django_project/media' # Where media is the
> copied folder of admin media or a symbolic link if you are using
> Linux.
>
> MEDIA_URL = 'media/'
>
> ADMIN_MEDIA_PREFIX = '/media/'
>
> Rob

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



Re: Repost Admin Site Without Graphics

2010-11-01 Thread Robbington
Hi,

By 'with out graphics' do you mean no css or Javascript?

If so you want to make sure the value for these 3 varibles are correct
as its not governed by the templates list.

MEDIA_ROOT = ' /var/www/django_project/media' # Where media is the
copied folder of admin media or a symbolic link if you are using
Linux.

MEDIA_URL = 'media/'

ADMIN_MEDIA_PREFIX = '/media/'

Rob

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