Questions tagged as 'django'

1
answer

Django 1.10 + Django Restless 0.0.10 and Request empty

I'm using django restless views to build some REST interfaces and in all posts the request.POST and request.params are blank. If I run: print request print request.POST I have the following return: <WSGIRequest: POST '/ambiente/alo/...
asked by 08.12.2016 / 22:18
1
answer

Import model class attributes from another app

Good afternoon guys, I'm good, a doubt! I'm using 2 Apps in django admin App1 = Registration App2 = Controllers control I imported the app1 model, the "Person" class into the "Scholarship" class, but it only takes the "Name" attribute a...
asked by 27.01.2017 / 05:57
1
answer

LookupError: No installed app with label 'core'

Initially the project used django 1.7 but I am migrating it to django 1.10.3, but when I try to use migrate it informs this error that the 'core' is not installed, unfortunately there is no core application in my program! the only thing with tha...
asked by 26.11.2016 / 22:47
1
answer

How to receive a PDF file in Django and save to a directory?

I get a file by html using type="file". <form action="/docs/enviado/" method="post">{% csrf_token %} <input type="file" accept="pdf" name = "projeto"/><br /><br /> <input type="submit" value="enviar" /> </f...
asked by 20.10.2016 / 20:43
1
answer

Sorting relationship results "ManyToManyField" with the same table in Django

I have the Many to Many relationship with the same table, and I need to sort the result with the same creation sequence. ex: add Django basics, Django intermediate, Django advanced; You have this q appears in the preview. I've already tried {% f...
asked by 28.09.2016 / 15:21
1
answer

Changing place templates (Django)

I was trying to leave the templates folder (main) out of the 'core' folder because in fact I wanted to leave the 'templates' and 'static' folder out of the 'core'. See my project at GitHub . So I tried to do the following in settings.py:...
asked by 14.09.2016 / 21:39
1
answer

error while using django.setup ()

I'm trying to call the django.setup() function in the django version. 1.4, I saw that it was only implemented in 1.7. Is there any function similar to the one I can update, would the solution just update django?     
asked by 13.09.2016 / 15:15
1
answer

Python / Django: sending emails resulting in 535 (gmail working)

I have a contact form where I send the message to the system administrator informing you about it. The email configuration information is fully verified and correct. EMAIL_HOST='mail.xxx.net' EMAIL_HOST_USER='[email protected]' EMAIL_HOST_PASSW...
asked by 26.09.2016 / 22:19
1
answer

How to save Base64 in ImageFiled Django / data: image / jpeg; base64 ,?

I'm trying to save a base64 image to my template, but I can not. My code is; Template: class Image(models.Model): img = models.ImageField(upload_to = 'pic_folder') view: @csrf_exempt def imageUP(request): img = request.GET['img...
asked by 18.08.2016 / 06:21
1
answer

django-import-export outside Admin

Does anyone know how I would use django-import-export outside Admin? That is, I wanted the export button of this library in a template of mine, outside Admin. Which way to the stones? I've tried I'm trying to export tables to Excel using...
asked by 09.08.2016 / 22:23