I want my homepage to be index.html , which is inside the template directory named templates/castle_tm/index.html , but the URL shows
"no module named simple".
General view based views are deprecated in django> 1.4. Now how can I redirect the home page to index.html
urls.py
from django.conf.urls import url, patterns, include from django.conf.urls.static import static from django.conf import settings from django.contrib import admin from castle import views from django.views.generic.simple import direct_to_template admin.autodiscover() url(r'^api/casinova$', direct_to_template,{"template":"castle_tm/index.html"}),
python django
shalin
source share