problem is that I have to checkout a different branch for every project. and while the paths are the same, I have to load f开发者_开发知识库avorites every time. Its a pain.
I\'m relatively new to Django and I\'m trying to build up my toolbox for future projects.In my last project, when a built-in template tag didn\'t do quite what I needed, I would make a mangled mess of
My problem is a if condition. I would like somethings like that but cannot figure out how to do it. {% if restaurant.is_favorite_of(user) %}