Hi all,

I'm beginning with Django and I've a trouble with a "no module named album" 
error  :(

So I've a project photos with a single app named album.  For the moment 
I've just made urls in the urls.py of the project :

    url(r'^$', 'index'),
    url(r'^(?P<annee>\d+)/$', 'annee'),
    url(r'^(?P<annee>\d+)/(?P<serie>\d+)/$', 'serie'),
    url(r'^(?P<annee>\d+)/(?P<serie>\d+)/(?P<photo>\d+)/$', 'serie'),

So 127.0.0.1:8000/photos give me my beautiful index.html template Good... A 
list of years... I click on one... 127.0.0.1:8000/photos/2012 delivering 
the second page annee.html Perfect !!! :) That's so simple I thought...
annee gives a list of gallery : I pick one... 
127.0.0.1:8000/photos/2012/1/0  (1 is the ID of the gallery, what I named 
serie and 0 is the default photo's ID, the first one) and there : django's 
error ! "no module named album" :(
serie.html is well defined in the same directory that others templates, 
functions serie is well defined in the album/views.py as functions index 
and annee are.

I don't understand where is the problem (because this step seems the same 
that the others).

Thanks for your help
 

-- 
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/-/reAP6p7VMX8J.
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