Questions tagged as 'django'

0
answers

Edit model auth user groups Django

My data model requires multiple users with multiple roles in multiple companies. That is, a user can be manager of company 1, technician in company 1, client in company 2 and client in company 3. I use the Django groups for the roles: Group 1 Ma...
asked by 27.10.2018 / 01:16
2
answers

Help with Query in django

I have the following query: comision = comisiones_pagadas.objects.values('codigo_proceso','fecha_pago','doctor_id').order_by('-fecha_pago').distinct() At the moment of passing 'commission' to the template I can not present the doctor's nam...
asked by 23.10.2018 / 17:32
0
answers

How can I upload media files to amazon s3?

I have a project in django that I am trying to migrate to Amazon s3. Within the project I use the easy_thumbnails package (I leave the documentation here ). I have everything configured to send the images to Amazon S3 but I can not get the t...
asked by 22.10.2018 / 18:15
1
answer

CKEDITOR in django, problems with tags

Hello, I have the following problem, install CKEDITOR on a website with django that I am doing, and when posting a post, the post appears on the web but with the tags visible, in this way (I leave image) How can I make these html tags...
asked by 20.10.2018 / 03:32
1
answer

Colar Project Django in virtualenv

Hello everyone, I have the following situation. Create my Django application in a virtualenv environment, the application already runs is perfect in my virtual machine, the whole project was created within a virtualenv environment. I am pr...
asked by 18.10.2018 / 05:26
0
answers

Limit quantities in Django database

I am writing to you because I can not find an answer to my problem. I have a small database with the following model from django.db import models class Socio(models.Model): nroSoc = models.IntegerField(primary_key=True, null=False, blank=F...
asked by 12.10.2018 / 17:14
0
answers

Long data table does not pass to the next page. Reportlab Django

The problem I have is that the table is very long by the data of the BD, those that are passed on the sheet are no longer displayed. What I would like you to help me is that the cells that are left over go to a new PDF page as well as your heade...
asked by 12.10.2018 / 03:21
0
answers

HTTP Error 500.0 - Internal Server Error - IIS8.5 - Django

I am installing a Django application in IIS 8.5 of Winserver 2012 I can not find the solution, when running localhost: 8010 It shows me the following: Error HTTP 500.0 - Internal Server Error C:\inetpub\wwwroot\aPPDjango\env\Scripts\python...
asked by 05.10.2018 / 22:56
1
answer

'function' object has no attribute '_default_manager' in django 2.1

I'm trying to list the data in my table in my template, but this error appears:    'function' object has no attribute '_default_manager' Model code: class persona(models.Model): nombre = models.CharField(max_length=100) topip...
asked by 07.10.2018 / 22:36
1
answer

Django local variable 'vaiable' referenced before assignment

Good morning. I could not solve this error "local variable" - 'referenced before assignment ", my code is this: Vista: def palcosSearch(request): if request.method == 'POST': form = SearchPalco(request.POST) if form.is_valid(...
asked by 08.10.2018 / 04:02