from django.conf.urls.defaults import *


urlpatterns = patterns('lingcod.layers.views',
    url(r'^public/', 
        'get_public_layers', 
        name='public-data-layers'),
    url(r'^kml_file/(?P<session_key>\w+)/(?P<uid>[\w_]+).kml', 
        'get_kml_file', 
        name='kml-file'),
    url(r'^privatekml/(?P<session_key>\w+)/$', 
        'get_privatekml_list', 
        name='layers-privatekml-list'),
    url(r'^privatekml/(?P<session_key>\w+)/(?P<pk>\d+)/$', 
        'get_privatekml', 
        name='layers-privatekml'),
    url(r'^privatekml/(?P<session_key>\w+)/(?P<pk>\d+)/(?P<path>[^\z]+)$', 
        'get_relative_to_privatekml', 
        name='layers-privatekml-relative'),
)

@@ -33,16 +33,28 @@
 mport *%0A
+import time%0A
 %0A%0Aurlpat
@@ -112,16 +112,17 @@
 %5Epublic/
+$
 ', %0A    
@@ -143,24 +143,24 @@
 c_layers', %0A
-
         name
@@ -179,24 +179,218 @@
 a-layers'),%0A
+%0A    # Useful for debugging, avoids GE caching interference%0A    url(r'%5Epublic/cachebuster/%25s' %25 str(time.time()), %0A        'get_public_layers', %0A        name='public-data-layers-cachebuster'),%0A%0A
     url(r'%5Ek

Add another url pattern for debugging public layers