Questions tagged as 'django'

0
answers

Using ForeignKey to save in BD Django

I can not do the Data relation with Professor, I have to save Professor and pass his id to Foreign key Data and save, when I execute the code the id is not passed forms.py class ProfessorForm(forms.ModelForm): def __init__(self, *args...
asked by 18.05.2016 / 16:57
1
answer

Django-allauth configuration

I'm trying to implement django-allauth in a personal project but I'm not getting it, in version 0.20.0 it's easy but I wanted to try the latest one that is 0.25.2, not me but when access to link does not happen, follow the code: INSTALLED_...
asked by 06.04.2016 / 05:24
1
answer

Error in running django-admin.py in django 1.9

I'm trying to learn django and would like to understand this notification I get every time I run the django-admin!    Note that only Django core commands are listed as settings are not properly configured (error: Requested setting INSTALLED_A...
asked by 13.03.2016 / 22:24
0
answers

Django error: Invalid block tag: expected 'endblock'

In the development environment it works normally, already on the production server I get the following error: Invalid block tag: 'ultimos_produtos', expected 'endblock' Here is the snippet of code: {% extends "base.html" %} {% load shop_t...
asked by 24.11.2015 / 16:04
1
answer

Error "Can not update identity column 'order'"

For an old project need, the developer of the time created a field in the table that is not a primary key but is self-incrementing, but django returns an error because it can not update that field. The use of Django's AutoField type is intended...
asked by 13.11.2015 / 02:21
1
answer

How to work with UpdateView and Forms in the template

I'm trying to render a client's data in the template, but I'd like to do it without using {{ form.as_p }} or {{ form.as_table }} whatever, I'd like to know if there's any way to use the id of the clients in question and use inputs...
asked by 26.01.2016 / 14:46
1
answer

Using python and django, problem with querys

I'm using Python with the Django framework. This method should return a resulting query, to send e-mail to the corresponding e-mails from the database. However, the method works for some cases and for others it does not. from django.db.models...
asked by 14.10.2015 / 21:35
1
answer

Autocomplete with jQuery and Django

Hello, I did a search on the site, but I did not find it, if anyone knows a link that already deals with this subject, please post. Next, I did an autocomplete in a Django form with jQuery and jQueryUI, in that form I have a foreignkey and I...
asked by 24.08.2015 / 16:18
0
answers

django, change the value of a form field when I select items in another field

I have a form that registers a sale, I select the customer, the official (seller), and the items (products) sold and I am putting the total value of the sale manually. What I would like was that in selecting the items, somehow the price of each...
asked by 16.06.2015 / 19:32
0
answers

Gchart with Django

Hi, I'm developing a Django application that creates graphics. And I've already implemented a line chart using GCharts insert the link description here but it only has one line, and in the example I I've seen how to create the same graph with...
asked by 19.06.2015 / 20:37