I have a third party app that requires a template.
I would like to inject a message in the urls.py so the message
is displayed in the template as I don’t have access to the view
of the 3rd party app.
How can this be achieved the DRY way?
UPDATE: Trying to give more info regarding this question.
I have django-registration on my site (outsourcefactor.com) and any request starting with “/signup/” redirects to django-registration which is out of my control. I would have wanted to insert a message into django’s message framework so I could print the message in the signup template which is under my control.
I thought the only place that I could insert a message would be in the urls.py, which is just before releasing the control to django-registration, then catch the message in the registration template and display it.
I am using django-messaging for my event-drive messages, and didn’t want to pass the message via context processor or ..etc.
I am trying to avoid forking and modifying django-registration.
Hope this is more clear now.
You can override any of this django-registration urls with custom template.