Finding max value for each row from df2 basis ID and date in df1

I have two dataframes vehicle breakdown and preventive inspection. I want preventive inspection date in vehicle breakdown dataframe basis vehicle number(ID) where inspection date is less than BD_Date and is max of all the inspection date For ex: Vehicle ID-1 had three Breakdown on 05-01-2020, 25-12-2019 and 05-12-2019. It underwent five inspection, one on 03-01-2020,27-12-2019,23-12-2019,13-12-2019…

Details

How to use template from project in another app?

I’m thinking in organizing all my templates in inside the project: scolarte. But I need to call it from another app. The view is called but getting error: TemplateDoesNotExist at /cuentas/ingreso/ scolarte/templates/scolarte/registration/signup.html I even tried to put the full path to the template in project folder: roles/views.py: class SignUpView(TemplateView): template_name = ‘scolarte/templates/scolarte/registration/signup.html’ # don’t work…

Details