<gh_stars>1-10
from django.conf.urls.defaults import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^$', 'climatedata.views.index'),
    # Example:
    # (r'^openclimategis/', include('openclimategis.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    
    # Django-piston API URL mapping:
    (r'^api/',include('api.urls')),

    # Query Builder web application
    url( # example: /builder
        r'^builder',
        'api.views.display_query_builder_app',
        name='query_builder'
    ),

)

if settings.DEBUG:
    urlpatterns += patterns('',
        url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
            'document_root': settings.MEDIA_ROOT,
        }),
        url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {
            'document_root': settings.APACHE_STATIC_ROOT,
        }),
        url(r'^wicket', 'api.views.wicket_test')
   )

from django.conf.urls.defaults import *
from django.conf import settings

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^$', 'climatedata.views.index'),
    # Example:
    # (r'^openclimategis/', include('openclimategis.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    (r'^admin/', include(admin.site.urls)),
    
    # Django-piston API URL mapping:
    (r'^api/',include('api.urls')),

    # Query Builder web application
    url( # example: /builder
        r'^builder',
        'api.views.display_query_builder_app',
        name='query_builder'
    ),

)

if settings.DEBUG:
    urlpatterns += patterns('',
        url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
            'document_root': settings.MEDIA_ROOT,
        }),
        url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {
            'document_root': settings.APACHE_STATIC_ROOT,
        }),
        url(r'^wicket', 'api.views.wicket_test')
   )
# Uncomment the next two lines to enable the admin: # Example: # (r'^openclimategis/', include('openclimategis.foo.urls')), # Uncomment the admin/doc line below to enable admin documentation: # Uncomment the next line to enable the admin: # Django-piston API URL mapping: # Query Builder web application # example: /builder