Hi Mike,
Booktype still works with older version of Django configuration and you are using latest version (Django 1.4). We plan to change it very very soon but until then you should manually change it in settings.py file.
At the moment you have something like this:
DATABASE_ENGINE = 'postgresql_psycopg2'
DATABASE_NAME = 'mydatabase'
DATABASE_USER = 'myuser'
DATABASE_PASSWORD = 'something'
DATABASE_HOST = 'localhost'
DATABASE_PORT = ''
You should change it into something like this:
DATABASES = {
'default': {
'NAME': 'mydatabase',
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'USER': 'myuser',
'PASSWORD': 'something'
}
}
Ah yes... they changed couple of things in Django 1.4. You will have to change template loaders as well. Now you have something (in settings.py file) like:
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
'django.template.loaders.eggs.load_template_source',
)
and you will need to change it into something like:
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'django.template.loaders.eggs.load_template_source',
)
Error importing template source loader django.template.loaders.filesystem.load_template_source: "'module' object has no attribute 'load_template_source'"
Request Method: | GET |
---|---|
Request URL: | http://127.0.0.1:8000/ |
Django Version: | 1.4 |
Exception Type: | ImproperlyConfigured |
Exception Value: | Error importing template source loader django.template.loaders.filesystem.load_template_source: "'module' object has no attribute 'load_template_source'" |
Exception Location: | /usr/local/lib/python2.7/dist-packages/Django-1.4-py2.7.egg/django/template/loader.py in find_template_loader, line 101 |
Python Executable: | /usr/bin/python |
Python Version: | 2.7.3 |
Python Path: | ['/usr/local/bin', |
Server time: | Thu, 31 May 2012 17:26:01 +0200 |
It looks like you're new here. If you want to get involved, click one of these buttons!