I have configured login and logout redirect setting in Django settings as below - LOGOUT_REDIRECT_URL = '/login/' LOGIN_REDIRECT_URL = '/locations/' However,
in my Django store I have a basket which in views.py has the class: class BasketAddView(View): def post(self, request, *args, **kwargs): basket = B
PasswordResetDoneView.as_view is not loading custom template I'm using Django 2.2 version I have created a custom template and add the path to accounts app url
This is the error I am facing Not Found: /assets/vendor/venobox/venobox.css Not Found: /assets/vendor/boxicons/css/boxicons.min.css Not Found: /assets/vendor/ow
My Models: def upload_to(instance, filename): return 'images/{filename}'.format(filename=filename) class StreamPlatform(models.Model): name = m
What is the difference between Response and HttpResponse in django? I am a bit confused. from rest_framework.response import Response Return Respose and from d
I'm trying to set up a basic forum site for my coworkers to use. The problem is that when I attempt to log in to the site, no POST request is sent (shown by the
Perhaps it is just because I've never set up an e-mail system on Django before, or maybe I'm missing it... but does anyone have any insight on how to properly c
I'm new to Django. How to write COALESCE sql queryset in to django orm. query = 'SELECT COALESCE(max(CAST(order_no as UNSIGNED)), 0) as o,id from nanossc_Sales
This is my code associated with the form: # models class Date(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE, null=True) place
[NOTE: This is using Django 4.0.2, Python 3.8.2, and Postgres 14.2.] I have successfully set up Django and Postgres, and I can get them to work together when I
I'm creating an app containing 3 multiple choice questions. The second multiple choice options are dependent on the response to the first question. To accomplis
I'm trying to cancel one "posted" delivery when the user clicks on the button "cancel", but it cancels all the posted deliveries below is the views.py . views d
In my template I have for loop. As you can see the id for each radiobutton is represented by {{stud.id}} . {{stud.nameAndSurname}} shows the name and the surnam
I just started using session in Django framework. I have create an object cart from Cart model. And when i wan to set cart inside request.session with session['
I'm trying to generate a data structure following this sample: [ { "name": "groupname", "key": "grouping1", "base_templates": [ { "i
Following the documentation and online tutorials on setting up my gunicorn.service results in ModuleNotFoundError: No module named 'my-app' when I run sudo syst
So i want to make models form to upload file mp3. I was copy the code from website, but suddenly it's not work. there's no error message in terminal or console
I have developed a web app in Django and deployed it then I found out that admin page is not loading with CSS. I was gettting the admin page with css in local s
I have a dockerized DRF project with installed NGINX in it. All works fine except one thing: Django debug toolbar requires INTERNAL_IPS parameter to be specifie