Relative Content

Tag Archive for djangodjango-modelsdjango-admin

FAQ FUNCTIONALITY implement into blog section

Please guide me how we implement question & answer based FAQ series as per our different blog.
each blog have different FAQ. How admin can add multiple FAQ as per requirement.
how this functionality update the database dynamically…

Django redirect url not functioning as expected

So I am making a simple django project where me as a superuser, I can make restaurant instances and it will make a landing page for each restaurant. I have two admin panels, one is the main one, which is for superuser and the other is for restaurant owners who have the is_restaurant_admin set to true. Now the problem is, after stripe onboarding when I make a restaurant instance from admin panel, it redirects me to http://127.0.0.1:8000/restaurant-admin/login/?next=/restaurant-admin/%3Fstripe_onboarding_completed%3Dtrue even though I explicitly wrote the logic to redirect me to main admin page. Can anyone point out where the problem is please? Thanks!