[omaha] Load and static tag alternates for Jinja2!
Varun Mehta
varun.sagi20 at gmail.com
Wed Jan 14 02:24:36 CET 2015
Thanks for all the inputs WES.
Problem resolved. I am django-jinja as connector and it provides an in-built support for static file loading with static(). I missed it yesterday.
Varun
On Jan 13, 2015, at 1:22 AM, Wes Turner <wes.turner at gmail.com> wrote:
> https://webassets.readthedocs.org/en/latest/
>
> http://www.fanstatic.org/en/latest/
>
> http://fileconveyor.org (arguably, for production, there should be no need
> to do asset compression or CDN hosting in a template, for every request)
> On Jan 13, 2015 1:16 AM, "Wes Turner" <wes.turner at gmail.com> wrote:
>
>> I believe webassets and fanstatic have some form of template support?
>>
>>
>> http://www.reddit.com/r/Python/comments/1quqy7/my_favorite_database_is_the_network/cdh6nix
>> On Jan 13, 2015 12:50 AM, "Varun Mehta" <varun.sagi20 at gmail.com> wrote:
>>
>>> https://docs.djangoproject.com/en/1.7/howto/static-files/
>>> This explains static file (css, images etc) management in django
>>> templates using load & static tags.
>>>
>>> I am using jinja2. Could not find similar solution?
>>>
>>> Varun
>>>
>>> On Jan 13, 2015, at 12:45 AM, Wes Turner <wes.turner at gmail.com> wrote:
>>>
>>>> Do you have a few links to the documentation for the features you are
>>>> referring to?
>>>> On Jan 13, 2015 12:35 AM, "Varun Mehta" <varun.sagi20 at gmail.com> wrote:
>>>>
>>>>> None of the link answers my questions.
>>>>> I do know how to load jinja2 in django.
>>>>> The problem revolves around load and static tag.
>>>>>
>>>>> In flask, they have alternative of url_for().
>>>>> Looking for a solution in django.
>>>>>
>>>>> -Varun
>>>>>
>>>>> On Jan 13, 2015, at 12:07 AM, Wes Turner <wes.turner at gmail.com> wrote:
>>>>>
>>>>>> https://docs.djangoproject.com/en/1.7/howto/custom-template-tags/
>>>>>>
>>>>>>
>>>>>
>>> https://docs.djangoproject.com/en/1.7/ref/contrib/staticfiles/#std:templatetag-staticfiles-static
>>>>>>
>>>>>> http://jinja.pocoo.org/docs/dev/switching/#django
>>>>>>
>>>>>> http://jinja.pocoo.org/docs/dev/api/#jinja2.Environment.globals
>>>>>>
>>>>>> http://niwibe.github.io/django-jinja/#_django_pipeline
>>>>>>
>>>>>> ...
>>>>>
>>> https://www.indiegogo.com/projects/multiple-template-engines-for-django
>>>>>> On Jan 12, 2015 11:20 PM, "Varun Mehta" <varun.sagi20 at gmail.com>
>>> wrote:
>>>>>>
>>>>>>> I am looking for alternatives to load and static template tags of
>>> django
>>>>>>> in Jinja2.
>>>>>>> Please help.
>>>>>>>
>>>>>>> -Varun
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Omaha Python Users Group mailing list
>>>>>>> Omaha at python.org
>>>>>>> https://mail.python.org/mailman/listinfo/omaha
>>>>>>> http://www.OmahaPython.org
>>>>>>>
>>>>>> _______________________________________________
>>>>>> Omaha Python Users Group mailing list
>>>>>> Omaha at python.org
>>>>>> https://mail.python.org/mailman/listinfo/omaha
>>>>>> http://www.OmahaPython.org
>>>>>
>>>>> _______________________________________________
>>>>> Omaha Python Users Group mailing list
>>>>> Omaha at python.org
>>>>> https://mail.python.org/mailman/listinfo/omaha
>>>>> http://www.OmahaPython.org
>>>>>
>>>> _______________________________________________
>>>> Omaha Python Users Group mailing list
>>>> Omaha at python.org
>>>> https://mail.python.org/mailman/listinfo/omaha
>>>> http://www.OmahaPython.org
>>>
>>> _______________________________________________
>>> Omaha Python Users Group mailing list
>>> Omaha at python.org
>>> https://mail.python.org/mailman/listinfo/omaha
>>> http://www.OmahaPython.org
>>>
>>
> _______________________________________________
> Omaha Python Users Group mailing list
> Omaha at python.org
> https://mail.python.org/mailman/listinfo/omaha
> http://www.OmahaPython.org
More information about the Omaha
mailing list