Hello,
I'm trying the code bellow and I'm getting unexpected results with
newforms widgets. I'm doing something wrong or is this for a ticket?
f2 and it's field should have max_length=10 not max_length=30 or maybe not?
###
from django import newforms as forms
from django.newforms.widgets impor
limodou напиша:
> You can see an example at : http://limodou.51boo.com
Your forms(I tried user registration) don't give any feedback while they
are being submited that's really, really bad usability. :)
When you do something with ajax it's really important to give feedback
to the user that some
Filipe Correia напиша:
> {% ifgreaterthan items|length list_limit %}
> See all the records.
> {% endifgreaterthan %}
>
> Using {% list_limit %} prints it's value fine but somehow, when used
> in the context of another tag, it's value isn't resolved.
Prehaps you could try setting a context vari
Calumet напиша:
> I use newform. How can I redefine error text for each field? Can I do
> this without redefining Form clean_xxx functions?
If you don't want to redefine the form methods you could make a
"translation" and use that.
Copy django/conf/locale/en/ to, for example, django/conf/locale
Trey напиша:
> I am trying to create a change password form, the unique thing about a
> change password form is that you have to be logged in and do a lookup
> to wherever you're storing users.
> My question is: How can I get the userId out of the session for the
> logged in user to attempt to v
[EMAIL PROTECTED] напиша:
> Is it possible to check for multiple items in that initial if
> statement? For example:
>
> if species.range or species.habitat or species.behavior
> do some stuff
> endif
>
>
> It seems that this should b
Christian Hoppner напиша:
> I have noticed that the newforms documentation really lacks a lot so far. Not
> to say it's useless, but it's not enough to teach me how to use it.
>
> I have already decided to manually generate the two forms I'll need for my
> current project. So that's not the qu
Tipan напиша:
> Thanks xav, I thought that the answer might involve both caching and
> Ajax but I wasn't sure how. I'm not familiar with either so I'll need
> to go through the documentation. Do you know where I can find some
> good examples of using these?
http://www.b-list.org/weblog/2006/08/0
Horst Gutmann напиша:
>> Has far as I know you cannot run mod_python applications as different
>>
>> https://panel.dreamhost.com/?tree=home.sugg&category=Software%20Installations&search=mod_python
>
> Exactly my reason why I won't vote for this. Dreamhost's FastCGI setup
> (and Python set
badger17 напиша:
> At the moment I can only get it load tags from the current app, ie the
> one in which the template is being rendered, or from
> django.templatetags in the django install location. Is there a way to
> make it load tags for example from a different app?
>
> I have written an app
Anton Daneika напиша:
> playing with example polls application. This resulted in a bunch of question
> marks on the view page, instead of the expected "Как дела?" poll question,
> which was in Cyrillic.
> My firefox character encoding is set to UTF-8;
> the following command:
> $ env | grep -i ut
[EMAIL PROTECTED] :
a bit more in the way of profile options, but I'm having trouble
getting the form to properly update the basic user info.
user_manipulator_data = User.ChangeManipulator(request.user.id)
I had a similar problem yesterday. I thought the automatic
ChangeManip
Alagu Madhu :
I am facing a problem in login screen using XMLHttpRequst sending the
data to the controller.controller is getting the value through
request.POST. but its not redirecting the same.
if result[0]:
return HttpResponseRedirect("/main/")
else:
return Http
Mike H напиша:
> I am using the login_required decorator form
> django.contrib.auth.decorators, but I want to override the second
> argument which specified which url it should redirect to if the user is
> not logged in.
It's not messy to write your own. login_required only uses
user_passes_test
14 matches
Mail list logo