Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
1 answer
62 views

What is wrong with my GET and PUT test commands?

For my CRUD in Django the POST and DELETE tests are working: curl -X POST http://localhost:8000/user/ -H "Content-Type: application/json" -d "{\"username\": \"john_doe\&...
marc.mitrasca's user avatar
0 votes
1 answer
20 views

Optimized way to handle user graded items?

I'm working on website that allows users to grade items, e.g. books. The grade should be displayed on the book page, but also on the collective page containing all books. The grades should be possible ...
oboer's user avatar
  • 157
0 votes
0 answers
25 views

ImproperlyConfigured` Error When Deploying Django to Vercel with Supabase PostgreSQL

I'm currently trying to deploy my Django project to Vercel, using Supabase as the PostgreSQL database provider. I have separated my settings into base.py, development.py, and production.py to manage ...
snipher marube's user avatar
1 vote
0 answers
46 views

I got Column error each time i change model.py [duplicate]

When i want to change or add one more model in Models.py , i got this error : OperationalError at /admin/groups/group/ no such column: groups_group.کد it only happens when it is the second time that ...
amirali mirzaei zadeh's user avatar
0 votes
0 answers
35 views

Django: subclass, separate class or entirely separate classes

I'm building a forum app in Django as a learning project. I'm unsure of how to approach the creation of Post objects. I want users to be able to post threads (i.e. new topic), I want users to be able ...
Shiny_and_Chrome's user avatar
0 votes
0 answers
55 views

django_get_or_create doesn't let me create instances

I'm using ModelFactory through SubFactory and there was django_get_or_create Meta field with ('code') inside. I put my 2 new added to model fields to this field django_get_or_create and it literally ...
Paul Allen's user avatar
0 votes
1 answer
42 views

How to fetch different data into different sections in HTML?

I have a page on which there are different bootstrap accordians. I have different models stored in the database, Now I want to fetch them in proper order. class CaseStudy_list(models.Model): ...
Abheer Mehrotra's user avatar
0 votes
2 answers
66 views

Should I subclass my Django model or not?

I'm creating a simple forum app in order to learn Django. The idea is to create as much a full featured forum as I can over time, but for now this is what I have: class Post(models.Model): ...
Shiny_and_Chrome's user avatar
1 vote
1 answer
41 views

How to fetch data with the given order from the database ? (django)

I have a model in which there are different fields of data, and a field of "section-order" is given. now i want to fetch that data into the bootstrap accordians with respect to the "...
Abheer Mehrotra's user avatar
2 votes
1 answer
45 views

Undoing a migration for a duplicate field

We have had a duplicate field added to of our Django Wagtail models which has confused the migration system. The following was added to one of the models while back along with a migration that added a ...
KindOfGuy's user avatar
  • 3,191
0 votes
0 answers
20 views

Many one-to-one relationships pointing to the same model Django

I'm designing an application in Django where I have an Item model with numerous attributes for each item. I'm experiencing very poor performance in my application and I'm wondering if there are flaws ...
Josh's user avatar
  • 1
0 votes
0 answers
20 views

How to do a commit from digitalOcean periodically for saving data during the deployment into my django project

I have deploy a django project on digital ocean, the project mainly save documents like xlsx and csv, but while the web app is deploy users send documents to the platform, my question is how could I ...
Luiz2002's user avatar
0 votes
2 answers
23 views

Django models: a player can play many games and a game can be played exactly by two players?

I have a problem in my django models.. i have 2 models (tables) Player and Game as many to many relationship, and a third model as a intermediate table between them, that has player username as a ...
Mohamed ANEDDAME's user avatar
1 vote
0 answers
36 views

How to properly configure Entity Attribute Value pattern in Django?

I have a product model: class Product(models.Model): title = models.CharField(max_length=255) description = models.TextField(null=True, blank=True) category = models.ForeignKey('Category', ...
Apollo Vostok's user avatar
0 votes
1 answer
82 views

What should I do if data is not saved in Django?

I'm new to Django. And I'm faced with the problem of saving data from the form to the database. I was writing code in PyCharm. The main problem is that the data is not saved in the database. There are ...
user24993423's user avatar

15 30 50 per page
1
2 3 4 5
277