Questions tagged as 'django'

1
answer

Django registration redux form

Good afternoon, I would like to know how I can edit the style of my form, I do not want it to appear all at once, I use 'form | crispy' to call the form. I am also using 'django registration redux'. How can I do so that for example in the "inpu...
asked by 03.04.2017 / 17:55
1
answer

What is the address between request.query_params and self.request.query_params in Python with Django

I'm starting with djangorestframework of django-python and I have the following code: class ProcesoViewSet(ModelPagination, viewsets.ViewSet): def list(self, request): query = request.query_params query1 = self.request.que...
asked by 07.07.2017 / 07:37
0
answers

Show in a tab the content of a [closed] model

Good I am trying to show the content of a model in a template, the problem is the following one: I do not know how to do to show the content depending on the option to which you click. Since I am using a for in the template, only the cont...
asked by 31.01.2017 / 15:27
1
answer

Sort list of python objects

I'm trying to sort a list of Player objects in Django1.10 and Python 3.5. But it is impossible for me and I can not find the error. The object class is the following class Jugador(models.Model): #Otras propiedades rating = models.IntegerFi...
asked by 17.04.2017 / 16:19
0
answers

I have this error import signals ImportError: No module named 'signals' [closed]

(myvenv) josepablo@josepablo:~/Ecommerce/ecommerce$ python manage.py runserver Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7f614233b0d0> Traceback (most recent call last): File "/home/josepa...
asked by 22.11.2016 / 02:42
0
answers

How do I create my administration interface in Django 1.9 [closed]

The truth is that I'm quite new to Django and because I like the framework but I can not or can not understand how to create an administration interface (I know that Django brings a default but I do not like it) so, I hope that Help me, greeting...
asked by 10.12.2016 / 07:05
1
answer

How to generate a 'limit_choices' with the 'id' of a table previously selected in '/ admin'

I am using 'GenericForeigKey' to relate several models to only one, I have the following code: class IPuertoOptico(models.Model): nomenclatura = models.CharField(max_length=30) limit = models.Q(app_label='infrastructure', model='itarj...
asked by 01.09.2016 / 14:43
0
answers

How can I try a scheduled task using Huey?

I need to create a unit test for a scheduled task (schedule), the task works perfectly but in the tests it always returns None: update_task_id = update_delivery_minutes_change.schedule( args=(instance.id,), delay=(60 * 30) ) update_tas...
asked by 29.08.2016 / 23:19
1
answer

Doubt with Models in Django

Hello, I have the following models: class Cotizacion(TimeStampedModel): codigo = models.CharField(primary_key=True, max_length=12) proveedor = models.ForeignKey(Proveedor) fecha = models.DateField() observaciones = models.TextF...
asked by 01.07.2016 / 23:11
0
answers

NOT NULL constraint failed: Adm_profile.user_id in django Allauth [closed]

I have a problem which I have been looking for a solution for a while and I have not been able to find it, since the error that I get, can be solved by putting it in the field of "OneToOneField (null = True), but when doing that my system loses...
asked by 23.09.2016 / 06:27