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

Syntax Errors #3

Open
crobertsbmw opened this issue Dec 18, 2014 · 0 comments
Open

Syntax Errors #3

crobertsbmw opened this issue Dec 18, 2014 · 0 comments

Comments

@crobertsbmw
Copy link

When following the readme I am getting syntax errors for various things:

File "/Users/croberts/pennypledge/ab/abs.py", line 1
modfrom django.template import TemplateDoesNotExist
^
SyntaxError: invalid syntax

I assumed you meant "from" instead of "modfrom" so I changed it. But then I got another error:

File "/Users/croberts/pennypledge/ab/abs.py", line 48
raise TemplateDoesNotExist, template_name
^
SyntaxError: invalid syntax

I then changed line 48 to read
raise TemplateDoesNotExist(template_name)

But then I start to get this error:

cannot import name 'load_template_source'

I have included in my settings.py:

TEMPLATE_LOADERS = (
'ab.loaders.load_template_source',
'django.template.loaders.filesystem.load_template_source',
)

in my app when before I didn't have anything defined in template loaders.

I haven't been able to get passed this error yet.
I don't know if these errors are because I am running python3 or django1.7?

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