admin app doesn't find template

2009-12-07 Thread Xbiton
Hi,

I'm new to django and I'm learning it trow a tutorial. Now I was
trying to access the admin interface after adding the
django.contib.flatpages to the installed app.

I did run the python manage.py syncdb and I've seen that the tables
for the admin an flatpages apps were created,
unfortunately when I try to access the admin  interface I recive an
error saiying me that ther's no template for the apps, even I added
the template folder ti the TEMPLATE_DIRS.

Now I wondering why, in the debug page of the django server I see that
to the template path django automatically adds admin/login.html even
the path I added to TEMPALTE_DIR was only /django-site/test/cms/
templates/.
practically the complete path
 django is searching is /django-site/test/cms/templates/admin/
login.html
is that right?

please help.

Xaver

Environment:

Request Method: GET
Request URL: http://localhost:8000/admin/
Django Version: 1.1.1
Python Version: 2.6.3
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.flatpages',
 'cms.frontend']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware')

Template Loader Error:
Django tried loading these templates, in this order:
Using loader django.template.loaders.filesystem.load_template_source:
/Users/xaver/Documents/django-site/test/cms/templates/admin/login.html
(File does not exist)
Using loader
django.template.loaders.app_directories.load_template_source:



Traceback:
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/core/handlers/base.py" in get_response
  92. response = callback(request, *callback_args,
**callback_kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/contrib/admin/sites.py" in wrapper
  196. return self.admin_view(view, cacheable)(*args,
**kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/views/decorators/cache.py" in
_wrapped_view_func
  44. response = view_func(request, *args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/contrib/admin/sites.py" in inner
  185. return self.login(request)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/views/decorators/cache.py" in
_wrapped_view_func
  44. response = view_func(request, *args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/contrib/admin/sites.py" in login
  288. return self.display_login_form(request, message)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/contrib/admin/sites.py" in
display_login_form
  389. context_instance=context_instance
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/shortcuts/__init__.py" in
render_to_response
  20. return HttpResponse(loader.render_to_string(*args,
**kwargs), **httpresponse_kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/template/loader.py" in render_to_string
  103. t = get_template(template_name)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/template/loader.py" in get_template
  81. source, origin = find_template_source(template_name)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/django/template/loader.py" in
find_template_source
  74. raise TemplateDoesNotExist, name

Exception Type: TemplateDoesNotExist at /admin/
Exception Value: admin/login.html

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.




django on jython

2009-11-27 Thread Xbiton
Hi,
I've installed djando on jython, which seems to work nice. I've only a
problem using the django-jython
sql package which I installed and by making some tests, seems to work
properly.

by setting the DATABASE_ENGINE = 'doj.backends.zxjdbc.mysql' and
starting
jython manage.py runserver I recive somes errors:

Validating models...
Unhandled exception in thread started by 
Traceback (most recent call last):
  File "/Users/saverioscavelli/jython2.5.1/Lib/site-packages/django/
core/management/commands/runserver.py", line 48, in inner_run
self.validate(display_num_errors=True)
  File "/Users/saverioscavelli/jython2.5.1/Lib/site-packages/django/
core/management/base.py", line 249, in validate
num_errors = get_validation_errors(s, app)
  File "/Users/saverioscavelli/jython2.5.1/Lib/site-packages/django/
core/management/validation.py", line 22, in get_validation_errors
from django.db import models, connection
  File "/Users/saverioscavelli/jython2.5.1/Lib/site-packages/django/db/
__init__.py", line 41, in 
backend = load_backend(settings.DATABASE_ENGINE)
  File "/Users/saverioscavelli/jython2.5.1/Lib/site-packages/django/db/
__init__.py", line 37, in load_backend
raise ImproperlyConfigured(error_msg)
django.core.exceptions.ImproperlyConfigured:
'doj.backends.zxjdbc.mysql' isn't an available database backend.
Available options are: 'dummy', 'mysql', 'oracle', 'postgresql',
'postgresql_psycopg2', 'sqlite3'
Error was: No module named mysql

please help.

Xaver

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.