application call . TypeError: view must be a callable or a list/tuple in the case of include()

I am taking a course where this error does not occur my error is cod is: Exception in thread django-main-thread: Traceback (most recent call last): File “C:\Users\wuoel\AppData\Local\Programs\Python\Python38-32\lib\threading.py”, line 932, in _bo otstrap_inner self.run() File “C:\Users\wuoel\AppData\Local\Programs\Python\Python38-32\lib\threading.py”, line 870, in run self._target(*self._args, **self._kwargs) File “C:\Users\wuoel\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\utils\auto reload.py”, line 53, in wrapper fn(*args, **kwargs) File “C:\Users\wuoel\AppData\Local\Programs\Python\Python38-32\lib\site-packages\django\core\manag ement\commands\runserver.py”, line 117,…

Django: ImportError: cannot import name ‘Celery’ from ‘celery’

So I’ve installed celery and got the file celery_tasks_settings.py in my project directory next to settings.py. This I got was a way to avoid conflicts with the package itself. I also did find -name ‘*celery*.pyc’ as a way to find any celery.pyc files that may have been generated before.The result: /__pycache__/celery_tasks.cpython-38.pyc /__pycache__/celery_tasks_settings.cpython-38.pyc Unfortunately, I still…

MemoryError when importing json in system python

When I enter the system python3.6 and import json, I get the following stack trace: Python 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0] on linux Type “help”, “copyright”, “credits” or “license” for more information. >>> import json Traceback (most recent call last): File “<stdin>”, line 1, in <module> File “/usr/lib/python3.6/json/__init__.py”, line 107, in <module>…

ModuleNotFoundError: No module named Foo – How can I import a model into a Django app’s script?

My Django skill level: noob. I am going nuts at setting the DJANGO_SETTINGS_MODULE properly to finally get my model imported within a script. I use a virtualenv for my project. This is my current error: ModuleNotFoundError: No module named ‘dashex’ And the according feeder.py script: import os import sys os.environ[‘DJANGO_SETTINGS_MODULE’] = ‘dashex.settings’ sys.path.append(‘os.path.dirname(os.path.dirname(os.path.abspath(__file__)))’) import django…

No module psycopg2 error while running ‘sudo apt-get upgrade’

After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up pgadmin4-apache2 (4.13-1.pgdg18.04+1) … Traceback (most recent call last): File “setup.py”, line 413, in setup_db() File “setup.py”, line 347, in setup_db app = create_app() File “/usr/share/pgadmin4/web/pgadmin/__init__.py”, line 400, in create_app driver.init_app(app) File “/usr/share/pgadmin4/web/pgadmin/utils/driver/__init__.py”, line 40,…

How do I declare new app in Django rest framework? It seems everything is OK but i have RuntimeError

I want to declare new app in python using Django rest framework. First I did below steps: cmd>django-admin startproject djrest . cmd>cd djrest cmd>django-admin startapp sarox cmd>cd.. DATABASES = { ‘default’: { ‘ENGINE’: ‘django.db.backends.mysql’, ‘NAME’: ‘sarox’, ‘USER’: ‘root’, ‘PASSWORD’: ‘*******’, ‘HOST’: ‘localhost’, ‘PORT’: ‘****’, } } cmd>python manage.py migrate cmd>python manage.py createsuperuser cmd>py manage.py runserver…