Django: app with label XYZ could not be found. Are you sure your INSTALLED_APPS setting is correct?

django, python

Solution

The app name on that you add to your installed apps should most likely be just `xyz`. Not `project_dir.app_name`

And to reaffirm what jvc26 asked. Django 1.1 is pretty custy, why are you starting with it instead of 1.4?

Problem

I'm trying to follow the Django tutorial (for v1.1) here. the problem that I'm running into is that it won't recognize my sample test app. For instance, I'm working in /home/user1234/rst . I can successfully run the server from there and create an app. However, if I create app "xyz" and then append 'rst.xyz' to my installed_apps list in settings.py, it doesn't seem to work. I get the following error message: ``` Error: App with label xyz could not be found. Are you sure your INSTALLED_APPS setting is correct? ``` I do see that there Near duplicate question, but the suggestions didn't seem to help. My settings.py file includes: ``` INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'rst.xyz', ``` ) I have confirmed that mysql is running and that I can connect to the database. I am also running postresql and apache on the same machine (I'm not sure if that would cause an error). Also, this might help: ``` python -c "import sys; print sys.path" ['', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib/python2.6/dist-packages', '/usr/lib/pymodules/python2.6', '/usr/lib/pymodules/python2.6/gtk-2.0', '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode', '/usr/local/lib/python2.6/dist-packages'] ``` If anyone has any suggestions, I'd love to hear them!

Original source