Questions tagged as 'django'

1
answer

problem with uppercase in django

I have an uppercase problem in django, in the following code, it works in the first form and in the last form, but in the intermediary forms it does not translate the letters sent to the bank in capitals ... models.py class Requerente(mod...
asked by 26.11.2017 / 00:16
1
answer

Django periodic checks

How could I create a loop, thread or anything that my webapp periodically checks every 5min the database and exclude entries that are "due." I researched but did not find anything specific. I even found something saying that you should create...
asked by 10.11.2017 / 21:12
1
answer

How to use model variables in a view in Django

I need to calculate the age of a school report card where the data is filled in Django Admin, I would like to get each value to media and play in a table in the View. Code: MODEL class Cadastro_Boletim(models.Model): ra_aluno = mo...
asked by 30.11.2017 / 14:36
2
answers

Using Python module in Django

I'm starting with Django and Python now and I have a question that might sound silly: Can I use python modules and functions - and others installed - usually in a Django application?     
asked by 05.10.2017 / 21:34
2
answers

No module named 'urls' in Django

I'm studying about URL splitting in Django and I can not get my main url file to target. Tracking: Traceback (most recent call last): File "C:\PASTAD~1\MOOC\lib\site-packages\django\utils\autoreload.py", line 228, in wrapper fn(*args,...
asked by 01.10.2017 / 05:07
1
answer

Django - Problems saving objects with ID of type UUID in admin

I work on a Python with Django Framework project and recently decided to change the generation of the integer to UUID IDs for merge (we have data that comes from different bases and needs to be aggregated on a central basis). All of our ent...
asked by 11.10.2017 / 16:16
1
answer

Template Inheritance is not working

I'm trying to create blocks inside my base template (index.html), but apparently the block is not used. index.html {% load static %} <!DOCTYPE html> <html lang="pt-br"> <head> <title>Portfolio's</title>...
asked by 24.09.2017 / 19:26
1
answer

How to use the token to validate the login of a Django Rest Framework user

Hello, I'm kind of lost as a user authentication by django-rest-framework, I was following the CodingEntrepreneurs channel tutorial in Blog API 32 video ( link ) it explains how to do user authentication via token with django-rest-jwt, but I fou...
asked by 03.09.2017 / 18:30
1
answer

ImportError: No module named gerencia.alert.views

I'm trying to use the following function defined in gerencia/alert/views.py def maLogger(level, message, node=None): aux=0 if level=='Critical_client': aux=2 date = datetime.datetime.now() log = Log(level=level, dat...
asked by 23.08.2017 / 05:46
1
answer

Problem with Django Cache Page / URL

I encountered a problem using @cache_page(60 * 15) of Django in my case. The first user to give the first F5, the page will get stuck with the DELE user logged in. So even if I enter another user, the page will have the account of the oth...
asked by 14.09.2017 / 19:48