urls.py -> ''''from django.contrib import admin from django.urls import path from Administrator import views admin.site.index_template = 'admi
I have a character field that's utf8 I want it to be utf8mb4, how do I accomplish that with Django's migrations?
I want to listen to an existing SQS queue through Celery. I have already done publishing to Queue via celery and then consuming from that queue through workers
The Django docs show how to return the last page of a paginated queryset using a function-based view by catching the EmptyPage exception. What's the easiest wa
I'm using an app that allows me to post forms responses, from an html template, asynchronously. I've verified that my POST works fine, but I'm having trouble wi
I am developing an application (simple online store) with Python Django I have created a base.html file in templates and then all other html files extends from
I am trying to set up a view to received a JSON notification from an API. I'm trying to figure out how to get the JSON data, and I currently have this as a star
I'm coding a book store and on the single product page above the title of the book I have a link that directs the customer to the author profile page. The link
I create a registation app, where users can register providing a username, email and a password. What I did is make sure that the email field is unique(as you c
I'm trying to install suit, I entered this command : pip install https://github.com/darklow/django-suit/tarball/v2 and wrote this code : from suit.apps import D
I've got an api made in Django which has two models linked by a ManyToMany relation. class Type(models.Model): name = models.CharField(max_length=64) ap
I have a Django form with a RegexField, which is very similar to a normal text input field. In my view, under certain conditions I want to hide it from the use
Having an error when trying to set choices on model field. Here's the code: TICKET = 'TICKET', TICKET_HISTORY = 'TH' TICKET_RATE = 'TR' PASSWORD_CHANGE = 'PASS
I have a many-to-many relationship between two classes (Lesson and Student), with an intermediary class (Evaluation). I am trying to set up a form which will a
I am using SQlAlchemy in my web project. What should I use - scoped_session(sessionmaker()) or plain sessionmaker() - and why? Or should I use something else?
I have a custom user model that has a username field with a max_length=50. Under the custom registration form, it throws me an error when the value of the usern
What I've been asked create is an admin page with the following layout: Fieldset 1 name Section 1 name field 1 field 2 Fieldset 2 name Section 2 name field
When I make or alter translations in Rosetta in Django backend, the po and mo files get updated. However, I don't see them directly show up in the frontend. T
How do I use Django test client.post to test a form that has a ModelChoiceField? How should the data dictionary passed to the post method be written? The way I
I am trying to debug this issue using Heroku's Foreman app. My issue is that Foreman is trying to run the process on port 5000 and at ip address 0.0.0.0. It s