-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Hello,
Does this project support Django 2.0 running on Python 3.6?
I get the following error using bake.
Traceback (most recent call last):
File "manage.py", line 15, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 365, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 335, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.6/site-packages/django_baker/management/commands/bake.py", line 23, in handle
baker.bake(ingredients)
File "/usr/local/lib/python3.6/site-packages/django_baker/bakery.py", line 28, in bake
self.create_init_files(app, model_names.keys(), models)
File "/usr/local/lib/python3.6/site-packages/django_baker/bakery.py", line 70, in create_init_files
"model_names_dict": model_names_dict
File "/usr/local/lib/python3.6/site-packages/django_baker/bakery.py", line 120, in create_file_from_template
new_file.write(get_template(template_path).render(Context(context_variables)))
File "/usr/local/lib/python3.6/site-packages/django/template/backends/django.py", line 59, in render
context = make_context(context, request, autoescape=self.backend.engine.autoescape)
File "/usr/local/lib/python3.6/site-packages/django/template/context.py", line 274, in make_context
raise TypeError('context must be a dict rather than %s.' % context.__class__.__name__)
TypeError: context must be a dict rather than Context.
Metadata
Metadata
Assignees
Labels
No labels