0
Help with running a Django project
Hello, I'm having problems running a Django project on Ubuntu 20.04, as soon as I run the"python manage.py runserver" command I get stuck with "Exception ignored in thread started by: <function check_errors.<locals>.wrapper at 0x7f1913f04e50>" and a long list of different file locations. I would appreciate help from anyone familiar or not with Django on Linux thanks in advance
6 odpowiedzi
+ 3
It might help to share the exact error message, I know you said it was long and had a bunch of different file locations... a quick search on this error I found the below import might help
from django.conf.urls import include
+ 1
What are the permissions on the /var/mail directory? You might have to change permissions on that directory before you can access it. It also depends on what you're doing. If you are creating files and folders, you might want to modify those permissions on creation. Also, you might have to modify your "umask" so when the files and/or folders have the default permissions you need upon creation. I hope this helps
0
Thanks I will try this now
I'm using my phone to post on solo learn, I'm currently in China the solo learn site is not rendered very well, at its best it is very slow
thanks for the answer
0
Using this import "from django.conf.urls import include" I get "from: can't read /var/maildjango.conf.urls"
0
Included in the long list of file locations is a traceback that reads
Traceback (most recent call): File "manage.py", line 10, in <module> execute_from_command_lines(sys.argv)
It ends with
RuntimeError: __class__ not set defining 'AbstractBaseUser' as <class 'Django.contrib.auth.base_user.AbstractBaseUser'>. Was __classcell__ propagated to type.__new__?
0
Here the problem I was running Django 1.9 which is not supported anymore, to solve the problem i upgraded to a later version django==3.1.1