Hello,
the issue here seems to be trivial, maybe I got something in my eyes,
but I can't find the solution.

Here is my code:

urls.py
url(r"magasin/(?P<magasin_id>\d+)/evenement/new/$",
EvenementCreateView.as_view(model=Evenement),
name='new_evenement_magasin'),

views.py:
class EvenementCreateView(CreateView):
    form_class = EvenementForm
    sucess_url = 'user_magasins'

    def dispatch(self, *args, **kwargs):
       bla bla bla ....

    def form_valid(self, form):
       bl bla bla .....
       return HttpResponseRedirect(self.get_success_url())


What is funny here is whatever url of the site I call, even one which
doesn't use this view I've the error describe in the subject. The
traceback point on the line of the urls.py.

I'm not python and django proof, but as far I know class blablabla()
define a Class and not a function !!!

Does someone have an idea here ?

Regards

Alain

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

Reply via email to