Also make sure that there is an __init__.py file in the polls directory
On Mon, Jan 5, 2015 at 12:47 PM, Xavier Ordoquy <xordoquy@linovia.com> wrote:
Hi,--Le 5 janv. 2015 à 16:41, ibes ... <tita.cu@gmail.com> a écrit :sorry for my bad english…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!!!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.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6CA9FED6-CCA2-4854-B834-8D6F3B74D316%40linovia.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALn3ei1yDtDJUTjtTdfpE5QrxJEZzJutUoCVS5H7jYohubuLBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment