Le 5 janv. 2015 à 16:41, ibes ... <tita.cu@gmail.com> a écrit :hello,
I am frustrated with django and phyton tutorial it is very difficult
i'm having a problem with the tutorial of django and python,
am using django 1.7.1 and python 2.7 on win xp-sp3 so far it was good, i create everything without problem but in tutorial step where it says:
https://docs.djangoproject.com/en/1.7/intro/tutorial01/
Once you're in the shell, explore the database API:
i've got the message:C:\xampp\htdocs\primerdjango>manage.py runserver
Traceback (most recent call last):
File "D:\xampp\htdocs\primerdjango\manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "D:\Python27\lib\site-packages\django-1.7.1-py2.7.egg\django\core\managem
ent\__init__.py", line 385, in execute_from_command_line
utility.execute()
File "D:\Python27\lib\site-packages\django-1.7.1-py2.7.egg\django\core\managem
ent\__init__.py", line 354, in execute
django.setup()
File "D:\Python27\lib\site-packages\django-1.7.1-py2.7.egg\django\__init__.py"
, line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "D:\Python27\lib\site-packages\django-1.7.1-py2.7.egg\django\apps\registr
y.py", line 85, in populate
app_config = AppConfig.create(entry)
File "D:\Python27\lib\site-packages\django-1.7.1-py2.7.egg\django\apps\config.
py", line 123, in create
import_module(entry)
File "D:\Python27\lib\importlib\__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named polls
i don't know what to do.... can anyone help, please!!!
sorry for my bad english…
It looks like Python couldn't find the « polls » directory.
Maybe you didn't create it or it is at the wrong location. Could you write us where the « polls » directory is, relating to « mysite » ?
Regards,
Xavier Ordoquy,
Linovia.
No comments:
Post a Comment