from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from apps.producao.views import  editar_prod_mudas, cadastro_prod_mudas, excluir_periodo_coleta
# Create your views here.
urlpatterns = [
    path('cadastro_prod_mudas/<int:especie_id>/', cadastro_prod_mudas, name='cadastro_prod_mudas'),
    path('editar_prod_mudas/<int:especie_id>/', editar_prod_mudas, name='editar_prod_mudas'),
    path('excluir_periodo_coleta/<int:periodo_coleta_id>/', excluir_periodo_coleta, name='excluir_periodo_coleta'),
]
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL,
                          document_root=settings.MEDIA_ROOT)
