#30180: @register.inclusion_tag, Character limit occurs when rendering text,
localhost
-------------------------------------+-------------------------------------
               Reporter:  zaferclk   |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:  Template   |        Version:  2.1
  system                             |       Keywords:  inclusion_tag,
               Severity:  Normal     |  characters, limit, custom tag,
           Triage Stage:             |  localhost
  Unreviewed                         |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Hi,

 I get a character limitation when I want to render the text bu using
 @register.inclusion_tag ( custom tags )

 These character limits; 46 ( when {% for...), 62 ( using {% with... ), 117
 ( directly with text )

 When these limits are exceeded, the server is shutting down automatically
 and does not indicate any errors.

 When the number of characters is below the specified limit, before I
 reboot the server ( manage.py runserver ), then the site is running (
 127.0.0.1:8000 )


 I want to render text as long as I want, without limiting the number of
 characters.

 Can I do that? How?


 templatetags/custom_tags.py
 {{{
 @register.inclusion_tag('tags/metin_deneme.html')
 def metin_gonder(metin):
     return { 'metin': metin }
 }}}

 templates/index.html
 {{{
 {% metin_gonder 'ğüışçöÖÇŞİÜĞ Arama Yaptığınız Ürünler Fazla Olunca Ne
 Olacak Burası Sınır Mı Alt Satıra Geçti Devam Hala Mı Daha Fazl' %}<!--
 117 characters -->
 }}}

 templates/tags/metin_deneme.html
 {{{
 <h3>{{ metin }}</h3>
 }}}


 Please help me

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30180>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.0b673ca2262000537e61a92ac7eee4e5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to