Marco Amato wrote:
> and URL.py
> 
> ###########
> from django.conf.urls.defaults import *
> 
> urlpatterns = patterns('',
>     # Example:
>      (r'^base/$', include('test.selecto.views')),
> 
>     # Uncomment this for admin:
>      (r'^admin/$', include('django.contrib.admin.urls')),
> )
> ########

This 'include' thing in the main urls.py is intended to include other 
URL configurations of different apps, not for referring actual views.

So you have to create a local urls.py in your test/selecto directory and 
include it:

     (r'^base/$', include('test.selecto.urls')),

And in that urls.py you define actual links between urls and views for 
'selecto' app:

     from django.conf.urls.defaults import *

     urlpatterns = patterns('test.selecto.views',
       (r'^$', 'index'),
     )


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to