Questions tagged as 'django'

1
answer

How to create an element that contains one or more elements from different Tables in my Django database

I have the following Tables: Ticket , Manager and Services Ticket has information such as creation date, manager, services and more. manager that has 2 fields name and percentage. and the services table that has 2 services and pric...
asked by 15.10.2017 / 23:52
0
answers

when do I run ./manage.py and makemigration? Mark error ImportError: No module adopcion.models

I have: python 2.7.9 django 1.11.6 psycopg2 = 2.5.4 postgres 9.4 linux debian 8.4x64 I follow the example of easy code django and at the time of executing the relationship that is in link 7:08 marks the indicated error ImportError: No modul...
asked by 10.10.2017 / 17:52
0
answers

How to enable python in lighttpd manjaroOS?

Good afternoon friends of stackoverflow I have a giant doubt I would like to be able to enable on my server lighttpd python and if possible ruby to be able to study and perform web tests from flask and django. Here is my configuration code. P...
asked by 09.10.2017 / 20:32
0
answers

Django REST framework returns "Got AttributeError when attempting to get a value for field"

The problem I have is when I try to access the api in link is throwing me this error:    Got AttributeError when attempting to get a value for field name on serializer BattleSerializer . The serializer field might be incorrectl...
asked by 02.10.2017 / 05:32
1
answer

Datatable with jquery

Good first of all, I'm trying to fill a table with jquery and Datatable. I've already read several tutorials and nothing, I do not fill the table. Below I will put my codes: server-side code with django @login_required def activos_mostrar(r...
asked by 03.10.2017 / 08:37
1
answer

Result of a Rest Framework ListApiView passing parameter by url

I am having problems to show the results of a query, the error that shows me is that it does not find the page (404) I'm starting with django rest framework and maybe it's very obvious but I have not seen it. It is that I returned serializ...
asked by 03.10.2017 / 13:53
1
answer

I do not load javascript in django 1.11

I'm doing a website in django , but when I run the application loads the HTML and CSS but not the JavaScript, why is it? The errors shown are the following: [28/Sep/2017 14:02:23] "GET / HTTP/1.1" 200 26231 [28/Sep/2017 14:02:23]...
asked by 28.09.2017 / 22:50
0
answers

How is the url before I am?

I need to know in my view or template, which has been the previous URL to which I am. I am using request.get_full_path() but this returns the current url. Is there any way to know the previous url? I need it because I have a view th...
asked by 22.09.2017 / 13:32
1
answer

how to create an HTML element in JavaScript

I have an ajax function that gets the elements of a data source in django. I can see that the function brings the elements in the inspector but I can not create the element in the div that I need. the result of the ajax function in the inspec...
asked by 20.09.2017 / 21:51
1
answer

Django ReportLab

Good I have the following doubt I am doing a function to return a pdf with a graph I am doing with ReportLab my question is the following as I indicate to the canvas that I paint my graph and return it in the pdf generated now it returns the pdf...
asked by 21.09.2017 / 17:17