Python 如何移动模板?

Python 如何移动模板?,python,django,Python,Django,请告诉我如何在“视图”目录中移动视图(view.py) 现在,我的文件夹和文件的结构如下所示: proj1(catalog) views.py(file) manage.py(file) proj1(catalog) wsgi.py(file) urls.py(file) settings.py(file) __init__.py(file) views(catalog) URL.py以下内

请告诉我如何在“视图”目录中移动视图(view.py)

现在,我的文件夹和文件的结构如下所示:

proj1(catalog)
    views.py(file)
    manage.py(file)
    proj1(catalog)
        wsgi.py(file)
        urls.py(file)
        settings.py(file)
        __init__.py(file)
        views(catalog)
URL.py以下内容:

from django.conf.urls import patterns, include, url

import views

urlpatterns = patterns('',   
    url('^$', views.hello),
    url('^datetime$', views.current_datetime),
    url('^dt$', views.current_datetime),
    url('^dt/(\d{0,2})$', views.current_datetime2),
)
我需要找到位于目录view.py proj1/proj1/中的文件。 其中静态页面仍在生成​​可供浏览器使用


问题是我不知道如何更改文件中的代码:url.py、settings.py

无需更改视图,只需在settings.py中更改即可

TEMPLATE_DIRS = (
    '/path/to/proj1/proj1/views/', # or another path with templates
   'django/contrib/admin/templates/'
)

在my settings.py中不存在模板\u DIRS。