It is done.
On Saturday, September 30, 2017 at 8:55:45 AM UTC+5:30, Mitul Tyagi wrote:
>
>
> My form field is :
>
> class CityForm(forms.ModelForm):
> class Meta:
> model = City
> fields = ['city1', 'city2', 'city3', 'city4', 'city5', 'userName']
> widgets = {
>
My form field is :
class CityForm(forms.ModelForm):
class Meta:
model = City
fields = ['city1', 'city2', 'city3', 'city4', 'city5', 'userName']
widgets = {
'city1': autocomplete.Select2(url='city-autocomplete'),
'city2':
Hi Paul,
You should return value from 'clean_document'.
>From your code I see you do not do that. When method returns nothing it is
None.
That is why you see 'This field cannot be blank.'
I hope that make sense.
Regards,
Constantine C.
On Fri, Sep 29, 2017 at 7:01 AM, Paul
Hi Mannu,
It seems like all are ok.
Sorry, but do you use it in just one place?
And do you see response in console from your print?
Regards,
Constantine C.
On Thu, Sep 28, 2017 at 4:36 PM, Mannu Gupta
wrote:
> I am just using it in a view function. For example:-
>
>
Dear Fabio,
Can you please provide html of your button here?
Thank you,
Regards,
Constantine C.
On Fri, Sep 29, 2017 at 8:37 AM, fábio andrews rocha marques <
fabioandrewsrochamarq...@gmail.com> wrote:
> unfortunally, it does trigger. I have an input and a button. The button is
> "?" and the
Dear Mitui,
I saw 2 questions in your inquiry:
1. Regarding to Form behaviour
2. Regarding to log message
Let me clarify second:
Provided message said that server responded with 302 - redirect response.
It is correct as you said in your view method:
return
Hi,
I am trying to collect some information about implementing Video Chat in a
Django project. Is there some working repo where WebRTC is implemented for
video chat using Django?
Some link or web resource would be a great help.
Regards,
Shazia
--
You received this message because you are
Hi,
Executive summary : everything's in the subject line.
Boring details :
I have a Django application where I use a lot of custom commands, most being
designed to be launched mostly by cron-jobs or other bash scripts of some
sorts. In this respect, the exit code value may be of utmost
On Sep 28, 2017 7:31 AM, "Rakhee Menon" wrote:
>
> Hi Everyone,
>
> When i hit the url localhost:8000/forms it gives a html page and on the
other hand when i do it through the django admin ie
>
> localhost:8000/admin/forms it gives me the result...What can be the
{% csrf_token %}
1st City: {{form.city1}}
2nd City: {{form.city2}}
3rd City: {{form.city3}}
4th City: {{form.city4}}
5th City: {{form.city5}}
Is the template part.
On Saturday, September 30, 2017 at 12:16:07 AM UTC+5:30, Mitul Tyagi wrote:
>
> Problem 1 :
> I have a model with six fields.
Problem 1 :
I have a model with six fields. One is userName and other five are five
favourite cities.I want to update these five citiesbut when I
update them using instance argument the userName becomes NONEI am using
the id field to updatethe cities are updated for the id but
I know it's not big by some standards, and we have done a lot of
tuning. Really more then speed issues, our larger issues are
administrative - we need 24x7 uptime and the tables are so large we
cannot do any alters as they take days to run. Similarly, a restore
can take a week. So we want to look
Does anyone know about it??/
--
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+unsubscr...@googlegroups.com.
To post to this group, send email to
unfortunally, it does trigger. I have an input and a button. The button is
"?" and the input is my submit form button
On Thursday, September 28, 2017 at 9:19:01 PM UTC-3, Vijay Khemlani wrote:
>
> An input with type "button" instead of "submit" should not trigger the
> form submit.
>
> On Thu,
I want to do file validation(size,type) on a field on inlineformset.
class ProductDocumentModelForm(ModelForm):
class Meta: model = ProductDocument
fields = ['document']
def clean_document(self):
file = self.cleaned_data['document']
validate_file(file, 'document')
That doesn't sound that big.
Maybe you can tune mysql, but I have worked with postgres handling more
than that, it works fine without tuning, I changed a couple of settings
(like work_mem) and improved
On Fri, Sep 29, 2017 at 4:48 AM, Larry Martell
wrote:
> I am taking
16 matches
Mail list logo