- New nature app with SpeciesObservation model (scrobblable) - SpeciesObservationLogData for observation-specific fields - Atom feed parser + iNat REST API enrichment - Photo download and local storage - Celery periodic import (every 4 hours) - Management command: import_from_inaturalist - Species fields: title, scientific_name, taxon_id, iconic_taxon_name, rank, wikipedia_url - Log fields: observation_id, photo_urls, quality_grade, place_guess, lat/lon, uri, identifications_count - Updates existing scrobbles when observation data changes - iNaturalist user mapping on UserProfile - Templates, admin, API, URLs - Default 5 minute run time for species observations
18 lines
380 B
Python
18 lines
380 B
Python
from django.urls import path
|
|
from nature import views
|
|
|
|
app_name = "nature"
|
|
|
|
urlpatterns = [
|
|
path(
|
|
"observations/",
|
|
views.SpeciesObservationListView.as_view(),
|
|
name="species_observation_list",
|
|
),
|
|
path(
|
|
"observations/<slug:slug>/",
|
|
views.SpeciesObservationDetailView.as_view(),
|
|
name="species_observation_detail",
|
|
),
|
|
]
|