Wednesday, 15 April 2015

python - Why doesn't this PyCharm/Django example find the required app? -



python - Why doesn't this PyCharm/Django example find the required app? -

working through illustration create sure works:

http://www.jetbrains.com/pycharm/quickstart/django_guide.html

i'm way downwards @ "creating models"

i here:

first, select sql suggestion list, , take desired application name. command generates sql statements both classes of polls application:"

i open manage.py, press ctrl+alt+r , little window select application.

first left @ first selection appeared "admin". worked resulted in unrelated.

i re-ran , time selected "polls". next error message:

commanderror: app label polls not found. sure installed_apps setting correct?

not sure now. not familiar django. here's installed_apps:

installed_apps = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'polls', )

python django pycharm

No comments:

Post a Comment