Questions tagged as 'django'

1
answer

django AttributeError: 'EmailField' object has no attribute 'attrs'

here are my codes for forms.py ________________________ from django import forms from .models import Account class Usuario(forms.ModelForm): password=forms.PasswordInput() class Meta: model=Account fields=( 'email','u...
asked by 22.09.2016 / 06:14
1
answer

Augmented Reality with django [closed]

I am learning about augmented reality and I am applying it in a project. For this I consult if it is possible to make use of augmented reality in Django.     
asked by 06.03.2016 / 19:01
1
answer

How can I add a counter and a cycle to a carousel in boostrap4 (django)?

I need help with the creation of a bootstrap4 carousel in django. The images of the carusel are loaded from the database, and the slider should be growing, showing the new images as well. Do I need to add a counter in the ol to assign the...
asked by 07.11.2018 / 19:42
1
answer

Django pass parameter does not work

I hope you can help me, I'm trying to make a function in which passing the parameter can render different template but I do not know what is wrong if the views or the url, someone helps me? views. def hola(request, par): #val = val...
asked by 27.09.2017 / 17:59
1
answer

Doubt at ManyToManyFields Django

I'm new to Django and I'm just learning several things, let's say I have the following model where I have the Person, Car and Loan classes, a person in a loan can select several cars class Persona(models.Model): nombre = models.CharField(m...
asked by 05.01.2018 / 04:09
1
answer

Complex query in Django ORM

I have the following table with the following records: |id | datetime | state_id | brand_id | customer_id | recommender_id | |---|----------|----------|----------|-------------|----------------| | 1 | ... | 5 | 1 | 32...
asked by 05.04.2018 / 16:42
1
answer

Help with ajax in Django 1.6.5 - ERROR 500

I would like to know why I'm launching a server error (500). I need to make or import some other type of library or module to run my request ajax ? $("#email").change(function(){ $.ajax({ data : { "ema...
asked by 13.07.2016 / 00:24
1
answer

django Test without creating database

My tests.py from django.core import mail from django.test import SimpleTestCase class EmailTest(SimpleTestCase): def test_send_email(self): mail.send_mail( 'Test - Subject 1', 'Test de email, primer envio',...
asked by 30.05.2016 / 22:43