Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Django jinja integration error
Environment:
Request Method: GET
Request URL: http://localhost:8000/
Django Version: 1.6.5
Python Version: 3.4.1
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'corsheaders',
'foia_core',
'django_jinja')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')
Traceback:
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
137. response = response.render()
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django/template/response.py" in render
105. self.content = self.rendered_content
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django/template/response.py" in rendered_content
80. template = self.resolve_template(self.template_name)
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django/template/response.py" in resolve_template
56. return loader.select_template(template)
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django/template/loader.py" in select_template
180. return get_template(template_name)
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django/template/loader.py" in get_template
138. template, origin = find_template(template_name)
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django/template/loader.py" in find_template
121. loader = find_template_loader(loader_name)
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django/template/loader.py" in find_template_loader
94. TemplateLoader = import_by_path(loader)
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django/utils/module_loading.py" in import_by_path
21. module = import_module(module_path)
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/importlib/__init__.py" in import_module
109. return _bootstrap._gcd_import(name[level:], package, level)
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django_jinja/loaders.py" in <module>
9. from django_jinja.base import env
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django_jinja/base.py" in <module>
299. env.initialize()
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django_jinja/base.py" in initialize
161. self.initialize_thirdparty_templatetags()
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django_jinja/base.py" in initialize_thirdparty_templatetags
285. self.preload_templatetags_modules()
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django_jinja/base.py" in preload_templatetags_modules
269. for app_path, mod_path in self.get_templatetags_modules_list():
File "/Users/jacquelinekazil/Projects/envs/foia-core/lib/python3.4/site-packages/django_jinja/base.py" in get_templatetags_modules_list
257. mod_list.append((app_path, os.path.dirname(mod.__file__)))
Exception Type: AttributeError at /
Exception Value: 'module' object has no attribute '__file__'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment