ViewDoesNotExist at /admin/
Tried index in module django.contrib.admin.views.main. Error was:
'module' object has no attribute 'index'
Request Method: GET
Request URL: http://miiandyou.net/admin/
Exception Type: ViewDoesNotExist
Exception Value: Tried index in module
django.contrib.admin.views.main. Error was: 'module' object has no
attribute 'index'
Exception Location:
/home/miiandu/django_src/django/core/urlresolvers.py in _get_callback,
line 129
We've tried reinstalling the whole mess three times now to no avail.
Any suggestions?
(Note: If you go to http://miiandyou.net/admin/ you can see the full
error report, including the traceback and the settings being used. If
you get a blank page with "Unhandled Exception," just refresh. For some
reason that keeps happening.)
does you add this
'django.contrib.admin',
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
)
=======================================================
--
mawe...@gmail.com
13585201588
--------------------------------------------------------------------------------
mawe...@gmail.com
13585201588
% ls -l /home/miiandu/django_src/django/contrib
you want admin to look something like this;
...
drwxr-xr-x 7 miiandyou 4096 Dec 4 18:19 admin
...
and;
% ls -l /home/miiandu/django_src/django/contrib/admin
...
drwxr-xr-x 3 herbert 4096 Dec 12 00:52 views
...
If they don't look like that, Margaret's suggestion of chown and chmod
is probably the thing you need to do.
hth
tone
I'm having a problem that I absolutely cannot figure out. I've
double-checked and re-checked urls.py (I have the right line
uncommented), settings.py (I have the django.contrib.admin as an
installed app), restarted fcgi, everything. I've tried the tutorial
from scratch three times now, each time rm -rfing the whole thing and
checking out the trunk from svn again after I get stuck. I just cannot
get through the tutorial because I cannot get the admin application to
work. This is what happens:
ViewDoesNotExist at /admin/
Tried index in module django.contrib.admin.views.main. Error was:
'module' object has no attribute 'index'
Additionally, I can't get the dev server to work either. I've bound it
to my IP and I try to connect on :8000 and it just times out. I don't
really care about that that much though as I have everything seemingly
set up with apache and fcgi.
--Eoban