0👍
✅
3👍
You can pass a view name and it’s arguments to redirect
. Looks like you want the user-feed
view?
redirect('user-feed', username=first_user)
- [Django]-Django ManyToMany Template rendering and performance issues
- [Django]-Relational DatabaseError in django postgresql database after deploying project to bitnami
- [Django]-Django orm JSONField for mysql
- [Django]-How to display a saved,dynamically created image in django template?
- [Django]-How do i show recent posts first in Django blog?
0👍
You can use below code to redirect
return redirect('/accounts/twitter')
'/accounts/twitter'
is your url where you want to move. we create these urls in urls.py file
you can also use below code to move on particular site
def my_view(request):
...
return redirect('https://example.com/')
- [Django]-How to access row data in before_save_instance for Django Import Export
- [Django]-Error importing external library within Django template tag library
Source:stackexchange.com