Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from djangobars.response import HandlebarsResponse not found #7

Open
tony opened this issue Aug 24, 2014 · 0 comments
Open

from djangobars.response import HandlebarsResponse not found #7

tony opened this issue Aug 24, 2014 · 0 comments

Comments

@tony
Copy link

tony commented Aug 24, 2014

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 added a commit to tony/djangobars that referenced this issue Aug 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant