dvshnt / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

OperationalError: no such table: tagging_tag #148

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create project, install into settings.py django, photologue, NOT 
django-tagging, but have django-tagging available on 
python path
2. click 'add gallery' in admin, insert values, click 'save' 

What is the expected output? What do you see instead?
django throws the following error:

sqlite3.OperationalError
OperationalError: no such table: tagging_tag

What version of the product are you using? On what operating system?
django VERSION = (1, 1, 1, 'final', 0)
photologue VERSION = (2, 3)

Please provide any additional information below.

i believe the problem is that django tagging was on my python path, but not 
installed in the django project's settings.py. 
removing django-tagging from the python path, deleting the database, and 
resyncing the database solved the problem.

i think this issue could be avoided by checking if django-tagging is actually 
installed in the django project, as opposed 
to only checking if it's on the python path. see attached patch for models.py, 
lines 36-42.

Original issue reported on code.google.com by ammac...@gmail.com on 7 Jan 2010 at 12:05

Attachments:

GoogleCodeExporter commented 8 years ago
it's because you should install http://code.google.com/p/django-tagging/ - 
tagging application.

sudo pip install django-tagging
and then
python manage.py syncdb

i did it and everything works perfect.

Original comment by istinspr...@gmail.com on 13 Jun 2011 at 7:46

GoogleCodeExporter commented 8 years ago
The problem is that django-tagging is not, and should not be, a requirement to 
use django-photologue

Original comment by devioust...@gmail.com on 13 Jun 2011 at 4:57