skip to Main Content

Docker and django No module named 'corsheaders'

Im trying to dockerize an existing django project. I have corsheaders installed and its included in my installed apps as follows: INSTALLED_APPS = [ 'corsheaders', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ] and in the middleware MIDDLEWARE = [ 'corsheaders.middleware.CorsMiddleware',…

VIEW QUESTION

Why is the route correct but still giving 404 error on Django

I got a 404 error on my website when accessing the correct route, did I do something wrong urls.py handles the main route from django.contrib import admin from django.urls import path,include,re_path urlpatterns = [ path('admin/', admin.site.urls), re_path(r'api/facebook/(.+?)', include('apifacebooks.urls')), path('', include('app.urls')),…

VIEW QUESTION
Back To Top
Search