# Path: firetracker/api.py
# class CalWildfireResource(ModelResource):
#     class Meta:
#         queryset = CalWildfire.objects.all()
#         resource_name = 'wildfires'
#         fields = [
#             'acres_burned',
#             'administrative_unit',
#             'air_quality_rating',
#             'cause',
#             'computed_location',
#             'conditions',
#             'containment_percent',
#             'cooperating_agencies',
#             'county',
#             'current_situation',
#             'damage_assessment',
#             'date_time_started',
#             'evacuations',
#             'fire_name',
#             'injuries',
#             'last_scraped',
#             'last_updated',
#             'location',
#             'location_latitude',
#             'location_longitude',
#             'more_info',
#             'notes',
#             'phone_numbers',
#             'road_closures',
#             'structures_threatened',
#             'structures_destroyed',
#             'total_dozers',
#             'total_helicopters',
#             'total_fire_engines',
#             'total_fire_personnel',
#             'total_water_tenders',
#             'total_airtankers',
#             'total_fire_crews',
#             'training',
#             'twitter_hashtag',
#         ]
#         allowed_methods = ['get']
#         limit = 10


from django.conf import settings
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.core.urlresolvers import reverse
from django.views.generic.base import RedirectView
from tastypie.api import Api
from firetracker.api import CalWildfireResource
from django.contrib import admin
# This also imports the include function

# tastypie API includes

# enable the admin
admin.autodiscover()

# invoke the api
v1_api = Api(api_name='v1')
v1_api.register(CalWildfireResource())

handler403 = 'calfire_tracker.views.custom_403'
handler404 = 'calfire_tracker.views.custom_404'
handler500 = 'calfire_tracker.views.custom_500'

urlpatterns = patterns('',

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

    # uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),

    # redirect to favicon
    url(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', {'url': 'http://projects.scpr.org/static-files/images/template-icons/favicon.ico'}),

	# batch edit

# Path: firetracker/api.py
# class CalWildfireResource(ModelResource):
#     class Meta:
#         queryset = CalWildfire.objects.all()
#         resource_name = 'wildfires'
#         fields = [
#             'acres_burned',
#             'administrative_unit',
#             'air_quality_rating',
#             'cause',
#             'computed_location',
#             'conditions',
#             'containment_percent',
#             'cooperating_agencies',
#             'county',
#             'current_situation',
#             'damage_assessment',
#             'date_time_started',
#             'evacuations',
#             'fire_name',
#             'injuries',
#             'last_scraped',
#             'last_updated',
#             'location',
#             'location_latitude',
#             'location_longitude',
#             'more_info',
#             'notes',
#             'phone_numbers',
#             'road_closures',
#             'structures_threatened',
#             'structures_destroyed',
#             'total_dozers',
#             'total_helicopters',
#             'total_fire_engines',
#             'total_fire_personnel',
#             'total_water_tenders',
#             'total_airtankers',
#             'total_fire_crews',
#             'training',
#             'twitter_hashtag',
#         ]
#         allowed_methods = ['get']
#         limit = 10


# Path: firetracker/urls.py
from django.conf import settings
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.core.urlresolvers import reverse
from django.views.generic.base import RedirectView
from tastypie.api import Api
from firetracker.api import CalWildfireResource
from django.contrib import admin

# This also imports the include function

# tastypie API includes

# enable the admin
admin.autodiscover()

# invoke the api
v1_api = Api(api_name='v1')
v1_api.register(CalWildfireResource())

handler403 = 'calfire_tracker.views.custom_403'
handler404 = 'calfire_tracker.views.custom_404'
handler500 = 'calfire_tracker.views.custom_500'

urlpatterns = patterns('',

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

    # uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),

    # redirect to favicon
    url(r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', {'url': 'http://projects.scpr.org/static-files/images/template-icons/favicon.ico'}),

	# batch edit

	url(r'^admin/', include('massadmin.urls')),