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
Hi all,
In my project for each functionality I have written code for confirmation
messages. For example
```
messages.success("Your ad is successfully posted")
```
Every functionality is breaking because of confirmation messages after
deployment. How to fix it? Can anyone help me?
Thank you
~Salima
Uh what question are you answering?
On 8/30/21 12:55 PM, Munzir Abba Daneji wrote:
> Peter Check your Template DIR you supposed to organize you folders
> flow under your "first_project" folder create the template folder and
> inser you html
>
> On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' v
Peter Check your Template DIR you supposed to organize you folders flow
under your "first_project" folder create the template folder and inser you
html
On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django users <
django-users@googlegroups.com> wrote:
> You got a " on line 2 that shouldn'
You got a " on line 2 that shouldn't be there
On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
> In template C:\Users\DUSHYANT
> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
> error at line 2
> '"' is not a registered tag library. Must be one of:
>
> 1 :
>
send the template
On Sunday, 29 August 2021 at 08:12:37 UTC+5:30 du19sh...@gmail.com wrote:
>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/cor/learndj/
>
> Django Version: 3.0
> Python Version: 3.8.6
> Installed Applications:
> ['django.contrib.admin',
> 'django.
Please help on localhost or 127.0.0.1:8000 everything is working fine but
when i provide ip and port authentication is doesn't work
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from i
hello guys i would like to volunteer in some project.
i'm currently a beginner in django. having knowledge on:
- template inheritance,
-creating form,
-managing with views, url,
-django model
this is my whatsapp number: +243815357825
Regards
--
You received this message because you are subscribe
13 matches
Mail list logo