Re: How to get a full path of web page to my views.py?

2020-06-08 Thread Rupesh Dahal
Can you please elaborate your problem.

On Monday, June 8, 2020 at 12:26:12 AM UTC+5:45, Sergei Sokov wrote:
>
> I have the path in the web browser like this
>
> http://192.168.0.178:8000/customers-orders/37/customers-orders-date/?datefilter=06%2F14%2F2020+-+06%2F26%2F2020
>
> How to get this path to my views.py for to work with it?
>

-- 
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/81859722-b5f9-4b8a-abb0-e5b767e11d93o%40googlegroups.com.


Re: How to retrieve dynamically the data ,submitted by a form in an html page, in a python function pointing to another html page in views.py?

2020-06-08 Thread Rupesh Dahal
You can save the data to a session but I would recommend you to store data 
in js in the browser itself.

On Monday, June 8, 2020 at 1:54:53 AM UTC+5:45, Pierre Jutard wrote:
>
> I have 2 html pages A and B. The user fills the AForm in the 'A' HTML 
> page(URL: A) then he will go to the 'B' html page (url: A/B) but i would 
> like to keep the AForm data of the 'A'HTML page in the python code in order 
> to use it after in the python function pointing to the 'B' HTML page.
>
> My idea was to retrieve the form data in parameter of the function 
> pointing to the 'B' HTML page.
>
> First:
> I have tried to point the form data to the 'B' HTML page via this line in 
> the 'A' HTML page code:
> 
>
> This is the function pointing to the A HTML page:
>
> def A_HTML_Function_view(request):
> AForm = A_Form()
> if request.method == 'POST': 
> AForm_result = A_Form(request.POST) 
> BForm
> return render(request, 'AppName/B.html',{'Bform':Bform})
> else:
> AForm = A_Form()
> return render(request, 'AppName/A.html',{'AForm':AForm})
>

-- 
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/97798c99-102b-47d1-ab1d-e2020f93c0c1o%40googlegroups.com.


Re: Date comparison as a filter

2020-06-08 Thread Rupesh Dahal
https://docs.djangoproject.com/en/3.0/topics/db/queries/ check this 
documentation.

On Monday, June 8, 2020 at 8:03:46 AM UTC+5:45, Clive Bruton wrote:
>
> I would like to add a date comparison filter to a lookup, to find   
> items in a database table that have not yet expired. I tried: 
>
> .filter(expires>=datetime.today()) \ 
>
> But this does not appear to have any effect. 
>
> "expires" is a column in the table of datetime type, that looks like   
> this: 
>
> "2020-07-08 01:17:27.952874" 
>
> Or do I have to format "datetime.today()" to match the format   
> displayed in the database table? 
>
> Thanks 
>
>
> -- Clive 
>

-- 
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/d965d058-a490-4489-a6cb-a685b5bae178o%40googlegroups.com.


Re: Best Django Rest Framework Tutorial??????

2020-06-12 Thread Rupesh Dahal
I would suggest the DRF documentation itself.

On Thu, Jun 11, 2020 at 8:12 PM chalist  wrote:

> I like this channel. Maybe you like, too:
>
> https://www.youtube.com/watch?v=XMu0T6L2KRQ
>
> On Thu, 11 Jun 2020 at 15:04, Mohamed SAMAKE 
> wrote:
>
>> https://agiliq.com/blog/2019/04/drf-polls/
>>
>> Le mer. 10 juin 2020 à 20:07, chaitanya orakala 
>> a écrit :
>>
>>> which is best among all those channels
>>> ?
>>>
>>> On Wed, Jun 10, 2020 at 3:59 PM cosmos multi 
>>> wrote:
>>>
 on youtube there are very good

 El mié., 10 jun. 2020 a las 14:40, chaitanya orakala (<
 chaitu.orak...@gmail.com>) escribió:

> Thank you jacklin
>
>
> On Wed, Jun 10, 2020 at 3:00 PM Jack Lin  wrote:
>
>> DOCUMENTATION
>>
>>
>> 在 2020年6月11日 於 上午2:58:42, chaitanya orakala (chaitu.orak...@gmail.com)
>> 寫下:
>>
>> can anyone please respond ??
>>
>> On Wed, Jun 10, 2020 at 9:51 AM Sai  wrote:
>>
>>> Hi djangoians,
>>> I want to learn django rest framework, may i please know which is
>>> best resource in online market or any youtube links or udemy courses???
>>>
>>> Thanks in advance.
>>>
>>> --
>>> 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/d8b89181-f0d9-4ee8-9f79-dedec63738d2o%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/CAPcTzRYC7UgBAE%3Dm47w74w7kx7JQEtt3ZGZ1naV%2B1tr4jiicYw%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/CAP7OQq11pVJOX6j6fZRHki2YVNiFE8w_yF_BAeFaCGf_mEhZdQ%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/CAPcTzRameZyEwswkSEvgn_txzHYnir-q%2B80SjeKxDSrqmotPVA%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%2Bt%2BYr3m5wAivA4hL3QX%2B9hTWTEB%3Ddiz-%2B8B8NSkQyKSnqQ%3DnA%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/CAPcTzRZbe3pxoGycbce18ykxbs9R18CEn7hybe%3DjxFHgDBYe5g%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/CAPVtpYiTieo-n9F

Re: How to add a user ratings feature in djnago application?

2020-06-13 Thread Rupesh Dahal
You can save rating on database and show them with the help of JS.

On Sun, Jun 14, 2020 at 12:52 AM learn code  wrote:

> Hello Everyone,
>
> Can anyone tell me how to add a star rating feature in Django application?
>
> --
> 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/ec01e0d3-78d3-4bd4-9dc0-ff9ec0da1866o%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/CAC-WMxm2MosgKr4amv5A0SkWOXGGOWxLXKn3Dya_o%2BAHk7WymQ%40mail.gmail.com.