Category "django"

Django with postgresql deployment on aws elastic beanstalk

I’ve been trying to deploy a django application with postgresql db on aws elastic beanstalk and i ran into many issues that i surfed and solved. Now the a

Django 404 error-page not found, how can I solve this problem?

My project is named main, and when I runserver I get this error.Anybody have any clue how to fix this error. Page not found (404) Request Method: GET Request UR

TypeError: 'module' object is not callable (+static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT))

here is my django project's urls.py from django.urls import path from .import views from django.conf import settings from django.conf.urls import static urlpa

How to connect Kafka consumer to Django app? Should I use a new thread for consumer or new process or new docker container?

I have Django app which should consume Kafka messages and handle it with my handlers and existing models. I use https://kafka-python.readthedocs.io/en/master/us

Django - Joining after filtering

Imagine there are a model and a view: class Task(models.Model): title = models.CharField(...) message = models.TextField(...) performer = models.For

White blank page when I deploy my (React.js & Django) app to Heroku

I'm beginner and the project works perfectly locally , but when I deploy on Heroku I get a blank page. I also connected my Heroku to GitHub and and I made a bui

Django admin: section in app without creating a model

I need a custom section of application on admin site. It must not consider any model (proxy, unmanaged, etc), without template overriding, just a "phantom" appl

Django digital ocean droplet isn't showing the website when connected with a namecheap domain

So I'm using a Django Digital Ocean droplet to run a website. I recently tried connecting the IP address of the droplet to a namecheap domain name, but when I c

Django: (fields.E300) Field defines a relation with 'Class' model , which is either not installed, or is abstract

Class model is a foreign key in File model I have no idea what causes the error above,I searched it and it mostly occurs when working with models in different

Heroku / Redis Connection error on Python/Django Project

I'm trying to set up django so it send automatic email when a certain date in my models i reached. However i setup a Heroku-Redis server and am trying to connec

What in this python program can make my memory goes to sky and freeze the program?

I have written a python program that connect to my mqtt server and process the data! BUt the memory start very low and get higher and higher over time! I would

What is the difference in localhost:8000 and http://127.0.0.1:8000?

I am running a Django project with react redux (trying to implement authentication system) and the very weird thing i observed that my site is rendering properl

How to make Dropdown with input field in django form

I am a noob to django and python 😥 I have a django form, it needs a dropdown menu with input field to enter the text which is not listed in dropdown. Is

Google Calendar API authorization working on localhost but not on Heroku

I want to use the Google Calendar API for my Django application. I have followed the instructions here: https://karenapp.io/articles/how-to-automate-google-cale

An error occurred while packaging. Using pyinstaller

I'm trying to build a python file into a exe file. I don't get it since it builds on some days and gives errors on others. The python script works normally when

Issue with CSS file in Django

Trying to load a css file into my base.html file. When I load the webpage, it is not updating the webpage with the css styling I loaded. Everything is running a

How to render a new user registration form from a model ViewSet in Django Rest frame work

class RegisterViewSet(viewsets.ModelViewSet): http_method_names = ["post"] permission_classes = (AllowAny,) serializer_class = RegisterSerializer

Django dumpdata serializing an int as string

I've been trying to make a custom class/type, defined in a separate db.py file, to be properly serialized as an int when doing a manage.py dumpdata command, but

The response content must be rendered before it can be iterated over. Django Rest Framework

I have a Cart model and Cartserializers. I am trying to do that is if cart defects exist in the cart and then update the cart by increasing the quantity of cart

How to get foreign key detailed values based on id in html template in django

In Models.py class Interview(models.Model): Current_Date = models.DateField(auto_now_add=True ) User = models.ForeignKey(User,