from django.conf.urls import patterns, include, url from WhereWeMeet.drivetimes.views import HomeView from django.contrib.gis import admin from django.conf import settings from django.conf.urls.static import static admin.autodiscover() urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^api', include('WhereWeMeet.drivetimes.urls', namespace='WhereWeMeet')), url(r'^$', HomeView.as_view()), ) + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
MBARI Jan 3, 2012 @var __date__: Date of last svn commit @undocumented: __doc__ parser @author: __author__ @status: __status__ @license: __license__ ''' from django.conf.urls.defaults import * from django.contrib.gis import admin from django.conf import settings ##from ga_ows.views.wfs import WFS from stoqs import models as m admin.autodiscover() # The database alias (the key of the DATABASES dictionary) will prefix all of our requests pre = r'^(?P<dbAlias>[^/]+)/' # Repeated between clause for measurement queries btwnCl = r'(?P<pName>[^/]+)/between/(?P<startDate>\w+)/(?P<endDate>\w+)/depth/(?P<dmin>[0-9\.]+)/(?P<dmax>[0-9\.]+)' # type is one of: 'data', 'perf'; format is one of: 'html', 'csv', 'kml' typePat = r'/(?P<type>[^/]{4,5})' formatPat = r'(?P<format>[^/]{0,5})$' formatCl = typePat + r'\.' + formatPat urlpatterns = patterns('',