Questions tagged as 'django-forms'

1
answer

Create user preferences form with checkbox

I want to create a form of the type: <form> <fieldset> <legend>Deportes:</legend> <input type="checkbox" name="futbol" value="3"> futbol<br> <input type="checkbox" name="basket" value=...
asked by 30.01.2018 / 23:34
0
answers

How to validate the form and show the user's data?

views.py from django.shortcuts import render from django.template import loader, Context from django.core import serializers from django.views.generic import TemplateView from django.shortcuts import redirect,render_to_response from django.htt...
asked by 12.02.2018 / 21:07
0
answers

Move the date with Jquery from a datatimeField generated with Django

I have a view that has a datetimepicker that I generate with Django such that: class una(forms.Form): start_edited_date = forms.DateTimeField(label="Fecha inicio", widget=DateTimeWidget(usel10n=True, bootstrap_version=3), required=False) end_e...
asked by 06.02.2018 / 18:23
0
answers

Someone can give me a hand with visual studio because the texbox remained transparent

Friends I have a problem with my project is the only part where I have everything transparent to fill     
asked by 12.12.2017 / 22:05
2
answers

Finder in Django administrator

In the django administrator, is there any way to enable a search engine? You have a button to add a record, but when these records are too many, it is too late to find a record to modify or delete. In the image 14 thousand records are shown,...
asked by 27.01.2018 / 03:19
1
answer

Error IntegrityError: NOT NULL constraint failed in Django

I want a form to add groups of clients and in turn add clients to these groups, for this I have created the field people in manytomany and using an intermediary Group_member. models.py class Grupo(models.Model): nombre_grupo...
asked by 24.10.2017 / 05:31
1
answer

Django manytomany models views and templates

I have the Gammer model that is the User extension and the Competition model. many players can play a competition and a competition can have many players ( ManyToMany ) class Gammer(User): competition = models.ManyToManyField(Compet...
asked by 23.10.2017 / 21:14
1
answer

Problem with django-bootstrap3

I have installed Django 1.11 and django-bootstrap3 in version 8.2.3 by pip. I'm making a simple application that carries a form. Reviewing the online documentation I saw that the configuration of Bootstrap 3 must be added in the settings.py as f...
asked by 25.05.2017 / 18:53
0
answers

How to use the admin Widget to add items

I am a beginner in this, the query is how I can add in my form the image of "Edit" and "Add" in a choice field and I opened in a pop-up the form of that model to add it. As Django admin does but I would like to do it from my form. Thank you....
asked by 23.05.2017 / 18:14
0
answers

how to show only data True in a foreign key of python

models.py: class Article(models.Model): ... user_create = models.ForeignKey(User, null=True, related_name = 'user_create') upd.html: ... <label class="control-label col-md-2">Creador</label> <div class="col-md-7">...
asked by 09.06.2017 / 16:09