Hi,

Question(question_text="que hay?", pub_date=timezone())

should be:

Question(question_text="que hay?", pub_date=timezone.now())

Collin

On Tuesday, January 6, 2015 at 9:03:32 AM UTC-5, ibes ... wrote:
>
> Hi, 
> thanks for your answer... 
> here is the path of my site, that i called "primerdjango": 
>
> C:\xampp\htdocs\primerdjango\ 
>
>    inside of that folder i have: 
>
>      polls\ 
>         primerdjango\ 
>            db.sqlite3 
>              manage.py 
>                Vista.py 
>
> then inside of - polls -  i have: 
>
>     migrations\ 
>     admin.py 
>     admin.pyc 
>     models.py 
>     models.pyc 
>     tests.py 
>     tests.pyc 
>     urls.py 
>     urls.pyc 
>     views.py 
>     views.pyc 
>     __init__.py 
>     __init__.pyc 
>
> i have my python in C:\Python27\ 
>
> i notice that when i try to start my apache ( at the first time), i 
> have to erase the module mod_wsgi.so... 
> ( LoadModule wsgi_module modules/mod_wsgi.so ) 
>
> and comment that line in the httpd.conf, because that's the only way 
> that my apache run, the and i  can start my xampp and finally  run the 
> server with manage.py runserver... 
> that only happens at the first time, gradually during the day that 
> things doesn't happens again... 
>
> here is another problem: 
>
> when i try to follow the step of the tutorial 
> (https://docs.djangoproject.com/en/1.7/intro/tutorial01/) where it 
> said: 
> "from polls.models import Question, Choice" 
>
> begins other problems... 
>
> for example: 
>
> if i write  into the CMD the manage.py shell : 
> >>> q = Question(question_text="que hay?", pub_date=timezone()) 
>
> i got this message: 
>
> Traceback (most recent call last): 
>   File "<console>", line 1, in <module> 
> TypeError: 'module' object is not callable 
>
> and there i stuck... 
>
> my http pages looks fine, i can work with polls page, create, modify 
> and erase... 
>
> what i do wrong?? 
>
> sorry for my english, i'm extra newbie in python and django... 
>
> i hope that you could understand all that i try to explain... 
>
> THANKS A LOT AGAIN. 
>
> regards. 
> ibes. 
>
>
>
> 2015-01-05 14:33 GMT-05:00, Vijay Khemlani <[email protected] 
> <javascript:>>: 
> > 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 <[email protected] 
> <javascript:>> 
> > wrote: 
> > 
> >> Hi, 
> >> 
> >> 
> >> Le 5 janv. 2015 à 16:41, ibes ... <[email protected] <javascript:>> 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* 
> >> <https://docs.djangoproject.com/en/1.7/topics/db/queries/>: 
> >> 
> >> 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. 
> >> 
> >> -- 
> >> 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 [email protected] <javascript:>. 
> >> To post to this group, send email to [email protected] 
> <javascript:>. 
> >> 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
>  
> >> <
> https://groups.google.com/d/msgid/django-users/6CA9FED6-CCA2-4854-B834-8D6F3B74D316%40linovia.com?utm_medium=email&utm_source=footer>
>  
>
> >> . 
> >> 
> >> For more options, visit https://groups.google.com/d/optout. 
> >> 
> > 
> > -- 
> > You received this message because you are subscribed to a topic in the 
> > Google Groups "Django users" group. 
> > To unsubscribe from this topic, visit 
> > https://groups.google.com/d/topic/django-users/Dg6zBJ5hlYc/unsubscribe. 
> > To unsubscribe from this group and all its topics, send an email to 
> > [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > 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. 
> > 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/c360c0c9-4c78-41fa-b807-cbde151c5e02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to