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

django 1.8? #11

Closed
Guest007 opened this issue Oct 9, 2015 · 5 comments
Closed

django 1.8? #11

Guest007 opened this issue Oct 9, 2015 · 5 comments

Comments

@Guest007
Copy link

Guest007 commented Oct 9, 2015

Hi
Is this version ready for Django 1.8 or 1.9?
I've got this error:

$ ./manage.py compilescss

Traceback (most recent call last):
  File "./manage.py", line 14, in <module>
    execute_from_command_line(sys.argv)
  File "/home/guest007/.virtualenvs/1/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 351, in execute_from_command_line
    utility.execute()
  File "/home/guest007/.virtualenvs/1/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 343, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/guest007/.virtualenvs/1/local/lib/python2.7/site-packages/django/core/management/base.py", line 394, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/guest007/.virtualenvs/1/local/lib/python2.7/site-packages/django/core/management/base.py", line 445, in execute
    output = self.handle(*args, **options)
  File "/home/guest007/.virtualenvs/1/local/lib/python2.7/site-packages/sass_processor/management/commands/compilescss.py", line 31, in handle
    templates = self.find_templates()
  File "/home/guest007/.virtualenvs/1/local/lib/python2.7/site-packages/sass_processor/management/commands/compilescss.py", line 42, in find_templates
    for loader in self.get_loaders():
  File "/home/guest007/.virtualenvs/1/local/lib/python2.7/site-packages/sass_processor/management/commands/compilescss.py", line 66, in get_loaders
    from django.template.loader import (find_template_source as finder_func)
ImportError: cannot import name find_template_source
@jrief
Copy link
Owner

jrief commented Oct 9, 2015

Sorry, for not having fixed this yet.
Can you please check the 1.8 release notes. Somtimes they only changed the location of the method, then its really easy to find and fix these problems.
Thanks, Jacob

@Guest007
Copy link
Author

find_template_source deprecated since Django 1.2.7 as I can found.
Django 1.8 has new template loader due to support custom template engines

@frostbtn
Copy link
Contributor

I've fixed it by back-porting template walker again from django-compressor.
Pull request 13.
Or install from my fork:

pip uninstall django-sass-processor
pip install https://github.com/frostbtn/django-sass-processor/zipball/master

@Guest007
Copy link
Author

@frostbtn thank you! I'l try.
For now I'm solved my trouble by using Tamarabyte's fork.

@jrief
Copy link
Owner

jrief commented Dec 3, 2015

@Guest007 can this be closed now?

@Guest007 Guest007 closed this as completed Dec 3, 2015
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

3 participants