Re: My class communication design problem.

2014-09-06 Thread Yarick Antonov
Your solution works!!! Thanks a lot!!! On Friday, September 5, 2014 10:27:30 PM UTC+4, Collin Anderson wrote: > > I'd recommend not using a custom field for this. Instead, you can do > something like: > > class ExerciseForm(forms.Form): > exercise_field = forms.CharField(widget=forms.Text

My class communication design problem.

2014-09-05 Thread Yarick Antonov
I have serious OOP design problem, and i don't know the way to solve it. *Here are two of my views:* def exercise(request): if request.method == 'GET': request.session["exercise_start"] = time() form = ExerciseForm(language = request.session["language"], dictionary = request.s

Re: How to make a widget with no history?

2014-09-01 Thread Yarick Antonov
Many thanks :) That's just what i need. On Monday, September 1, 2014 8:48:16 PM UTC+4, Collin Anderson wrote: > > You need to turn html autocomplete off. > > class CommentForm(forms.Form): > name = forms.CharField(widget=forms.TextInput(attrs={'autocomplete': > 'off'})) > > which will generat

How to make a widget with no history?

2014-08-31 Thread Yarick Antonov
For example this widget: http://i.imgur.com/ExaZt8l.png And as you can see there are the history of previous inputs. And i need to get rid of that. Meaning: i don't want any history of previous inputs to be displayed. -- You received this message because you are subscribed to the Google Groups

Re: Widget for simple (not input) text

2014-08-28 Thread Yarick Antonov
s in a Django template: > >{{ some_text }} > > Does that not meet your needs? > > -- > Matt Gushee > > On Thu, Aug 28, 2014 at 5:51 PM, Yarick Antonov > wrote: > > Does Django (or HTML itself) contain any sort of TextField, what > represent > > not the fo

Widget for simple (not input) text

2014-08-28 Thread Yarick Antonov
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? -- You r

HttpResponse methods difference

2014-08-27 Thread Yarick Antonov
What the difference between HttpResponse.Write() , HttpResponse.flush() and HttpResponse.tell()

Your further steps after tutorial?

2014-08-21 Thread Yarick Antonov
What did you did after you've completed the tutorial ? I mean, you have basic knowledge of how Django works, what was your further steps towards becoming Django expert? I'm asking that because I'm curious what actions people did to become