Re: css issues

2011-04-09 Thread rahul jain
Sorry for the incomplete message.

This what the structure looks like now

mysite/

  media /
   css /
  file1
   js/
   js1
   img/
   img1


Settings.py

MEDIA_ROOT = ''
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/'

This is tested using development server and I have checked after deleting
cache.  But if if modify my css file, it still takes from my django
installation not from my local css file !

Please let me know what i am missing !

Thanks.

Rahul








On Sat, Apr 9, 2011 at 7:34 PM, rahul jain  wrote:

> All,
>
> I copied the media directory from django project into my site project.
> This is what it looks like now
>
> mysite/
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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: CSS Issues

2008-01-07 Thread pacman

Thanks for you help everyone I finally figured it out. I created
another virtual host to serve my media and it worked.
Looks like this:


ServerAdmin [EMAIL PROTECTED]
ServerName media.abc.net
DocumentRoot /srv/django_site/media/

Options None
AllowOverride None
Order allow,deny
allow from all



Not sure if this is the proper way of doing it but it works. Should
there be some documentation of the django website for serving media
this way?

Thanks again.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: CSS Issues

2008-01-07 Thread pacman

Ok I tried the sym link method and that doesn't seem to work. Grady,
what are you referencing from the documentation? Are you referring to
the  tags? If so I have those tossed within the virtualhost
tag. Should I make those global and not within a virtual host tag?

On Jan 7, 4:51 am, Collin Grady <[EMAIL PROTECTED]> wrote:
> As zodman is getting at, django does not map your media for you - you
> have to do that.
>
> http://www.djangoproject.com/documentation/modpython/#serving-media-f...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: CSS Issues

2008-01-07 Thread Collin Grady

As zodman is getting at, django does not map your media for you - you
have to do that.

http://www.djangoproject.com/documentation/modpython/#serving-media-files
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: CSS Issues

2008-01-06 Thread zodman

define as /srv/ your documentroot on apache virtualhost.
change 755 permission to your /srv/abc/media dir
put a symbolic link on /srv/media --> /srv/abc/media/

rember when the navegator search on django.abc.com/media/

search /media dir for /media/ location on your documentroot


William Siegrist escribió:
> bah, nevermind, I should try reading more carefully, as you're not using 
> the test server. :)
> 
> Sorry.
> 
> Might be a conflict with using /media/ for both admin and static files?
> 
> -Bill
> 
> 
> On Jan 6, 2008, at 9:12 PM, pacman wrote:
> 
>>
>> Hi, I have a strange issue with my css not loading. CSS and Images
>> seem to work fine for the admin portion of the site but when I try to
>> add my own CSS it can't seem to find it.
>>
>> my variables look as such:
>>
>> MEDIA_ROOT = '/srv/abc/media/'
>> MEDIA_URL = 'http://www.abc.net/media/'
>> ADMIN_MEDIA_PREFIX = 'http://www.abc.net/media/'
>>
>> I have a CSS link in a template file that looks like so but will not
>> load:
>>
>> > href="Http://www.abc.net/media/
>> css/styling.css" />
>> I point my browser to the link and it seems to show the default admin
>> stuff suchas the css, js, and image files but it doesn't show the
>> stuff that I have tossed into that directory such as the styling.css.
>>
>> my apache config looks like this:
>>
>> 
>>ServerName django.abc.net
>>ServerAlias django
>>ServerAdmin [EMAIL PROTECTED]
>>
>>
>>SetHandler python-program
>>PythonHandler django.core.handlers.modpython
>>SetEnv DJANGO_SETTINGS_MODULE abc.settings
>>PythonPath "['/srv','/srv/django-0.96-current','/srv/abc'] +
>> sys.path"
>>PythonDebug On
>>
>>
>>SetHandler None
>>
>> 
>>
>>
>> for some reason I have to use the www.abc.com/media/ to get to where
>> my media content is stored rather than what I assume should be like
>> this django.abc.com/media/ since I set the handler to none within the
>> virtual host tag. Anyone know why I have to use the first url as
>> apposed to using the second one?
>>
>>
>> Does anyone know why my css is not loading correctly but the admin css
>> works fine?
>> >>
> 
> 
> 
> 
> 
> William Siegrist
> Software Support Engineer
> Mac OS Forge
> http://macosforge.org/
> [EMAIL PROTECTED]
> 408 862 7337
> 
> 
> 
> 
> 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: CSS Issues

2008-01-06 Thread zodman

define as /srv/ your documentroot on apache virtualhost.
change 755 permission to your /srv/abc/media dir
put a symbolic link on /srv/media --> /srv/abc/media/

rember when the navegator search on django.abc.com/media/

search /media dir for /media/ location on your documentroot


William Siegrist escribió:
> bah, nevermind, I should try reading more carefully, as you're not using 
> the test server. :)
> 
> Sorry.
> 
> Might be a conflict with using /media/ for both admin and static files?
> 
> -Bill
> 
> 
> On Jan 6, 2008, at 9:12 PM, pacman wrote:
> 
>>
>> Hi, I have a strange issue with my css not loading. CSS and Images
>> seem to work fine for the admin portion of the site but when I try to
>> add my own CSS it can't seem to find it.
>>
>> my variables look as such:
>>
>> MEDIA_ROOT = '/srv/abc/media/'
>> MEDIA_URL = 'http://www.abc.net/media/'
>> ADMIN_MEDIA_PREFIX = 'http://www.abc.net/media/'
>>
>> I have a CSS link in a template file that looks like so but will not
>> load:
>>
>> > href="Http://www.abc.net/media/
>> css/styling.css" />
>> I point my browser to the link and it seems to show the default admin
>> stuff suchas the css, js, and image files but it doesn't show the
>> stuff that I have tossed into that directory such as the styling.css.
>>
>> my apache config looks like this:
>>
>> 
>>ServerName django.abc.net
>>ServerAlias django
>>ServerAdmin [EMAIL PROTECTED]
>>
>>
>>SetHandler python-program
>>PythonHandler django.core.handlers.modpython
>>SetEnv DJANGO_SETTINGS_MODULE abc.settings
>>PythonPath "['/srv','/srv/django-0.96-current','/srv/abc'] +
>> sys.path"
>>PythonDebug On
>>
>>
>>SetHandler None
>>
>> 
>>
>>
>> for some reason I have to use the www.abc.com/media/ to get to where
>> my media content is stored rather than what I assume should be like
>> this django.abc.com/media/ since I set the handler to none within the
>> virtual host tag. Anyone know why I have to use the first url as
>> apposed to using the second one?
>>
>>
>> Does anyone know why my css is not loading correctly but the admin css
>> works fine?
>> >>
> 
> 
> 
> 
> 
> William Siegrist
> Software Support Engineer
> Mac OS Forge
> http://macosforge.org/
> [EMAIL PROTECTED]
> 408 862 7337
> 
> 
> 
> 
> 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: CSS Issues

2008-01-06 Thread William Siegrist
bah, nevermind, I should try reading more carefully, as you're not  
using the test server. :)


Sorry.

Might be a conflict with using /media/ for both admin and static files?

-Bill


On Jan 6, 2008, at 9:12 PM, pacman wrote:



Hi, I have a strange issue with my css not loading. CSS and Images
seem to work fine for the admin portion of the site but when I try to
add my own CSS it can't seem to find it.

my variables look as such:

MEDIA_ROOT = '/srv/abc/media/'
MEDIA_URL = 'http://www.abc.net/media/'
ADMIN_MEDIA_PREFIX = 'http://www.abc.net/media/'

I have a CSS link in a template file that looks like so but will not
load:

	
css/styling.css" />
I point my browser to the link and it seems to show the default admin
stuff suchas the css, js, and image files but it doesn't show the
stuff that I have tossed into that directory such as the styling.css.

my apache config looks like this:


   ServerName django.abc.net
   ServerAlias django
   ServerAdmin [EMAIL PROTECTED]

   
   SetHandler python-program
   PythonHandler django.core.handlers.modpython
   SetEnv DJANGO_SETTINGS_MODULE abc.settings
   PythonPath "['/srv','/srv/django-0.96-current','/srv/abc'] +
sys.path"
   PythonDebug On
   
   
   SetHandler None
   



for some reason I have to use the www.abc.com/media/ to get to where
my media content is stored rather than what I assume should be like
this django.abc.com/media/ since I set the handler to none within the
virtual host tag. Anyone know why I have to use the first url as
apposed to using the second one?


Does anyone know why my css is not loading correctly but the admin css
works fine?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google  
Groups "Django users" group.

To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---







William Siegrist
Software Support Engineer
Mac OS Forge
http://macosforge.org/
[EMAIL PROTECTED]
408 862 7337







smime.p7s
Description: S/MIME cryptographic signature


Re: CSS Issues

2008-01-06 Thread William Siegrist

Have you tried this yet?

http://www.djangoproject.com/documentation/static_files/


-Bill



On Jan 6, 2008, at 9:12 PM, pacman wrote:



Hi, I have a strange issue with my css not loading. CSS and Images
seem to work fine for the admin portion of the site but when I try to
add my own CSS it can't seem to find it.

my variables look as such:

MEDIA_ROOT = '/srv/abc/media/'
MEDIA_URL = 'http://www.abc.net/media/'
ADMIN_MEDIA_PREFIX = 'http://www.abc.net/media/'

I have a CSS link in a template file that looks like so but will not
load:

	
css/styling.css" />
I point my browser to the link and it seems to show the default admin
stuff suchas the css, js, and image files but it doesn't show the
stuff that I have tossed into that directory such as the styling.css.

my apache config looks like this:


   ServerName django.abc.net
   ServerAlias django
   ServerAdmin [EMAIL PROTECTED]

   
   SetHandler python-program
   PythonHandler django.core.handlers.modpython
   SetEnv DJANGO_SETTINGS_MODULE abc.settings
   PythonPath "['/srv','/srv/django-0.96-current','/srv/abc'] +
sys.path"
   PythonDebug On
   
   
   SetHandler None
   



for some reason I have to use the www.abc.com/media/ to get to where
my media content is stored rather than what I assume should be like
this django.abc.com/media/ since I set the handler to none within the
virtual host tag. Anyone know why I have to use the first url as
apposed to using the second one?


Does anyone know why my css is not loading correctly but the admin css
works fine?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google  
Groups "Django users" group.

To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---







William Siegrist
Software Support Engineer
Mac OS Forge
http://macosforge.org/
[EMAIL PROTECTED]
408 862 7337







smime.p7s
Description: S/MIME cryptographic signature


Re: CSS issues

2006-03-11 Thread tomass

Great, works a treat!

Thanks so much

Tom


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: CSS issues

2006-03-09 Thread Steven Armstrong

On 03/09/06 11:47, tomass wrote:
> Hi Folks,
> 
> I've copied the admin css to be used for my views, but I've added in
> this custom section which is a modified version of the FILTER COLUMN
> from changelist.css:
> 
> /*  FILTER COLUMN  (CUSTOM VERSION) */
> 
> #changelist-filter-custom {position:absolute; top:0; right:0;
> width:180px; border-left:1px solid #ddd; background:#efefef; margin:0;}
> #changelist-filter-custom h2 {font-size:11px; padding:2px 5px;
> border-bottom:1px solid #ddd;}
> #changelist-filter-custom h3 {font-size:12px; margin-bottom:0;}
> #changelist-filter-custom ul
> {padding-left:0;margin-left:10px;_margin-right:-10px;}
> #changelist-filter-custom li {list-style-type:none; margin-left:0;
> padding-left:0;}
> #changelist-filter-custom a {color:#999;}
> #changelist-filter-custom a:hover {color:#036;}
> #changelist-filter-custom li.selected {border-left:5px solid #ccc;
> padding-left:5px;margin-left:-10px;}
> #changelist-filter-custom li.selected a {color:#5b80b2 !important;}
> 
> Basically what I've changed is the width in the first item (from 160px
> to 180px, as well as removing the z-index so that a custom calendar
> item pops up okay. Problem now is best illustrated with a picture:
> http://www.greenleaftech.net/members/mthaddon/django_css
> As you can see I have some trailing non-aligned part of the filtered
> list, and the last column of the table gets run into the filtered list
> at the top.
> 
> Can anyone help out with some css magic?


Search for the following rule in the file /media/css/changelists.css:

.change-list .filtered table, .change-list .filtered .paginator, 
.filtered #toolbar, .filtered div.xfull { margin-right:160px !important; 
width:auto !important; }

and change the margin-right to 180px. It's the sixt rule from the top in 
  the unmodified css file.


To get the changelist columns background to also be 180px from top to 
bottom you may have to make the following image 20px wider:
/media/img/admin/changelist-bg.gif

Don't know if that's all that needs changing. But it should get you started.

cheers
Steven



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---