Salve gente mi trovo a dover fare un lavoro con Dhjango Oscar. Bellissimo sulla carta, un poco meno farlo partire. Dopo avere eseguito tutte le configurazioni e makemigrations e migrate, che manco un germano reale migra cosi', all'avvio del robo come provo a fare un localhost:8000 il perfido mi torna il seguente stacktrace
Traceback (most recent call last): File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run self.result = application(self.environ, self.start_response) File "/home/jester/Projects/django/oscar/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__ return self.application(environ, start_response) File "/home/jester/Projects/django/oscar/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 177, in __call__ signals.request_started.send(sender=self.__class__, environ=environ) File "/home/jester/Projects/django/oscar/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 201, in send response = receiver(signal=self, sender=sender, **named) File "/home/jester/Projects/django/oscar/local/lib/python2.7/site-packages/haystack/__init__.py", line 60, in reset_search_queries for conn in connections.all(): File "/home/jester/Projects/django/oscar/local/lib/python2.7/site-packages/haystack/utils/loading.py", line 111, in all return [self[alias] for alias in self.connections_info] File "/home/jester/Projects/django/oscar/local/lib/python2.7/site-packages/haystack/utils/loading.py", line 98, in __getitem__ self.ensure_defaults(key) File "/home/jester/Projects/django/oscar/local/lib/python2.7/site-packages/haystack/utils/loading.py", line 87, in ensure_defaults conn = self.connections_info[alias] TypeError: string indices must be integers, not str [21/Sep/2015 10:30:05] "GET / HTTP/1.1" 500 59 Da quanto riesco a capire connections_info risulta essere una stringa ma l'indice passato non e' corretto. Pero' dando una occhiata in __init__.py trovo connections = loading.ConnectionHandler(settings.HAYSTACK_CONNECTIONS) dove settings.HAYSTACK_CONNECTIONS e' settato come 'default'. A dire il vero il tutorial dice di mettere le due entry HAYSTACK_SITECONF = 'oscar.search_sites' HAYSTACK_SEARCH_ENGINE = 'dummy' solo che lanciando il manage.py la prima me la fa togliere e la seconda, prima ma la fa rinominare in HAYSTACK_CONNECTIONS e poi mi dice di assegnare come valore default. Qualche suggerimento su dove andare a ficcare il naso? Grazie Carlos -- EZLN ... Para Todos Todo ... Nada para nosotros
_______________________________________________ Python mailing list Python@lists.python.it http://lists.python.it/mailman/listinfo/python