danielfm/django-flash — Issue #9: Another redirect issue
Author: abraxas
Created: 2011-11-05 19:19:53+00:00
State: open

I'm having an odd issue with a simple redirect scenario using the django builtin redirect shortcut.

I have a flash message set up...
```request.flash['message'] = "Test."```

Then on the next line I redirect:
```return redirect('/teaminfo/'); #implied index```

Works just fine. However, the more "correct" method doesn't:

```return redirect('teaminfo.views.index') ```

The flash message disappears before my template file can present it. My url routing (in case it matters) is:

base:

urlpatterns = patterns('',
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/', include(admin.site.urls)),
(r'^teaminfo/', include('teaminfo.urls')),
(r'^$',"dashboard.views.index"),
)

application:

urlpatterns = patterns('teaminfo.views',
(r'^player/(\d+)/edit',"edit_player"),
(r'^$',"index"),
)