Hi,
In my project for success confirmation messages I am using the Messages
framework from Django. Here I am always getting errors in deployment server.
https://docs.djangoproject.com/en/3.2/ref/contrib/messages/
After deploying site.when i am continuously testing site. After some time I
am gett
cool :)
On Tue, 31 Aug 2021 at 11:27, Salima Begum
wrote:
> Hi all,
> Actually this error is prompting because in my deployment site I am using
> django version 3.2. In this version they have some issue with messages so,
> I referred to this document and I fixed it by adding one line in the
> s
Hi all,
Actually this error is prompting because in my deployment site I am using
django version 3.2. In this version they have some issue with messages so,
I referred to this document and I fixed it by adding one line in the
settings.py file.
https://docs.djangoproject.com/en/3.2/ref/contrib/messa
go like this
messages.add_message(request, messages.WARNING, "failure message")
return HttpResponse / render
On Tue, 31 Aug 2021 at 10:32, Salima Begum
wrote:
> Hi, Thank you for your response.
> I have defined as below I have mentioned snippet in all functionalities
> i am getting error in e
Hi, Thank you for your response.
I have defined as below I have mentioned snippet in all functionalities i
am getting error in every functionality " 'str' object is not callable
".Please help me to fix this issue.
```
messages.success(request, """Your Ad is successfully posted.""")
```
Hi Thomas,
The way I defined how i have written code for confirmation message
```
messages.success(request, """Your Ad is successfully posted.""")
```
Thank you
~Salima
On Tue, Aug 31, 2021 at 9:31 AM Thomas Lockhart
wrote:
> Just guessing that you need to write
>
> messages.success = “
You need to pass the request object as the first argument.
https://docs.djangoproject.com/en/3.2/ref/contrib/messages/
On Mon, Aug 30, 2021, 11:01 PM Thomas Lockhart
wrote:
> Just guessing that you need to write
>
> messages.success = “Your ad is successfully posted”
>
> But without more inform
Just guessing that you need to write
messages.success = “Your ad is successfully posted”
But without more information from you that is only a guess.
How is messages.success defined?
- Tom
> On Aug 30, 2021, at 8:57 PM, Salima Begum
> wrote:
>
> Hi all,
> In my project for each functionality
8 matches
Mail list logo