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

1,082 views
Skip to first unread message

Bussiere

unread,
Apr 7, 2012, 2:27:07 PM4/7/12
to django...@googlegroups.com
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


Marcin Tustin

unread,
Apr 7, 2012, 2:28:53 PM4/7/12
to django...@googlegroups.com
What does your urls.py look like?

--
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/-/kiSWlzDrl28J.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Marcin Tustin
Tel: 07773 787 105

Bussiere

unread,
Apr 7, 2012, 2:36:19 PM4/7/12
to django...@googlegroups.com
from django.conf.urls.defaults import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'Jackpoint.views.home', name='home'),
    # url(r'^Jackpoint/', include('Jackpoint.foo.urls')),
    url(r'^$', 'jackpoint.engine.views.index'),
    #url(r'^X/$', 'jackpoint.X.views.index'),
    url(r'^invitation/$', 'jackpoint.invitation.views.index'),
    # Uncomment the admin/doc line below to enable admin documentation:
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    
    url(r'^invitation/create_invitation/$', 'jackpoint.invitation.views.create_invitation'),
    url(r'^invitation/inscription/$', 'jackpoint.invitation.views.invitation_inscription'),
    url(r'^hand/$', 'jackpoint.hand.views.index'),
    url(r'^hand/ask/$', 'jackpoint.hand.views.ask'),
    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)


Le samedi 7 avril 2012 16:28:53 UTC+2, Marcin a écrit :
What does your urls.py look like?

On Sat, Apr 7, 2012 at 15:27, Bussiere <buss...@gmail.com> 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/-/kiSWlzDrl28J.
To post to this group, send email to django...@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.

Marcin Tustin

unread,
Apr 7, 2012, 2:42:09 PM4/7/12
to django...@googlegroups.com
Does  invitation/create_invitation work? If not, I suspect that you have either some kind of configuration issue, or the file has gone missing from your deployment/has wrong permissions set.

To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/KZlOCBWleEMJ.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Bussiere

unread,
Apr 7, 2012, 2:53:47 PM4/7/12
to django...@googlegroups.com
i've made no deploiement at all ...

No views in invitation works.


I was working on live with the test server runnning.

(i've tried to restart it more than one time after i get this error).

And by magic all the views in invitation don't works, they are not found.

Maybe a reinstallation of django ?

Have you any suggestion ?

Bussiere

Marcin Tustin

unread,
Apr 7, 2012, 2:58:51 PM4/7/12
to django...@googlegroups.com
Reinstalling django will not help. Verify that the file is present and has the correct permissions (likewise all superior directories, and also the relevant __init__.py files. These files are essential.). 

You may also like to run the django shell, and try to import that module. If that does not work, examine the sys.path setting to ensure that jackpoint is on the path. 

To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/m-QAVDODpUUJ.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Bussiere

unread,
Apr 7, 2012, 3:29:36 PM4/7/12
to django...@googlegroups.com
Everything is fine.

I said you it worked five second before ...


Bussiere

Marcin Tustin

unread,
Apr 7, 2012, 3:38:49 PM4/7/12
to django...@googlegroups.com
So, you can import the function in the django shell? Have you considered replacing the string-based import with a normal import?

To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/aBYKTLVIyRwJ.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Bussiere

unread,
Apr 7, 2012, 3:59:32 PM4/7/12
to django...@googlegroups.com
how to do that ?

Marcin Tustin

unread,
Apr 7, 2012, 4:03:17 PM4/7/12
to django...@googlegroups.com
python manage.py shell

To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Ktw5D-B5byYJ.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Bussiere

unread,
Apr 7, 2012, 4:06:32 PM4/7/12
to django...@googlegroups.com
my point the import in shell does not work too.

I had a import error from a line of import in view corrected it and it's still not working.

i had an error in a form imported.

So it reads the file because he tel me if there is an error but it didn't found index.

Regards


Le samedi 7 avril 2012 17:38:49 UTC+2, Marcin a écrit :

Bussiere

unread,
Apr 7, 2012, 4:09:40 PM4/7/12
to django...@googlegroups.com
and i've used cygwin vim to find if there was some bad characters in the file but no.


Bussiere

Bussiere

unread,
Apr 7, 2012, 4:13:08 PM4/7/12
to django...@googlegroups.com
FIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIINNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNND

\o/


Save the file under vim resolved the problems >.>


Bussiere

Marcin Tustin

unread,
Apr 7, 2012, 4:13:28 PM4/7/12
to django...@googlegroups.com
I'm not sure what you think we can do to help you with this information.

To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/S7QOA9SmE2QJ.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Bussiere

unread,
Apr 7, 2012, 4:33:32 PM4/7/12
to django...@googlegroups.com
the problem is solved.

Just saving the view file under vim solved it.

It must have been an encoding problems with the file.

But it was strange because it reads some part of the file.

By the way thanks for your support.

Bussiere

Chris Cogdon

unread,
Dec 5, 2012, 12:32:10 AM12/5/12
to django...@googlegroups.com
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.

Camilo Buitrago

unread,
Dec 5, 2012, 12:47:54 AM12/5/12
to django...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages