Re: Dynamic creation of pages

2023-10-26 Thread Bayo Izekor
# models.py
from django.db import models

class Title(models.Model):
name = models.CharField(max_length=100, unique=True)
# Add other fields as needed

# views.py
from django.shortcuts import render, get_object_or_404
from .models import Title

def title_page(request, title_id):
title = get_object_or_404(Title, pk=title_id)
# Retrieve and display data associated with the title
# Render a template to display the data
return render(request, 'title_page.html', {'title': title})





Home

Titles

{% for title in titles %}
{{ title.name 
}}
{% endfor %}





On Thursday, October 26, 2023 at 2:10:09 PM UTC+1 AAnnoo khan wrote:

> Give the same statement to ChatGPT and it will give you a very good 
> explanation of this problem.
> I did it before with ChatGPT 
>
> On Wed, Oct 25, 2023, 10:25 PM Raymond N  wrote:
>
>> Am working on a website using django and i want to create a dropdown list 
>> on the navigation bar such that when i add a title in the admin its added 
>> here.
>>
>> This title should also automatically be a link to a page populated with 
>> data attached to that specific title
>>
>> Does anyone know how i can do this??
>>
>> Thanks, 
>> Raymond
>>
>> -- 
>>
> 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 django-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAJpDcBRHUKy9V_g-n_o5cd71LKqUPAEfjJxD041%3DEqeaRPmqyA%40mail.gmail.com
>>  
>> 
>> .
>>
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4dc7a2a4-7299-43b9-9389-ae71d28ebfebn%40googlegroups.com.


Re: Dynamic creation of pages

2023-10-26 Thread AAnnoo khan
Give the same statement to ChatGPT and it will give you a very good
explanation of this problem.
I did it before with ChatGPT

On Wed, Oct 25, 2023, 10:25 PM Raymond N  wrote:

> Am working on a website using django and i want to create a dropdown list
> on the navigation bar such that when i add a title in the admin its added
> here.
>
> This title should also automatically be a link to a page populated with
> data attached to that specific title
>
> Does anyone know how i can do this??
>
> Thanks,
> Raymond
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJpDcBRHUKy9V_g-n_o5cd71LKqUPAEfjJxD041%3DEqeaRPmqyA%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BEU9cf22-kv3UC%3DBGM0-9fuf_AbJ1RdWEViOhqcNQkmN6hN8w%40mail.gmail.com.


Re: Dynamic creation of pages

2023-10-26 Thread LaVie
it is possible to share the repo url?

On Wednesday, 25 October 2023 at 18:25:45 UTC+1 Raymond N wrote:

> Am working on a website using django and i want to create a dropdown list 
> on the navigation bar such that when i add a title in the admin its added 
> here.
>
> This title should also automatically be a link to a page populated with 
> data attached to that specific title
>
> Does anyone know how i can do this??
>
> Thanks, 
> Raymond
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ef9eb3f9-b078-4e2c-a91f-750b699694c9n%40googlegroups.com.


Re: Form does not import current data from data base

2023-10-26 Thread Kani Sbt
in django how to do phonepay integration any know or any blog or video
anything , could you tell me !!! , i need  to do that payment integration
in phonepay

On Thu, 26 Oct 2023 at 14:30, Stefan Kusmierz 
wrote:

> Hi Migui, thanks for your input. It didn't work.
>
>
> Migui Galan schrieb am Donnerstag, 26. Oktober 2023 um 09:27:48 UTC+2:
>
>> Hi Stefan, sorry i thought the process you are working is in POST
>> request. Try to place your func() after formchoices3.
>>
>> On Wed, Oct 25, 2023 at 4:10 PM Stefan Kusmierz 
>> wrote:
>>
>>> Hi Migui,
>>> I'm enchanted to receive such a quick answer.
>>> 1. It's MyForm1_2_3_4() because it's the answer to the first Get request
>>> while the page is opened
>>> 2. Why would I try to save the form to the data base?
>>> Best regards, Stefan
>>>
>>>
>>> Migui Galan schrieb am Mittwoch, 25. Oktober 2023 um 03:39:16 UTC+2:
>>>
 Hi Stefan!
 it should be form = MyForm1_2_3_4(request.POST) where POST request will
 place/process the data to your form then after form.save()

 On Wed, Oct 25, 2023 at 12:29 AM Stefan Kusmierz 
 wrote:

> Dear community,
> this looks like a django bug to me:
> 1. (see first image)
> By api query I confirm that the last object of class List has the
> value "Startwert_neu2" in its field a, which was expected.
> 2. (see second image)
> The form "MyForm1_2_3_4" is instantiated using exactly the same
> command ("List.objects.last().a") to build formchoices3 which enter the
> corresponding choicefield furtherdown in "MyForm1_2_3_4" (not shown in the
> image)
> 3. While running the app my print out (to find the problem) states,
> that formchoices3 does not contain the expected data "Startwert_neu2" but
> "mCP purity", which is old data from older objects. So the rendered Form
> also contains the old data.
> To complete the information I also added snippets of views (fourth
> image) and models (fifth image).
> Is this a known issue?
> Thanks in advance,
> Stefan
>
> [image: DB-Query.jpg][image: Form.jpg][image: print out while
> running.jpg][image: snippet from views.jpg][image: snippet from
> models.jpg]
>
> --
> 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 django-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/085fcd6d-13aa-422b-86f9-1e15c2549ac8n%40googlegroups.com
> 
> .
>
 --
>>> 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 django-users...@googlegroups.com.
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/43b913ef-c9a3-4705-9b58-a889f2667426n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6730a25f-6a75-42ea-bb69-6742dfed5bc8n%40googlegroups.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKJFrTRYuvX3gm_jjdrtgHA%2BtX0EEfzSNQpQBPnOYx-iWVxODA%40mail.gmail.com.


Re: Form does not import current data from data base

2023-10-26 Thread Stefan Kusmierz
Hi Migui, thanks for your input. It didn't work.


Migui Galan schrieb am Donnerstag, 26. Oktober 2023 um 09:27:48 UTC+2:

> Hi Stefan, sorry i thought the process you are working is in POST request. 
> Try to place your func() after formchoices3.
>
> On Wed, Oct 25, 2023 at 4:10 PM Stefan Kusmierz  
> wrote:
>
>> Hi Migui, 
>> I'm enchanted to receive such a quick answer.
>> 1. It's MyForm1_2_3_4() because it's the answer to the first Get request 
>> while the page is opened
>> 2. Why would I try to save the form to the data base?
>> Best regards, Stefan
>>
>>
>> Migui Galan schrieb am Mittwoch, 25. Oktober 2023 um 03:39:16 UTC+2:
>>
>>> Hi Stefan!
>>> it should be form = MyForm1_2_3_4(request.POST) where POST request will 
>>> place/process the data to your form then after form.save()
>>>
>>> On Wed, Oct 25, 2023 at 12:29 AM Stefan Kusmierz  
>>> wrote:
>>>
 Dear community,
 this looks like a django bug to me:
 1. (see first image)
 By api query I confirm that the last object of class List has the value 
 "Startwert_neu2" in its field a, which was expected.
 2. (see second image)
 The form "MyForm1_2_3_4" is instantiated using exactly the same command 
 ("List.objects.last().a") to build formchoices3 which enter the 
 corresponding choicefield furtherdown in "MyForm1_2_3_4" (not shown in the 
 image)
 3. While running the app my print out (to find the problem) states, 
 that formchoices3 does not contain the expected data "Startwert_neu2" but 
 "mCP purity", which is old data from older objects. So the rendered Form 
 also contains the old data.
 To complete the information I also added snippets of views (fourth 
 image) and models (fifth image).
 Is this a known issue? 
 Thanks in advance,
 Stefan

 [image: DB-Query.jpg][image: Form.jpg][image: print out while 
 running.jpg][image: snippet from views.jpg][image: snippet from 
 models.jpg]

 -- 
 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 django-users...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/085fcd6d-13aa-422b-86f9-1e15c2549ac8n%40googlegroups.com
  
 
 .

>>> -- 
>> 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 django-users...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/43b913ef-c9a3-4705-9b58-a889f2667426n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6730a25f-6a75-42ea-bb69-6742dfed5bc8n%40googlegroups.com.


Re: Dynamic creation of pages

2023-10-26 Thread Percy Masekwameng
With the help of bootstrap, then you just make queryset and loop the titles
in the dropdown list,




On Wed, 25 Oct 2023, 19:25 Raymond N,  wrote:

> Am working on a website using django and i want to create a dropdown list
> on the navigation bar such that when i add a title in the admin its added
> here.
>
> This title should also automatically be a link to a page populated with
> data attached to that specific title
>
> Does anyone know how i can do this??
>
> Thanks,
> Raymond
>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJpDcBRHUKy9V_g-n_o5cd71LKqUPAEfjJxD041%3DEqeaRPmqyA%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANfc-pAhDOgpChiw0iMTDvOkudOhz5pUb3H5LgPCg8mqSrqiHw%40mail.gmail.com.


Re: Hire remote Python codeer

2023-10-26 Thread Basith
Hello, I'm interested in this position. Heres my resume. PFA.

On Thu, Oct 26, 2023, 5:23 AM Prateek Lodhi 
wrote:

>
> On Thu, 26 Oct, 2023, 00:52 Daniel Joseph, 
> wrote:
>
>> Hello i am Daniel Joseph Good in Python programming and front-end
>> development
>> I have developed many project and helped a PHD student with is Data
>> analysis project using some python libraries like Pandas, Numpy, Matplotlib
>> I am also good in Django and PHP
>>
>> On Tue, 24 Oct 2023 at 17:29, 许三高  wrote:
>>
>>> Hire remote Python codeer
>>>
>>> We are currently looking for a talented and experienced remote Python
>>> programmer to join our team. If you have at least three years of work
>>> experience, the ability to independently develop front-end and back-end
>>> solutions, strong familiarity with MongoDB, the ability to write automation
>>> scripts, and proficiency in Linux system maintenance, then we want to hear
>>> from you .
>>>
>>> Require:
>>>
>>> At least three years of Python programming experience.
>>> Proficient in developing front-end and back-end solutions independently.
>>> Very familiar with MongoDB database administration.
>>> Ability to write automation scripts to streamline processes.
>>> Proficient in Linux system maintenance and troubleshooting.
>>> Have experience in developing web development frameworks flask and django
>>> salary:
>>>
>>> Salary range: $1000-$1500 per month.
>>> Starting salary: $1,000 per month.
>>> The probation period is three months, and the salary can be adjusted
>>> based on work performance.
>>> Maximum monthly salary is capped at $1,500 based on development skills
>>> and performance ratings.
>>> telegram: https://t.me/easychat3
>>>
>>> --
>>> 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 django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/ec504c58-3352-4ade-a59c-876038dd94fan%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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 django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAMHD5ZTwOwci2UP3JxwfHgWaUXj8-FOq6MgXv0PjaLwPh-2krw%40mail.gmail.com
>> 
>> .
>>
> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAEKYTezbDQ07-3v%2BnFZG3B%3Dgcua1R83GneuHA49xA6jdB2O8Ww%40mail.gmail.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAADw1swqNT%2B1jc3qHpimFoxCRLB8TDfwAHg6S7fM_RB8LQOrfw%40mail.gmail.com.


Muhammed_Basith_Resume_25-10-2023-14-01-55.pdf
Description: Adobe PDF document


Re: Form does not import current data from data base

2023-10-26 Thread Migui Galan
Hi Stefan, sorry i thought the process you are working is in POST request.
Try to place your func() after formchoices3.

On Wed, Oct 25, 2023 at 4:10 PM Stefan Kusmierz 
wrote:

> Hi Migui,
> I'm enchanted to receive such a quick answer.
> 1. It's MyForm1_2_3_4() because it's the answer to the first Get request
> while the page is opened
> 2. Why would I try to save the form to the data base?
> Best regards, Stefan
>
>
> Migui Galan schrieb am Mittwoch, 25. Oktober 2023 um 03:39:16 UTC+2:
>
>> Hi Stefan!
>> it should be form = MyForm1_2_3_4(request.POST) where POST request will
>> place/process the data to your form then after form.save()
>>
>> On Wed, Oct 25, 2023 at 12:29 AM Stefan Kusmierz 
>> wrote:
>>
>>> Dear community,
>>> this looks like a django bug to me:
>>> 1. (see first image)
>>> By api query I confirm that the last object of class List has the value
>>> "Startwert_neu2" in its field a, which was expected.
>>> 2. (see second image)
>>> The form "MyForm1_2_3_4" is instantiated using exactly the same command
>>> ("List.objects.last().a") to build formchoices3 which enter the
>>> corresponding choicefield furtherdown in "MyForm1_2_3_4" (not shown in the
>>> image)
>>> 3. While running the app my print out (to find the problem) states, that
>>> formchoices3 does not contain the expected data "Startwert_neu2" but "mCP
>>> purity", which is old data from older objects. So the rendered Form also
>>> contains the old data.
>>> To complete the information I also added snippets of views (fourth
>>> image) and models (fifth image).
>>> Is this a known issue?
>>> Thanks in advance,
>>> Stefan
>>>
>>> [image: DB-Query.jpg][image: Form.jpg][image: print out while
>>> running.jpg][image: snippet from views.jpg][image: snippet from
>>> models.jpg]
>>>
>>> --
>>> 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 django-users...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/085fcd6d-13aa-422b-86f9-1e15c2549ac8n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/43b913ef-c9a3-4705-9b58-a889f2667426n%40googlegroups.com
> 
> .
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKKJMPOoEjOge6ct6qTvq6fNkZTDRJ4gAc-kvAtNzjN4Vu47XQ%40mail.gmail.com.