Traceback:
File "C:\Users\Nitin\env_mysite\lib\site-packages\django\core\handlers\base.py" in get_response
119. resolver_match = resolver.resolve(request.path_info)
File "C:\Users\Nitin\env_mysite\lib\site-packages\django\core\urlresolvers.py" in resolve
365. for pattern in self.url_patterns:
File "C:\Users\Nitin\env_mysite\lib\site-packages\django\core\urlresolvers.py" in url_patterns
401. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "C:\Users\Nitin\env_mysite\lib\site-packages\django\core\urlresolvers.py" in urlconf_module
395. self._urlconf_module = import_module(self.urlconf_name)
File "C:\Users\Nitin\env_mysite\lib\importlib\__init__.py" in import_module
126. return _bootstrap._gcd_import(name[level:], package, level)
File "C:\Users\Nitin\env_mysite\Scripts\website\website\urls.py" in <module>
17. from website.views import hello
Exception Type: ImportError at /
Exception Value: No module named 'website.views'
答案 0 :(得分:0)
您错过了创建视图/或忘记在您的url py文件中导入视图。再次交叉检查