krisfields / django-baker

Adds a management command that generates views, forms, urls, admin, and templates based off the contents of models.py
BSD 3-Clause "New" or "Revised" License
389 stars 51 forks source link

python 3 support? #2

Closed nordbit closed 9 years ago

nordbit commented 9 years ago
  File "/srv/bbb/lib/python3.4/site-packages/django_baker/management/commands/bake.py", line 54
    print app_label, model_names
                  ^
SyntaxError: Missing parentheses in call to 'print'

Python 2 only?

marmalodak commented 9 years ago

It's easy to make this work with Python 3.

diff --git a/django_baker/bakery.py b/django_baker/bakery.py index ff04ef3..754e4f1 100644 --- a/django_baker/bakery.py +++ b/django_baker/bakery.py @@ -16,7 +16,7 @@ class Baker(object): """ Iterates a dictionary of apps and models and creates all the necessary files to get up and running quickly. """

timonweb commented 9 years ago

Actually added pull request that adds Python 3 support: https://github.com/krisfields/django-baker/pull/3

krisfields commented 9 years ago

Thanks everyone! I've merged in the PR.