jezdez/django-dbtemplates — Issue #23: AttributeError: 'NoneType' object has no attribute 'find'
Author: r0sk
Created: 2012-02-03 09:45:03+00:00
State: open

After install the package with pip and set it on INSTALLED_APPS, trying to make the 'python manage.py rsyncdb' I got that error "AttributeError: 'NoneType' object has no attribute 'find'". This is the complete Traceback:

```
Traceback (most recent call last):
File "manage.py", line 11, in
execute_manager(settings)
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/django/core/management/base.py", line 219, in execute
self.validate()
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/django/core/management/base.py", line 249, in validate
num_errors = get_validation_errors(s, app)
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/django/core/management/validation.py", line 35, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/django/db/models/loading.py", line 146, in get_app_errors
self._populate()
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/django/db/models/loading.py", line 61, in _populate
self.load_app(app_name, True)
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/django/db/models/loading.py", line 78, in load_app
models = import_module('.models', app_name)
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/dbtemplates/models.py", line 13, in
from dbtemplates.utils.cache import add_template_to_cache, remove_cached_template
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/dbtemplates/utils/cache.py", line 11, in
cache = get_cache_backend()
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/dbtemplates/utils/cache.py", line 9, in get_cache_backend
return get_cache(settings.DBTEMPLATES_CACHE_BACKEND)
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/django/core/cache/__init__.py", line 64, in get_cache
scheme, host, params = parse_backend_uri(backend_uri)
File "/home/oscar/Web/Django/DJBlog/env/lib/python2.6/site-packages/django/core/cache/__init__.py", line 45, in parse_backend_uri
if backend_uri.find(':') == -1:
AttributeError: 'NoneType' object has no attribute 'find'
```

(http://paste.userlinux.net/128/raw/)