I am working through Chapter 4 of Practical Django Projects for Django
1.1.  After creating a new app, "coltrane", and adding a Category
class to its models.py file, I ran syncdb and everything worked.
Tables were added to the database and the admin interface included the
new Category model.

After completing the steps through page 62, adding a new Entry class
to the same models.py file, syncdb would not update.  I tried to
flush, reset, and even deleted the entire sqlite3 database file (and
even a postgresql version which was also working), then ran it again.
Only the Django core tables were created (like "auth") and the
directory's custom models (from the "cms" project).  Nothing on the
PYTHONPATH was created.

The offending app, "coltrane" lives in /home/matthew/dev/source.  An
third-party "tagging" app lives in /home/matthew/dev/
external_source.

Here is my PYTHONPATH:
/home/matthew/dev/source:/home/matthew/dev/external_source

Here is my INSTALLED_APPS:

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'django.contrib.admindocs',
    'django.contrib.flatpages',
    'cms.search',
    'coltrane',
    'tagging',
)

Also of note, when I ran python manage.py reset coltrane, I got this
error:

Error: App with label coltrane could not be found. Are you sure your
INSTALLED_APPS setting is correct?

Any help is greatly appreciated!

Thanks,
Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to