-
i kinda started it today and was creating a helloworld bebpage by reading in a book so after doing all kind of work i mean you all know what kind of work i am talking about then when i typed the command in power shell “python manage.py runserver” it shows like this Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x0000027210AC3A60> i dont understand what kind of error is this plz help me about this thx in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Django is looking for a set of files for an app called ‘pages’. That is, you presumably added the line
to your settings.py file. But Django cannot ‘find’ it, and thus the error. There are a bunch of different reasons why Django might not be able to “find” it.
Note that PagesConfig has different case from what you probably entered.
If you called your app something else, you have to put the appropriate line in settings.py. You might try looking at this or this for some more details on the pages app. This should give you some more background on your error. |
Beta Was this translation helpful? Give feedback.
Django is looking for a set of files for an app called ‘pages’. That is, you presumably added the line
to your settings.py file. But Django cannot ‘find’ it, and thus the error.
There are a bunch of different reasons why Django might not be able to “find” it.
Did you check that the case is correct? Any sample I see where the app “pages” is being created, the line to put in settings.py is
‘pages.apps.PagesConfig’,
Note that PagesConfig has different case from what you probably entered.
Did you create an app called “pages”? I.e. did you do:
$ django-admin startproject pages_project .
$ python manage.py startapp pages
If you called your app something else,…