Closed ppython closed 7 years ago
@ppython did you try to run migrate
manage.py command? Because syncdb
was deprecated in Django, so if you are using Django 1.10, you have to run all migrations via migrate
.
Indeed!
(virtenv)hello@world:~/projects/mybeautifulproject$ ./manage.py showmigrations
watson
[ ] 0001_initial
'makemigrations', didn't produce results because there is already the initial watson migration file present !
I just updated the wiki steps to reflect this change ;)
Thanks!
On Sat, 12 Nov 2016 at 16:33 ppython notifications@github.com wrote:
Indeed! (virtenv)hello@world:~/projects/mybeautifulproject$ ./manage.py showmigrations watson [ ] 0001_initial
'makemigrations', didn't produce results because there is already [the initial watson migration] file present ( https://github.com/etianen/django-watson/blob/master/watson/migrations/0001_initial.py )!
I just updated the wiki https://github.com/etianen/django-watson/wiki/Home/_compare/35fdeebe860f8529f4157520e79e39c4783431d1...c0f2206fe306dd935b4f352f6dd309a59dee312c steps to reflect this change ;)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/etianen/django-watson/issues/189#issuecomment-260132276, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJFCPEgCCdcgEbitKuMAKZD-nzD_28Nks5q9epUgaJpZM4KwISA .
Hello,
Just trying to test django-watson on a project, followed the getting-started procedure:
(virtenv)hello@world:~/projects/mybeautifulproject$ ./manage.py installwatson --verbosity 3 Traceback (most recent call last): File "./manage.py", line 10, in <module> execute_from_command_line(sys.argv) File "/home/hello/virtualenvs/mybeautifulproject/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line utility.execute() File "/home/hello/virtualenvs/mybeautifulproject/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 359, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/hello/virtualenvs/mybeautifulproject/local/lib/python2.7/site-packages/django/core/management/base.py", line 305, in run_from_argv self.execute(*args, **cmd_options) File "/home/hello/virtualenvs/mybeautifulproject/local/lib/python2.7/site-packages/django/core/management/base.py", line 356, in execute output = self.handle(*args, **options) File "/home/hello/virtualenvs/mybeautifulproject/local/lib/python2.7/site-packages/watson/management/commands/installwatson.py", line 25, in handle backend.do_install() File "/home/hello/virtualenvs/mybeautifulproject/local/lib/python2.7/site-packages/django/utils/decorators.py", line 185, in inner return func(*args, **kwargs) File "/home/hello/virtualenvs/mybeautifulproject/local/lib/python2.7/site-packages/watson/backends.py", line 229, in do_install search_config=self.search_config File "/home/hello/virtualenvs/mybeautifulproject/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute return super(CursorDebugWrapper, self).execute(sql, params) File "/home/hello/virtualenvs/mybeautifulproject/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute return self.cursor.execute(sql, params) File "/home/hello/virtualenvs/mybeautifulproject/local/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__ six.reraise(dj_exc_type, dj_exc_value, traceback) File "/home/hello/virtualenvs/mybeautifulproject/local/lib/python2.7/site-packages/django/db/backends/utils.py", line 62, in execute return self.cursor.execute(sql) django.db.utils.ProgrammingError: relation "watson_searchentry" does not exist
My env:
Any ideas before digging farther?