You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

from django.conf.urls.defaults import patterns, include, url
from django.contrib.gis import admin
from django.views.generic import ListView
from airspace.models import AirSpaces
from tastypie.api import Api
from airspace.api import AirSpacesResource, AirSpacesIDResource, IntersectionsResource
v1_api = Api(api_name='v1')
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'GDairspace.views.home', name='home'),
# url(r'^GDairspace/', include('')),
url(r'^airspace/$', ListView.as_view(
url(r'^airspace/json/trackup$', 'airspace.views.json_track_upload'),
# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^airspace/amap/', 'airspace.views.amap'),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(,
## For django-tastypie
(r'^api/', include(v1_api.urls)),