djangobars icon indicating copy to clipboard operation
djangobars copied to clipboard

from djangobars.response import HandlebarsResponse not found

Open tony opened this issue 11 years ago • 0 comments


Traceback (most recent call last):
  File "/home/tony/site-django/.env/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 87, in get_response
    response = middleware_method(request)
  File "/home/tony/boostable/site-django/.env/local/lib/python2.7/site-packages/newrelic-2.22.1.20/newrelic/hooks/framework_django.py", line 221, in wrapper
    return wrapped(*args, **kwargs)
  File "/home/tony/boostable/site-django/.env/local/lib/python2.7/site-packages/django/middleware/common.py", line 72, in process_request
    if (not urlresolvers.is_valid_path(request.path_info, urlconf) and
  File "/home/tony/site-django/.env/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 614, in is_valid_path
    resolve(path, urlconf)
  File "/home/tony/site-django/.env/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 489, in resolve
    return get_resolver(urlconf).resolve(path)
  File "/home/tony/site-django/.env/local/lib/python2.7/site-packages/newrelic-2.22.1.20/newrelic/hooks/framework_django.py", line 546, in wrapper
    return _wrapped(*args, **kwargs)
  File "/home/tony/site-django/.env/local/lib/python2.7/site-packages/newrelic-2.22.1.20/newrelic/hooks/framework_django.py", line 534, in _wrapped
    result = wrapped(path)
  File "/home/tony/site-django/.env/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 338, in resolve
    for pattern in self.url_patterns:
  File "/home/tony/site-django/.env/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 367, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/home/tony/site-django/.env/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 361, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "boostable/core/urls.py", line 10, in <module>
    from .views import MyView, MyView2
  File "boostable/core/views.py", line 6, in <module>
    from djangobars.template.response import HandlebarsResponse
  File "/home/tony/site-django/.env/local/lib/python2.7/site-packages/djangobars/template/response.py", line 2, in <module>
    from .template import HandlebarsTemplate
ImportError: No module named template

I think this has to do with the way imports are structured. I am looking in Django's source to see how they organize it.

tony avatar Aug 24 '14 21:08 tony