Questions tagged as 'django'

0
answers

Serialize a .values () as json. showing data from two tables

I want to represent the result in json of some values of the queryset but I could not, it throws me an error that the object dict has no meta class. 'dict' object has no attribute '_meta' I am using this code: def listado_libros(request):...
asked by 08.09.2017 / 05:21
1
answer

How can I create a Cookie in Django

I want to create a cookie to save certain data when the user starts session. I read the cookies that exist with request.COOKIES['cookie_name'] but I am not able to create one. Thank you very much!     
asked by 11.09.2017 / 21:33
0
answers

Error trying to read WSGI handler in IIS with DJANGO

Etoy raising an application of Django with IIS in Windows 10; however, it shows me the following error. I was guided by the following video: link Error occurred while reading WSGI handler: Traceback (most recent call last): File "C: \ in...
asked by 06.09.2017 / 14:04
1
answer

convert project react to react native

can I put a web page created with reactivate convert it react-native ?, and if possible how, I can reuse the same server on the web page, with the rea-native app so that the same user can be accessed , the functions and privileges of the same us...
asked by 01.09.2017 / 03:24
0
answers

500 (Internal Server Error) GET and request POST from JQuery / ajax to heroku server

I have my Django application deployed in Heroku at free dyno . I am currently sending some requests GET and POST from JQuery / ajax In my local development environment, the requests to my url endpoints work very well, a...
asked by 01.09.2017 / 13:19
0
answers

Display Project with Bitnami Django Stack

I'm trying to deploy my Django project on an Apache server, but it gives me some problems with the wsgi module, because I use python 2.7 for 64 bits and I can not find a wsgi module for this architecture, only for 32 and I can not reinstall pyth...
asked by 05.09.2017 / 18:46
1
answer

Template django

I am currently developing a website with python and django , I have a table of educational offers and another table which has a many-to-many relationship with educational offerings, make the query in the database ofertas = models.ManyToMany...
asked by 05.09.2017 / 01:44
0
answers

problem with django-videokit-0.0.4

I am trying to use django-videokit-0.0.4 to be able to save videos in my models I follow the steps that they give me in the documentation but in the end when I run the server I get this error: Unhandled exception in thread started by <func...
asked by 26.08.2017 / 15:30
1
answer

How to update a table when deleting a data in DJANGO

I'm working with Django. I'm making a shopping basket with Class Based Views. Everything works correctly, but I want that when removing an item from the basket (DeleteView) a function is executed to modify the quantity of another table. I just n...
asked by 26.08.2017 / 10:27
1
answer

Django upload only the data of a file

I'm working on the managed interface of Django, I've tried in different ways to popular tables with files xls , csv or txt without success, I know how to upload a file but not just use the data, or failing that upload the fil...
asked by 25.08.2017 / 17:55