Questions tagged as 'django'

0
answers

consume an api with vuejs and axios

When I try to put, it gives me an error 403 because I do not authenticate a user and I test it with postman and it works as long as the user passes it my question is how I do it with axios since I have tried many ways and nothing     
asked by 09.11.2018 / 01:48
0
answers

Not to be an IP SPAM

My problem is that my system no longer sends account validation emails for users who register in the web application. They told me that there is a way to validate that they are users of my database and that they want to receive those emails,...
asked by 09.11.2018 / 16:09
0
answers

AttributeError: 'Person' object has no attribute 'get'

Good day community. I have a problem when saving the data of a form of type ModelForm. And it is that when you sent the data of the form to my database the following error appears: AttributeError at /Usuario/ 'Persona' object has no attribute...
asked by 03.11.2018 / 20:59
0
answers

Pass a value to a field

These are my models class Colegio(models.Model): id_colegio = models.AutoField(primary_key=True) nombre_colegio = models.CharField(max_length=100, blank=True, null=True) def __unicode__(self): return self.nombre_colegio...
asked by 02.11.2018 / 15:29
0
answers

how to open pdf entered into my django database?

I need help My form enters data of documents and the scanned document is attached when I want to open it to see from another form I get this error attached images     
asked by 31.10.2018 / 17:14
1
answer

Errno 99 Can not assign requested address Request Method: POST Request URL

I get the following error when doing a user registration in django-rest-framework using the path / rest-auth / registration / [Errno 99] Can not assign requested address Request Method: POST Request URL: link Django Version: 1.11.2 Python...
asked by 09.11.2018 / 15:48
1
answer

Know what kind of data I upload in my filefield

It is possible to know what type of data the user is uploading in my one field upload file in a django form, all this in order to do what gmail does. that puts the separated pdf the separated images.     
asked by 31.10.2018 / 15:36
0
answers

MultiValueDictKeyError: "'products'"

I do not know why I do not recognize my products as I solve my error, my version is 2.7 of python thanks in advance views.py def comprar(request): productos = literal_eval(request.POST["productos"]) pago = literal_eval(request....
asked by 20.11.2018 / 02:58
0
answers

Generate Pdf in Django

someone can help me generate a pdf with django, but I want the pdf to be saved in a server path and not downloaded to the client machine. I currently have this: def pdf_export(request,pac_id): orden = OrdenPaciente.objects.get(id=pac_id) fi...
asked by 29.10.2018 / 18:23
1
answer

Do not insert data. from the input between django and postgres

catalog / urls.py from django.urls import path from catalogos.views import CategoriaView,CategoriaNew urlpatterns =[ ..... path('categorias/new', CategoriaNew.as_view(),name='categoria_new'), ] views.py class CategoriaNew(g...
asked by 30.10.2018 / 18:17