Sunday, February 27, 2011

Re: admin home page

Django 1.2.3,

in settings.py I have not edit this values:
MEDIA_ROOT = ''
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/'

urls.py:
from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
# Example:
# (r'^mysite/', include('mysite.foo.urls')),

# Uncomment the admin/doc line below to enable admin
documentation:
(r'^admin/doc/', include('django.contrib.admindocs.urls')),

# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
)

firebug "net->all" shows errors in GET base.css and GET
dashboard.css:
Traceback (most recent call last):

File "C:\Python27\lib\site-packages\django\core\servers
\basehttp.py", line 280, in run
self.result = application(self.environ, self.start_response)

File "C:\Python27\lib\site-packages\django\core\servers
\basehttp.py", line 709, in __call__
mime_type = mimetypes.guess_type(file_path)[0]

File "C:\Python27\lib\mimetypes.py", line 294, in guess_type
init()

File "C:\Python27\lib\mimetypes.py", line 355, in init
db.read_windows_registry()

File "C:\Python27\lib\mimetypes.py", line 259, in
read_windows_registry
for ctype in enum_types(mimedb):

File "C:\Python27\lib\mimetypes.py", line 249, in enum_types
ctype = ctype.encode(default_encoding) # omit in 3.x!

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe0 in position
0: ordinal not in range(128)

What does it mean?

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

No comments:

Post a Comment