Questions tagged as 'django'

2
answers

Nest objects related tables Django API REST Framework

I have 3 related tables, 1 - > 2 - > 3 Now with mysql we would do inner join of the tables and now we could filter by fields of the 3, the thing is that with the REST API I would like to nest all the elements of the 3 related to the 2 rel...
asked by 26.05.2016 / 13:06
1
answer

How to recharge modal windows in Django?

What I want to do is that if the message is activated, the JS takes it and then reopens the modal with the form and the error, that's just it. But I do not know how to do it. This is the view: def inventarioingresoe(request): #Codigo...
asked by 28.09.2016 / 20:39
1
answer

I want to know how to pass a django for in javascript?

This is my code: {%for obj in empaque %} celdae = {{"obj.celda"}} {%enfor%} if (document.empaque.celda.value == celdae) { alert("La celda ya esta ocupada") document.empaque.celda.focus() return false;}...
asked by 29.09.2016 / 18:40
2
answers

Use filter in Django

I have my function buscar , but I get this error: Here is the code: view.py class ListarTipoAlmacen(ListView): model = Tipo_almacen template_name = 'tipo_almacen/lista_tipo_almacen.html' paginate_by = 10 def...
asked by 23.03.2016 / 20:49
2
answers

How to install Django in a virtual environment?

I'm having problems with a Django installation that I did in a virtual environment and basically I have only one question: Is it necessary to install Django within each new virtual environment that I create? that is, if I create a new Django...
asked by 12.11.2016 / 19:50
1
answer

Django - how to make queries in several tables (join)?

Good morning. I am passing a project from Codeigniter to Django and I have had problems understanding queries in several tables, and with several parameters. The data model that I have is the following: class Municipios(models.Model): codm...
asked by 20.07.2016 / 17:37
1
answer

Error when trying to filter data in Django?

The problem that shows me when trying to filter data with django I get this error: my view is as follows: # -*- coding: utf-8 -*- from functools import reduce from django.contrib.messages.views import SuccessMessageMixin from django.c...
asked by 11.04.2016 / 07:27
0
answers

Django Migrate ORA-00955 error

I'm doing a project in django 1.8.7 using Linux Ubuntu 16 and connected to an Oracle 11g database, at the moment of wanting to migrate the project using the python manage.py migrate it throws the following error, does anyone know how to s...
asked by 31.12.2018 / 04:45
1
answer

Django - templates do not read files in the "STATIC" folder

I have tried all the solutions that have commented, but I can not solve it. I downloaded the template ONETECH in colorlib . Copy the files of css , js e img in the folder STATIC located in the same dire...
asked by 31.12.2018 / 05:12
2
answers

Python - Django error when creating super user

I am creating a student management service. Once I finish designing the models I make the migrations (makemigrations and migrate) of my apps, without problems. But when trying to create a super user, this error occurs: Nombre de usuario: Admin...
asked by 24.12.2018 / 18:43