Tuesday, December 4, 2012

Re: It's magic the view does not exist for django but it worked 5 secondes before and it still exist

Thanks for your help Chris...what I did was to use the shell with python manage.py shell and tried to import the view that wasn't there and could see the error, it was a lowercase character that must be uppercase.

El martes, 4 de diciembre de 2012 19:32:10 UTC-5, Chris Cogdon escribió:
tl;dr :)

I am going to guess that the server is not recognising tyour changes when you save them, and perhaps one copy of a server thinks the state is X, and the other thinks its Y, so you'll get different results each time you refresh.

Are you running with manage.py runserver? When you save your file, manage.py should detect this and "reload". If it doesn't, something is awry.

If you're using a normal webserver, and wsgi.py (the usual case, nowadays) whenever you make changes to your .py files, you _must_ either restart the webserver, or simply touch the wsgi.py file to update its timestamp.


On Saturday, April 7, 2012 7:27:07 AM UTC-7, Bussiere wrote:
i've got this error :

ViewDoesNotExist at /invitation/

Could not import jackpoint.invitation.views.index. View does not exist in module jackpoint.invitation.views.

But yes it exist and worked fine 5 secondes before.

the image of eclipse :
http://dl.dropbox.com/u/19753332/wtf.png

all the other view works well.


And when i close and reopen firefox, all the views works fine and that one appaeras 5 secondes freeze then say it doesn't exist.

the view is here :
https://github.com/bussiere/jackpoint/blob/master/jackpoint/jackpoint/invitation/views.py   

regards
bussiere


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/yG3J6PGcDNoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment