{"action":"created","issue":{"url":"https://api.github.com/repos/jrief/django-sass-processor/issues/4","labels_url":"https://api.github.com/repos/jrief/django-sass-processor/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/jrief/django-sass-processor/issues/4/comments","events_url":"https://api.github.com/repos/jrief/django-sass-processor/issues/4/events","html_url":"https://github.com/jrief/django-sass-processor/issues/4","id":78206499,"number":4,"title":"django.template.base.TemplateDoesNotExist: test","user":{"login":"drivard","id":643002,"avatar_url":"https://avatars.githubusercontent.com/u/643002?v=3","gravatar_id":"","url":"https://api.github.com/users/drivard","html_url":"https://github.com/drivard","followers_url":"https://api.github.com/users/drivard/followers","following_url":"https://api.github.com/users/drivard/following{/other_user}","gists_url":"https://api.github.com/users/drivard/gists{/gist_id}","starred_url":"https://api.github.com/users/drivard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drivard/subscriptions","organizations_url":"https://api.github.com/users/drivard/orgs","repos_url":"https://api.github.com/users/drivard/repos","events_url":"https://api.github.com/users/drivard/events{/privacy}","received_events_url":"https://api.github.com/users/drivard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-19T18:46:49Z","updated_at":"2015-05-21T04:12:14Z","closed_at":null,"body":"Hi, \r\n\r\nI need help to understand why I cannot compile the scss for production environment.\r\n\r\n\tDjango==1.7.7\r\n\tdjango-sass-processor==0.2.2\r\n\tdjango-compressor==1.5\r\n\r\nwhen trying to run the command line :\r\n\t\r\n        python manage.py compilescss\r\n\t\r\nI am getting this error:\r\n\t\r\n\r\n\tTraceback (most recent call last):\r\n\t  File \"manage.py\", line 10, in <module>\r\n\t    execute_from_command_line(sys.argv)\r\n\t  File \"~/virtualenvs/blog/lib/python2.7/site-packages/django/core/management/__init__.py\", line 385, in execute_from_command_line\r\n\t    utility.execute()\r\n\t  File \"~/virtualenvs/blog/lib/python2.7/site-packages/django/core/management/__init__.py\", line 377, in execute\r\n\t    self.fetch_command(subcommand).run_from_argv(self.argv)\r\n\t  File \"~/virtualenvs/blog/lib/python2.7/site-packages/django/core/management/base.py\", line 288, in run_from_argv\r\n\t    self.execute(*args, **options.__dict__)\r\n\t  File \"~/virtualenvs/blog/lib/python2.7/site-packages/django/core/management/base.py\", line 338, in execute\r\n\t    output = self.handle(*args, **options)\r\n\t  File \"~/virtualenvs/blog/lib/python2.7/site-packages/sass_processor/management/commands/compilescss.py\", line 28, in handle\r\n\t    templates = self.find_templates()\r\n\t  File \"~/virtualenvs/blog/lib/python2.7/site-packages/sass_processor/management/commands/compilescss.py\", line 39, in find_templates\r\n\t    for loader in self.get_loaders():\r\n\t  File \"~/virtualenvs/blog/lib/python2.7/site-packages/sass_processor/management/commands/compilescss.py\", line 68, in get_loaders\r\n\t    finder_func('test')\r\n\t  File \"~/virtualenvs/blog/lib/python2.7/site-packages/django/template/loader.py\", line 136, in find_template\r\n\t    raise TemplateDoesNotExist(name)\r\n\tdjango.template.base.TemplateDoesNotExist: test\r\n\t\r\n\t\r\nWhen looking at the code, it pass by the line 61 of ```compilescss.py```\r\n\r\n\tfrom django.template.loader import (\r\n\t                    find_template as finder_func)\r\n\t\t\t\t\t\t\r\nand then it fails at line 68 of the same file which is in a try catch\r\n\r\n\t\t\ttry:\r\n                # Force Django to calculate template_source_loaders from\r\n                # TEMPLATE_LOADERS settings, by asking to find a dummy template\r\n                finder_func('test')\r\n            except TemplateDoesNotExist:\r\n                pass\r\n\t\t\t\t\r\nCan you help me figure out why this is happening?\r\n\r\nMy settings are:\r\n\r\n\tin INSTALLED_APPS\r\n\t'sass_processor',\r\n\t'compressor',\r\n\t\r\n\tSTATICFILES_FINDERS = (\r\n\t    'django.contrib.staticfiles.finders.FileSystemFinder',\r\n\t    'django.contrib.staticfiles.finders.AppDirectoriesFinder',\r\n\t    'compressor.finders.CompressorFinder',\r\n\t    'sass_processor.finders.CssFinder',\r\n\t)\r\n\r\n\tCOMPRESS_PRECOMPILERS = (\r\n\t    ('text/x-scss', 'django_libsass.SassCompiler'),\r\n\t)\r\n\r\n\tCOMPRESS_ENABLED = False\r\n\tCOMPRESS_OFFLINE = True\r\n\tSASS_PROCESSOR_ENABLED = True\r\n\tSASS_PROCESSOR_ROOT = STATIC_ROOT + '/sass'\r\n\t\r\n\r\n\r\n\tTEMPLATE_LOADERS = (\r\n\t    'django.template.loaders.filesystem.Loader',\r\n\t    'django.template.loaders.app_directories.Loader',\r\n\t)\r\n\r\nI even tried to set SASS_PROCESSOR_ENABLED = False which didn't change anything.\r\n\r\nRegards\r\nDominick"},"comment":{"url":"https://api.github.com/repos/jrief/django-sass-processor/issues/comments/104127531","html_url":"https://github.com/jrief/django-sass-processor/issues/4#issuecomment-104127531","issue_url":"https://api.github.com/repos/jrief/django-sass-processor/issues/4","id":104127531,"user":{"login":"drivard","id":643002,"avatar_url":"https://avatars.githubusercontent.com/u/643002?v=3","gravatar_id":"","url":"https://api.github.com/users/drivard","html_url":"https://github.com/drivard","followers_url":"https://api.github.com/users/drivard/followers","following_url":"https://api.github.com/users/drivard/following{/other_user}","gists_url":"https://api.github.com/users/drivard/gists{/gist_id}","starred_url":"https://api.github.com/users/drivard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drivard/subscriptions","organizations_url":"https://api.github.com/users/drivard/orgs","repos_url":"https://api.github.com/users/drivard/repos","events_url":"https://api.github.com/users/drivard/events{/privacy}","received_events_url":"https://api.github.com/users/drivard/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T04:12:14Z","updated_at":"2015-05-21T04:12:14Z","body":"I did a small experiment, by adding in my templates/ folder a test.html which didn't work.\r\nThen Itried to create templates/test and then it worked it pass the find_func('test') but then it fails at \r\n\r\n\ttraceback (most recent call last):\r\n\t  File \"manage.py\", line 10, in <module>\r\n\t    execute_from_command_line(sys.argv)\r\n\t  File \"~/apps/virtualenvs/blog/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 385, in execute_from_command_line\r\n\t    utility.execute()\r\n\t  File \"~/apps/virtualenvs/blog/local/lib/python2.7/site-packages/django/core/management/__init__.py\", line 377, in execute\r\n\t    self.fetch_command(subcommand).run_from_argv(self.argv)\r\n\t  File \"~/apps/virtualenvs/blog/local/lib/python2.7/site-packages/django/core/management/base.py\", line 288, in run_from_argv\r\n\t    self.execute(*args, **options.__dict__)\r\n\t  File \"~/apps/virtualenvs/blog/local/lib/python2.7/site-packages/django/core/management/base.py\", line 338, in execute\r\n\t    output = self.handle(*args, **options)\r\n\t  File \"~/apps/virtualenvs/blog/local/lib/python2.7/site-packages/sass_processor/management/commands/compilescss.py\", line 28, in handle\r\n\t    templates = self.find_templates()\r\n\t  File \"~/apps/virtualenvs/blog/local/lib/python2.7/site-packages/sass_processor/management/commands/compilescss.py\", line 39, in find_templates\r\n\t    for loader in self.get_loaders():\r\n\t  File \"~/apps/virtualenvs/blog/local/lib/python2.7/site-packages/sass_processor/management/commands/compilescss.py\", line 72, in get_loaders\r\n\t    for loader in template_source_loaders:\r\n\tTypeError: 'NoneType' object is not iterable\r\n"}}