Skip to content

error on making helloworld webpage on django #21370

Answered by fire-eggs
XFrevert asked this question in General
Discussion options

You must be logged in to vote

Django is looking for a set of files for an app called ‘pages’. That is, you presumably added the line

'pages.apps.pagesconfig',

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.

  1. 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.

  1. 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,…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants