Django Access Admin hint viewdoesnotexist at/admin/

Source: Internet
Author: User

Viewdoesnotexist at/admin/

Could not ImportDjango.views.generic.simple.redirect_to. Parent Module Django.views.generic.simple does notexist. Request method:getrequest url:http:127.0.0.1:8888/admin/Django Version:1.7.8Exception type:viewdoesnotexistexception value:could not ImportDjango.views.generic.simple.redirect_to. Parent Module Django.views.generic.simple does notexist. Exception Location:c:\python27\lib\site-packages\django-1.7.8-py2.7.egg\django\core\urlresolvers.pyinchGet_callable, Line 104Python Executable:c:\python27\python.exepython Version:2.7.9Python path:['d:\\samcao\\mailclient', 'C:\\python27\\lib\\site-packages\\django-1.7.8-py2.7.egg', 'C:\\windows\\system32\\python27.zip', 'C:\\python27\\dlls', 'C:\\python27\\lib', 'C:\\python27\\lib\\plat-win', 'C:\\PYTHON27\\LIB\\LIB-TK', 'c:\\python27', 'c:\\python27\\lib\\site-packages'] Server Time:sat,June 2015 17:06:45 +0800

The final check was discovered because of a problem with the URL setting in urls.py:

Urlpatterns = Patterns ("',    #Examples:    #URL (r ' ^$ ', ' mailclient.views.home ', name= ' home '),    #URL (r ' ^blog/', include (' Blog.urls ')),URL (r'^admin/', include (admin.site.urls)), url (r'^favicon\.ico$','django.views.generic.simple.redirect_to',{'URL':'/static/images/favicon.ico'}),)

Above because there is a configuration before the ICO file is configured

Django.views.generic.simple.redirect_to

The test was wrong. Remove it. Return to normal.

Eventually


Django Access Admin hint viewdoesnotexist at/admin/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.