There is a table with 200 records and one of the fields is responsible for indicating the order that these data are displayed (0, 1, 2, 3, 4, 5, ...). I need to rearrange this data, pick up the record from position 167 and put it in position 3,...
I have a series of data that I would like to organize by title, example;
movies = [
'movie': [
'legenda' [
'dub', 'leg', 'nac'
],
'time': [
1, 2, 3, 4, 5
]
]
....
]
I've tried dict()...
The application in django was working normally until I was putting django-comments, I first installed it with setup.py that came along, I believe that this is what is causing the problem, then I put it together with the project folder and refere...
I started a project in Django 1.4, and every mistake I made via try..except I printed in sys.stderr - making it fall into the same Apache log file (error.log). It worked, but only for the errors that I explicitly took, and in addit...
Good evening !! Can anyone help me with this error, I'm trying to use debug_toolbar:
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/sara/dev/virtual/loc...
could someone indicate the best way to extend the django template? and how best to share a template with the admin and site area.
I'm using django version 1.8.6 and django-bootstrap3
Thank you.
I'm trying to run this SQL using Django's ORM
SELECT * FROM test JOIN questionnaire q ON (q.id = test.questionnaire) WHERE q.discipline = 4;
Templates:
Test, Questionnaire, Discipline
I have an array with a data dictionary in my session and would like to remove according to the line that the user is clicking on a table where those values are displayed.
My view:
def deletar_servico_ou_item_selecionado(request):
if re...