Questions tagged as 'django'

2
answers

Auntoincrementable in HTML

I have the following html code and what I need is for tb_header1 to increase the values of i , j en 1, and rangos go incrementing 1 the value of a (in each for ). {% for atributo in tb_header %} <td...
asked by 25.11.2016 / 03:53
1
answer

Upload multiples Images in Django

I am trying to upload multiple images in a django form. So far you get to the point of getting this error InMemoryUploadedFile' object has no attribute 'get' indicating that the problem is in line imgform.save() of the view. Thi...
asked by 30.10.2016 / 23:32
1
answer

When using django-cassandra-engine sessions I get an error in INSTALLED_APPS

I'm using django-cassandra-engine for session storage, when I start the server I get this error: RuntimeError: Model class django.contrib.sessions.models.Session doesn't declare an explicit app_label and isn't in an application in INSTALLED_AP...
asked by 01.08.2017 / 22:35
1
answer

Redirect a URL from a class-based view to another

When moving my WordPress blog to Django I changed the structure of the permanent links, before I did not use category in the structure and now yes. More or less like this: /slug/ ⟼ /cat/slug/ And then I'm getting a lot of 404 errors,...
asked by 03.08.2017 / 17:45
1
answer

Django - Modify widget Select custom list?

Very good, I would like to know how to modify my select with a modified query, I make myself explain ... models.py class Equipo(models.Model): nombre = models.CharField(max_length=200) color = RGBColorField() torneo = models.For...
asked by 06.04.2017 / 18:58
1
answer

How do I create a pipeline in python-social-auth, fill in data in a form?

I need to make a registration using python-social-auth and Django, which uses Facebook data to pre-fill some fields of the user creation form. Does anyone know how to do it?     
asked by 02.09.2016 / 21:11
4
answers

Error executing pip install mysql-python

I'm trying to execute the command in windows: pip install mysql-python to be able to work with mysql in Django but I get these errors: c:\users\fabia\appdata\local\programs\python\python35-32\include\pyconfig.h(243): fatal error C1083:...
asked by 19.10.2016 / 04:12
2
answers

How to do Django Audit

Good evening I am doing my App in Django and I am needing to create an audit log where I can register if they created / modified / deleted a record, which user did it and date of registration. I'm grabbing suggestions to implement this functi...
asked by 11.07.2017 / 03:25
1
answer

unsupported operand type (s) for +: 'NoneType' and 'NoneType'

I am trying to save elements that I parsed from a csv file in the database and at the time of splitting those elements I get an error unsupported operand type (s) for +: 'NoneType' and 'NoneType'and I do not know what do. def Procesar(request,...
asked by 25.04.2016 / 18:01
1
answer

Creation of a class in Django that has a key to itself

I'm getting into the world of Django and I was trying to generate different types of models. Now I am creating a model with a class 'Tags' which has a key that calls another object of the class (To create objects linked by relationship)....
asked by 25.04.2016 / 08:59