Index: django/conf/urls/defaults.py
===================================================================
--- django/conf/urls/defaults.py	(revision 992)
+++ django/conf/urls/defaults.py	(working copy)
@@ -1,12 +1,32 @@
+import sys
 from django.core.urlresolvers import RegexURLPattern, RegexURLResolver
 
-__all__ = ['handler404', 'handler500', 'include', 'patterns']
+__all__ = ['handler404', 'handler500', 'include', 'patterns', 'prefix']
 
 handler404 = 'django.views.defaults.page_not_found'
 handler500 = 'django.views.defaults.server_error'
 
 include = lambda urlconf_module: [urlconf_module]
 
+def prefix(postfix):
+    """
+    Figures out and adds a prefix to the given postfix by 
+    examining the module name of the calling URLconf.
+    
+    if the given postfix is:
+        'views.polls.vote'
+    and this function is called from:
+        'myproject.apps.polls.urls'
+    the return value will be:
+        'myproject.apps.polls.views.polls.vote'
+    """
+    f = sys._getframe(1)
+    module = f.f_globals["__name__"]
+    segs = module.split(".")
+    segs = segs[:3]
+    segs.append(postfix)
+    return ".".join(segs)
+
 def patterns(prefix, *tuples):
     pattern_list = []
     for t in tuples:
