Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在django1.4 下出错 #3

Open
GoogleCodeExporter opened this issue Jul 5, 2015 · 2 comments
Open

在django1.4 下出错 #3

GoogleCodeExporter opened this issue Jul 5, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

定位在theme/model.py中的:
from django.template.loader import find_template_source


  File "C:\Python27\lib\site-packages\django\core\management\validation.py", lin
e 30, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "C:\Python27\lib\site-packages\django\db\models\loading.py", line 158, in
 get_app_errors
    self._populate()
  File "C:\Python27\lib\site-packages\django\db\models\loading.py", line 67, in
_populate
    self.load_app(app_name)
  File "C:\Python27\lib\site-packages\django\db\models\loading.py", line 88, in
load_app
    models = import_module('.models', app_name)
  File "C:\Python27\lib\site-packages\django\utils\importlib.py", line 35, in im
port_module
    __import__(name)
  File "E:\develop\ddtcms\..\ddtcms\theme\models.py", line 23, in <module>
    from django.template.loader import find_template_source
ImportError: cannot import name find_template_source

Original issue reported on code.google.com by ranv...@gmail.com on 29 Mar 2012 at 1:35

@GoogleCodeExporter
Copy link
Author

i fund it ,too

Original comment by luohaob...@gmail.com on 30 Aug 2012 at 9:55

@GoogleCodeExporter
Copy link
Author

run python
import django
>>>django.VERSION
find which version of your django.
if >= 1.4
change "find_template_source" to "find_template"


Original comment by liranr...@gmail.com on 6 Dec 2012 at 2:42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant