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

19th Aug 2020, 3:52 PM
Rhosta
Rhosta - avatar
6 Antworten
+ 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
19th Aug 2020, 3:57 PM
Steven M
Steven M - avatar
+ 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
19th Aug 2020, 4:23 PM
Steven M
Steven M - avatar
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
19th Aug 2020, 4:09 PM
Rhosta
Rhosta - avatar
0
Using this import "from django.conf.urls import include" I get "from: can't read /var/maildjango.conf.urls"
19th Aug 2020, 4:15 PM
Rhosta
Rhosta - avatar
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__?
19th Aug 2020, 4:25 PM
Rhosta
Rhosta - avatar
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
11th Sep 2020, 7:48 PM
Rhosta
Rhosta - avatar