Most voted "django" questions
Django is an open source Web 2.0 application framework written in Python. Its main objective is to facilitate the creation of complex database websites.
Learn more…1,067 questions
Sort by count of
-
-2
votes2
answers29
viewsShow only second field of the field choises
In my model I have an option list and when I display it in the template it appears like this: "("D", "Slow")" and I would like it to be displayed only "("Slow down")". Currently As it should be…
-
-2
votes1
answer95
viewsDjango is not saving users in the database
I’m doing a project with Django and using postgresql as a database. I created an app Accounts for user registration, but is not registered in the database and does not appear in the Django admin…
-
-2
votes1
answer31
viewsNoreversematch at /wiki/Edit/CSS/
Hello, I’m starting at Django and I’m two days trying to solve this problem. I’ve tried everything I’ve found from other people with the same problem and I can’t fix it. The code is this: My HTML…
-
-2
votes1
answer119
viewsWhy am I getting this error "Operationalerror at /admin/core/comment"?
When I try to access the Commnets field in my admin area I get this error. Why? OperationalError at /admin/core/comment/ no such column: core_comment.content Request Method: GET Request URL:…
-
-2
votes2
answers88
viewsDjango/Python primary key generator with low collision risk and good performance
GENERATING UNIQUE PRIMARY APPLICATION KEYS I would like to get tips on how to generate primary keys with low risk of collision and that do not reduce the performance of Postgresql operations.…
-
-2
votes1
answer28
viewsYou’re not saving the picture on the way
I’m creating a field of ImageField no Jango, but when I put to save, it saves in the bank the name of the image but does not save the path to the image. models: class Cliente(models.Model): photo =…
-
-2
votes1
answer168
viewsType Object 'datetime.datetime' has no attribute 'datetime'
I have a view that matters some functions of a model, and when I import the model within the view, I have a problem with datetime. The function that exists in the model works perfectly, but in the…
-
-2
votes1
answer22
viewsReverse for 'add' with keyword Arguments '{'product_id': 2}' not found. 1 Pattern(s) tried: ['Cart/add/<int:product_id>/']
Hello I’m studying Django and following a tutorial I got to the part of adding a product to my shopping bag, but when I click the add button in the bag it returns this error: Traceback takes me to…
-
-2
votes1
answer54
viewsHow to create a button to change a text in my html with data coming from Django’s models.py?
I’m starting to work with Django and I’m starting a test to solidify what I’ve been learning. The idea is a single page, which displays a phrase as soon as the site opens. Below the phrase, there is…
-
-2
votes1
answer23
viewsshow value instead of foreign key DJANGO API
Model from django.db import models from django.contrib.auth.models import User user_agent = models.ForeignKey(User, on_delete=models.CASCADE) def __str__(self): return self.name VIEWS from…
-
-3
votes1
answer532
viewsStarting in Python Django
I am a web programmer working with Zendphp OS linux Ubuntu and decided to migrate to python. I have some questions. Python is an interpreted language! which server I will have to install so that…
-
-3
votes1
answer65
viewsScript that is in Javascript for Python
am with the following Javascript function: function main() { let data = fazGet("https://economia.awesomeapi.com.br/json/all"); let moedaJSON = JSON.parse(data); console.log(moedaJSON) const keys =…
-
-3
votes1
answer44
viewscomp make that a variable of a database has the total of records that another bank owns?
opa, me nome antonio, I’m starting in December, I’m creating an application where I need the totmatérias attribute of the table "Writer" to have the number of news written by that writer that is…
python python-3.x django web-application django-templatesasked 3 years, 7 months ago Antonio Pacheco 27 -
-3
votes1
answer37
viewsDelete method does not work
I am creating a PDF upload application (for educational purposes), I have a page that lists all the books, one to upload, and another that shows the information. I have two methods that use the…
-
-4
votes1
answer235
views"Roadmap" for learning
I study analysis and systems development and I’m after an internship, I did the interview and the employer asked me to study python, someone has some recommendation of "paths" to learn python? For…
-
-4
votes1
answer190
viewsWhat’s the difference between Django and Flask
What is the difference between Django and flask framework benefits and which one is currently most used in the market?
-
-4
votes1
answer58
viewsHow to create a website with the server pc using only Python?
summary explanation think of the site as an app. I need to create a mobile app that accesses functions on the pc via commands. when it comes to handling the commands and the function call I even…