You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had trouble with the generate_all method. Any ideas? generate(template) works, however.
Django version 1.5b2, using settings 'sagesse.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Users/Eric/Projects/sagesse-env/lib/python2.7/site-packages/django/core/management/__init__.py", line 453, in execute_from_command_line
utility.execute()
File "/Users/Eric/Projects/sagesse-env/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/Eric/Projects/sagesse-env/lib/python2.7/site-packages/django/core/management/__init__.py", line 263, in fetch_command
app_name = get_commands()[subcommand]
File "/Users/Eric/Projects/sagesse-env/lib/python2.7/site-packages/django/core/management/__init__.py", line 109, in get_commands
apps = settings.INSTALLED_APPS
File "/Users/Eric/Projects/sagesse-env/lib/python2.7/site-packages/django/conf/__init__.py", line 52, in __getattr__
self._setup(name)
File "/Users/Eric/Projects/sagesse-env/lib/python2.7/site-packages/django/conf/__init__.py", line 47, in _setup
self._wrapped = Settings(settings_module)
File "/Users/Eric/Projects/sagesse-env/lib/python2.7/site-packages/django/conf/__init__.py", line 130, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/Users/Eric/Projects/sagesse-env/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/Users/Eric/Projects/sagesse/sagesse/settings.py", line 135, in <module>
print env.jsjinja.generate_all()
File "/Users/Eric/Projects/sagesse-env/lib/python2.7/site-packages/jsjinja/__init__.py", line 35, in generate_all
return ';'+';\n'.join(map(self.generate,templates))+';'
File "/Users/Eric/Projects/sagesse-env/lib/python2.7/site-packages/jsjinja/__init__.py", line 26, in generate
source, fn, _ = self.environment.loader.get_source(self.environment,filename)
File "/Users/Eric/Projects/sagesse-env/lib/python2.7/site-packages/jinja2/loaders.py", line 240, in get_source
return source.decode(self.encoding), filename, uptodate
File "/Users/Eric/Projects/sagesse-env/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 3131: invalid start byte
I've had trouble with the
generate_all
method. Any ideas?generate(template)
works, however.Here is the folder structure:
The code:
The text was updated successfully, but these errors were encountered: