Search code examples
djangodjango-paypaldjango-migrations

django paypal_ipn table does not exist


I am trying to implement django-paypal (dcramer's version) with IPN and although I get the notification, it is answered with a 500 error. I checked my debug log and I saw this message:

DatabaseError: (1146, "Table 'myproject.paypal_ipn' doesn't exist")

none of the tutorials I have found mentioned anything about pypal_ipn table. I also did a syncdb and a south migrate but the table is not created.

What am I doing wrong?

this is what I get with a syncdb:

Synced:
 > django.contrib.auth
 > django.contrib.contenttypes
 > django.contrib.sessions
 > django.contrib.sites
 > django.contrib.messages
 > django.contrib.staticfiles
 > debug_toolbar
 > grappelli
 > filebrowser
 > tinymce
 > south
 > avatar
 > django.contrib.admin
 > notification

Not synced (use migrations):
 - paypal.standard.ipn

$ python manage.py schemamigration main --auto
Nothing seems to have changed.
$ python manage.py migrate main
Running migrations for main:
- Nothing to migrate.
 - Loading initial data for main.
No fixtures found.

Solution

  • Try python manage.py migrate. That should migrate the paypal app too.

    (Moved from comment to here so the question may be closed. Apparently this did the trick.)