Re: location of CSS

2008-03-05 Thread Phillip Watts

On Wednesday 05 March 2008 13:37:58 Brian Luft wrote:
> Serving static media really has nothing to do with Django. 

Funny that css and js are considered "static media".  In the spirit
of templating they should be dynamic.  I would characterize them as
junk_patched_on_to_a_crappy_platform.  But, Oh well.

> Presumably 
> your browser is reading the CSS file and making a request back to your
> web server for the file.  You haven't told us anything about your web
> server configuration.  What path is being requested to the server for
> the image file?  How is your web server handling that request?
>
> If you're using the development server, was there anything in the
> serving static media FAQ that you did not understand?

Therein lies the problem.  I don't want to have one set of code for
the development server and another for ?.  E.g., django code which 
works for sqlite works for MySQL.

I think I will explore using the template loader more creatively and
possibly recursively to produce inline css and js.

Thanks for all help.

--~--~-~--~~~---~--~~
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: location of CSS

2008-03-04 Thread Phillip Watts

On Tuesday 04 March 2008 12:38:25 Lewis Bergman wrote:
> Where are your templates stored?

currently, here
TEMPLATE_DIRS = (
'/home/philproj/dirview/httemplates',)
but I have copies of dirview.css in that any every
other directory I could think of accessible to user phil.

And, oh yeah, no slash on the end.  That's inconsistent
with other settings like MEDIA_ROOT.


>
> Phillip Watts wrote:
> > I can't figure out where to put css files or background images referred
> > to by css.  I have:
> >
> > 
> > and
> > MEDIA_ROOT = '/home/phil/philproj/media/'
> >
> > ls -al /home/phil/philproj/media
> > total 12
> > drwxr-xr-x 2 phil phil 4096 2008-03-04 11:57 .
> > drwxr-xr-x 7 phil phil 4096 2008-03-04 12:14 ..
> > -rw-r--r-- 1 phil phil   96 2008-03-04 11:57 dirview.css
> >
> > I've tried everything? Help? Thanks
>
> 


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



location of CSS

2008-03-04 Thread Phillip Watts

I can't figure out where to put css files or background images referred to by 
css.  I have:


and
MEDIA_ROOT = '/home/phil/philproj/media/'

ls -al /home/phil/philproj/media
total 12
drwxr-xr-x 2 phil phil 4096 2008-03-04 11:57 .
drwxr-xr-x 7 phil phil 4096 2008-03-04 12:14 ..
-rw-r--r-- 1 phil phil   96 2008-03-04 11:57 dirview.css

I've tried everything? Help? Thanks

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