jonasundderwolf / django-image-cropping

Django helper application to easily and non-destructively crop arbitrarily large images in admin and frontend.
Other
553 stars 130 forks source link

no such table: example_image #129

Closed NightHawk451 closed 5 years ago

NightHawk451 commented 5 years ago

I install the example and all of the requirements and when I run it and go to the base webpage (127.0.0.1:8000) I get this error messag: no such table: example_image Which comes from here:

image = Image.objects.all()[0]

Not sure what is going on

fredericrous commented 5 years ago

python manage.py migrate ?

anrie commented 5 years ago

The example app doesn't have migrations, so you need to call manage.py migrate --run-syncdb to create the necessary tables for the example app. (See: https://docs.djangoproject.com/en/2.1/ref/django-admin/#cmdoption-migrate-run-syncdb)