Questions tagged as 'django'

1
answer

How to use tensorflow from a docker container in a container with django? Link Containers?

I need to link two containers, my main container contains django and the secondary tensorflow, I am creating the two containers with docker-compose, both are created correctly, but I need to enter the container with django and when running pytho...
asked by 06.08.2018 / 20:37
1
answer

How can I reuse the django permissions in django rest framework?

I have already asked this question and it can be a song but I hope that someone will help me, I am currently doing a project with django restframework, in which I will have two groups (Teachers, Students, School) and these already have their per...
asked by 24.05.2016 / 00:24
1
answer

Problems migrating project in Django 1.6 to Django 1.7 version

I have serious problems to make my project work in a newer version of Django (from 1.6 to 1.7) I am working with a virtual environment in which to reinstall all the applications of my project (from my requirements.txt file), except the versio...
asked by 20.05.2016 / 03:25
1
answer

Django REST Multiple Models (base_name & queryset) error

I am trying to use the Django REST Multiple Models and I have created the models and the viewset. But when trying to enter the url of the api, I get an error: link    'base_name' argument not specified, and could not automatically   dete...
asked by 24.05.2016 / 10:50
1
answer

Multiple filtering Django Rest Framework

I wanted to do a multiple filtering by url with the API Django Rest Framework that is to say that for example type www.domain.com/clientes/Nike/ES and return me all Nike customers from Spain, the thing is that I do not know how to cross the...
asked by 19.05.2016 / 11:02
1
answer

Docker does not run my container

I am generating a container for my application with the following dockerfile FROM django ADD ./cryptoassistant /cryptoassistant WORKDIR /cryptoassistant RUN ["chmod", "+x", "/cryptoassistant/manage.py"] RUN ["pip", "install", "--upgrade"...
asked by 21.08.2018 / 19:21
1
answer

Django - AttributeError: Manager is not accessible via ManagerLog instances

I am new to python, I am currently developing an application, which is responsible for generating several very simple reports, however there is a report which I have not yet been able to solve, I have researched but I still can not find the solu...
asked by 14.12.2017 / 13:23
3
answers

Standalone with django + pyinstaller

Dear, I have developed an app with django, but now I have a problem when I want to compile binary (.exe). I'm using Django + PyInstaller, although I can get to get the binary, but when executing it there is an error that obstructs the execution...
asked by 19.05.2017 / 14:22
1
answer

What is the difference between using a field validator or validating the model using clean?

Assuming I have a Django model like the following: class Comprobante(models.Model): punto_venta = models.IntegerField(blank=True) And I want to validate the model and particularly that punto_venta is a value from 1 to 9999. I und...
asked by 01.05.2018 / 06:18
3
answers

Use of def __unicode __ (self):

Use Django 1.9. I have two models related to each other, one contains an id and name among other attributes and the other contains its own id along with the id of the first model: class Televisor(models.Model): idTelevisor = models.AutoFie...
asked by 10.02.2016 / 02:44