Widget for simple (not input) text

16 views
Skip to first unread message

Yarick Antonov

unread,
Aug 28, 2014, 7:51:48 PM8/28/14
to django...@googlegroups.com
Does Django (or HTML itself) contain any sort of TextField, what represent not the form for text input but simple, static not editable text?
I mean something like this: http://i.imgur.com/Nv0XN0J.png

Is it possible to have a widget for that data, or i can use simple string to do this?

Matt Gushee

unread,
Aug 28, 2014, 10:14:10 PM8/28/14
to django...@googlegroups.com
What do you want to do with this 'widget'? From your description, it
sounds like you could use a normal paragraph element -- which might
look something like this in a Django template:

<p class="TextField">{{ some_text }}</p>

Does that not meet your needs?

--
Matt Gushee
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/92f5c4d1-4d10-41cb-b34d-d9701a394493%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Yarick Antonov

unread,
Aug 28, 2014, 10:24:54 PM8/28/14
to django...@googlegroups.com
Yes. Many thanks :)
Reply all
Reply to author
Forward
0 new messages