hi, http://www.djangoproject.com/documentation/tutorial3/
the "include" functionality in urlconfs is demonstrated,because it allows you to decouple your application's urlconfig from the projects urlconfig. but the problem is,that you still have to use "absolute" imports in the application's urlconf. when talking about the example in the tutorial, the urlconf for the polls app is: urlpatterns = patterns('myproject.polls.views', (r'^$', 'index'), (r'^(?P<poll_id>\d+)/$', 'detail'), (r'^(?P<poll_id>\d+)/results/$', 'results'), (r'^(?P<poll_id>\d+)/vote/$', 'vote'), ) it is nice that the "URL" handling is decupled, so we only deal with the part of the URL that is important for us. but we still have to specify the whole name for the module "myproject.polls.views". so if later i want to use this application in a different project, i will have to change the urlconf in the application. wouldn't it be better if i could simply say "polls.views.detail", or "views.detail" ? are there any other ways to do this? or maybe i got this completely wrong :) ? i actually got around this problem by adding the project-dir to the PYTHONPATH, but it seems a little as a hack... gabor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers -~----------~----~----~----~------~----~------~--~---