Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Jan. 15, 2011 20:13:40

Mo J.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Django compressor


Hi,

Am using django compressor to compress n include my CSS files. There
are some CSS I would like to render only in certain pages, any idea
how will I include more CSS files dynamically at run time?

Sent from my iPhone

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 15, 2011 20:38:40

Casey S.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Django compressor


Assuming you mean this:https://github.com/mintchaos/django_compressorFrom their example:

{% load compress %}
{% compress css %}<link rel="stylesheet" href="/media/css/one.css" type="text/css"charset="utf-8"><style type="text/css">p { border:5px solid green;}</style><link rel="stylesheet" href="/media/css/two.css" type="text/css"charset="utf-8">{% endcompress %}This goes in your template. Make the CSS for that page a separate fileand only include it on the pages where you actually want it.Hope this helps!
-- Casey

On 01/15/2011 03:13 PM, Mo J. Al-Mughrabi wrote:Hi,

Am using django compressor to compress n include my CSS files. There
are some CSS I would like to render only in certain pages, any idea
how will I include more CSS files dynamically at run time?

Sent from my iPhone--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Jan. 15, 2011 21:39:12

Mo J.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Django compressor


Thanks a lot, exactly what I needed.

Sent from my iPhone

On Jan 15, 2011, at 11:38 PM, "Casey S. Greene" <csgre...@princeton.edu> wrote:

> Assuming you mean this:
>https://github.com/mintchaos/django_compressor>
> From their example:
>
> {% load compress %}
> {% compress css %}
> <link rel="stylesheet" href="/media/css/one.css" type="text/css"
> charset="utf-8">
> <style type="text/css">p { border:5px solid green;}</style>
> <link rel="stylesheet" href="/media/css/two.css" type="text/css"
> charset="utf-8">
> {% endcompress %}
>
> This goes in your template. Make the CSS for that page a separate file and
> only include it on the pages where you actually want it.
>
> Hope this helps!
> -- Casey
>
> On 01/15/2011 03:13 PM, Mo J. Al-Mughrabi wrote:
>> Hi,
>>
>> Am using django compressor to compress n include my CSS files. There
>> are some CSS I would like to render only in certain pages, any idea
>> how will I include more CSS files dynamically at run time?
>>
>> Sent from my iPhone
>>
>
> --
> 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.
>

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 20th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support