Re: How to get data from another function in view to show it on template ?

2023-04-04 Thread 'Kasper Laudrup' via Django users
On 03/04/2023 18.44, Ravindra Magar wrote: How to get data from another function in view to show it on a template? You call the function like you'd call any other function and pass the data in the context given to the template you want to render. Kind regards. Kasper Laudrup -- You

Re: Django audio recording issue: receiving Bad Request error

2023-04-04 Thread Ahmed omar miladi
i have used it On Tue, 4 Apr 2023 at 17:40, ritik sahoo wrote: > Have you used template inheritance? > > > > > On Mon, 27 Mar, 2023, 9:27 pm Yong Zu Yi, <1208z...@gmail.com> wrote: > >> I am new to Django and also my first time building an application. I am >> building an audio journaling

Re: How to get data from another function in view to show it on template ?

2023-04-04 Thread Shailesh Yadav
You can open ChatGPT and type the above question. I'll tell you in detail.Thanks. Thanks & Regards Shailesh Yadav +91-9920886044 [image: Linkedin] On Tue, Apr 4, 2023 at 10:13 PM Ravindra Magar wrote: > How to get data from another

Re: Django error while running

2023-04-04 Thread 'JOSE GONZALEZ SANCHEZ' via Django users
That worked for me Thanks! El lunes, 27 de marzo de 2023 a las 20:02:03 UTC+2, Makan Dianka escribió: > Run this command> pip install -r requirements.txt > > Le mercredi 22 mars 2023 à 13:53:15 UTC+1, James Kalu a écrit : > >> I think it ushould be 'rest_framework' in settings.py under installed

Django Admin does not use `get_FOO_display`

2023-04-04 Thread 'Ibrahim Abou Elenein' via Django users
I had a model having a field that uses Choices status = FSMField(default=STATUSES.PENDING, choices=STATUSES, protected=True) I did override the `get_status_display ` and its effect was not applied in the Django admin I looked up Django code and found ``` def display_for_field(value,

Using the URLconf defined in iblogs.urls, Django tried these URL patterns, in this order:

2023-04-04 Thread Tanveer
0 I know this question has been asked before, but I haven't found an answer that solves my situation. I'm looking at the Django tutorial, and I've set up the first URLs exactly as the tutorial has it, word for word, but when I go to

How to get data from another function in view to show it on template ?

2023-04-04 Thread Ravindra Magar
How to get data from another function in view to show it on a template? -- 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 it, send an email to

Re: Django audio recording issue: receiving Bad Request error

2023-04-04 Thread ritik sahoo
Have you used template inheritance? On Mon, 27 Mar, 2023, 9:27 pm Yong Zu Yi, <1208z...@gmail.com> wrote: > I am new to Django and also my first time building an application. I am > building an audio journaling application with Django. > What I am doing here is a recorder. When user press the

Re: Migration running in shell, but no change in DB

2023-04-04 Thread Jason
What specifically was the changeset occurring and what isn't? Is the model being created in the db, or is it the field change that's not replicating? In your comments, you showed just one migration, but seems from additional comments you made, there are two or more? What are they,