Questions tagged as 'django'

1
answer

"NoReverseMatch at /" in Django, when I try to put a link on the [closed]

When I try to put a link on a button, a page with NoReverseMatch at/ error appears, I do not know what to do, I want to put this link to go to app of user registry that is called login . <button href="{% url "login.views.r...
asked by 10.08.2015 / 02:12
1
answer

Treating search field error with text and integer (Django)

The following code searches for values in the template. But it finds by text, and when I type, for example, 2015 to find by year, it returns an error because the field must be an integer and not a number, how to handle this error so that it find...
asked by 31.07.2015 / 18:57
1
answer

Difference between get_context_data and get_queryset and code improvement (Django)

I wanted to know the difference between get_context_data and get_queryset. And I'd like to hear from you about my codes. What is right and what is wrong with them? link class SaleDetailView(DetailView): template_name = 'vendas/s...
asked by 18.06.2015 / 04:20
1
answer

Error in django search

Hello, I'm creating a project in django and doing a search for a Taginfo based on a tag that has a foreignkey for Taginfo. I'm getting the following error at line 99 of the view. TypeError at /datasources/get/1/ int() argument must be a string...
asked by 10.06.2015 / 23:12
1
answer

Page Redirect Error -URL

I'm super beginner with Python and Django and unfortunately I'm suffering a lot with urls . The problem you give is " Página não encontrada (404) ". Here are some excerpts from the code: urls.py from django.conf....
asked by 03.06.2015 / 06:24
1
answer

List of Django Dictionary Objects - Creating Templates

I'm trying to learn something about Django, and a question has come to me. I have a dictionary with multiple keys and values. The idea is for each key to display a list of values with checkboxes that can be selected to perform other tasks lat...
asked by 12.08.2014 / 21:34
1
answer

Automatic field filling

I'm developing a application with Django (1.6.2) and Python 2.7 for learning, the application performs searches, searches, and edits in the DB, in one of the registers that I realize I would like to apply an autocompletion function of other fi...
asked by 09.07.2014 / 19:04
1
answer

How to serve a static page from urls.py?

I have a website in Django where I want to serve favicon.ico - which, being a static file, is in STATIC_URL/caminho/pro/favicon.ico . Is it possible to do this directly from urls.py ? (i.e. without having to write a view jus...
asked by 18.09.2014 / 12:23
1
answer

How to submit a post using Django Rest Framework and Angular.js

How do I submit a post on Angular? I did a test here and required to report to PK: index.controller('EditController', function($scope, $http) { $scope.save = function() { var in_data = { name: $scope.Job.name, description: $scope.Job.descr...
asked by 01.05.2014 / 22:45
0
answers

Django Project Deployment on Heroku with Errors

When trying to deploy my Python project using Django in Heroku, I'm getting the following error. Counting objects: 3, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 273 bytes...
asked by 13.12.2018 / 01:12