Re: Why I love Django

2022-09-10 Thread Robbi Nespu

Hello Paul

On 10/9/2022 9:15 pm, Paul Onteri wrote:
Choosing a web framework is hard. Especially now when there are a lot of 
frameworks on the market, each designed to address different project 
needs. Here is why I think that when building a large database-driven 
application, I would honestly pay to use Django.


https://paulonteri.com/thoughts/love-django 





Nice blog post. I enjoy reading the content. Keep writing!
--
Regards
Robbi Nespu

PGP: D311 B5FF EEE6 0BE8 9C91 FA9E 0C81 FA30 3B3A 80BA

--
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/680b439f-1eb6-6420-0ace-39630bcc14fb%40gmail.com.


Re: django deploy on IIS

2022-09-10 Thread jayson lauwerends
I would really appreciate it.
if you help me.
What must I do.

On Sat, Sep 10, 2022 at 8:36 PM Nemani Srinivas Murthy 
wrote:

> I can help you with this, as I have deployed all my django apps on IIS.
>
> On Sun, 11 Sep 2022 at 2:29 AM, Paul Kudla (SCOM.CA Internet Services
> Inc.)  wrote:
>
>>
>> Ok please do not take this the wrong way .
>>
>> this comes from 20+ years of experience of all the different platforms.
>>
>> windows is good for microsoft office etc, they have kinda set the
>> standard in day to day useage to run a business.
>>
>> however 
>>
>> production servers today are almost entirley on the unix side of the
>> platforms.
>>
>> although you could  try getting a windows IIS running (never tried and i
>> do apologise for answering this thread saying that - i appreciate your
>> frustration)
>>
>> to get django to run on IIS (or consider windows apache would probably
>> be better but at the end of the day ???)
>>
>>
>> i did try server 2019 + python3 + django + apache etc etc and gave up
>> ended up putting the project on their freebsd router.
>>
>>
>> a lot of work would be spent when unix flavors are more suited to stuff
>> like this.
>>
>> at the end of the day windows is just not stable for multiple reasons.
>>
>>
>> too many lib issues to mention a few.
>>
>> if you are running any kind of production server you really should look
>> at a linux flavor (i use freebsd as it has several enhancements to the
>> network layer)
>>
>> Again not an answer but maybe it is !
>>
>>
>>
>> Happy Saturday !!!
>> Thanks - paul
>>
>> Paul Kudla
>>
>>
>> Scom.ca Internet Services 
>> 004-1009 Byron Street South
>> Whitby, Ontario - Canada
>> L1N 4S3
>>
>> Toronto 416.642.7266
>> Main 1.866.411.7266
>> Fax 1.888.892.7266
>> Email p...@scom.ca
>>
>> On 9/10/2022 1:01 PM, jayson lauwerends wrote:
>> > Hello,
>> > Does anyone here know how to get a Django project to work on IIS.
>> > I have been trying for the last three weeks following different
>> tutorials.
>> > Everyone on stack overflow is giving different answers.
>> > And i am losing my m9nd.
>> >
>> > --
>> > 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/c91b9d18-af31-441f-a5a6-7b9e2a23f2edn%40googlegroups.com
>> <
>> https://groups.google.com/d/msgid/django-users/c91b9d18-af31-441f-a5a6-7b9e2a23f2edn%40googlegroups.com?utm_medium=email_source=footer
>> >.
>> >
>> > --
>> > This message has been scanned for viruses and
>> > dangerous content by *MailScanner* , and
>> is
>> > believed to be clean.
>>
>> --
>> 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/8a14bd2c-7fdb-b1b7-436e-c99b529c1985%40scom.ca
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/QwM6_wy0q9g/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAHiX4dgxEQgr3dGU2d-V8qfKHfvDBHPNMkPaPT6Gw9wN8fBaog%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/CAGTnufAbP40yS-_T9s9J9x93qn7twUMiD%2BDsmwUtjkmr%2Bif-Cg%40mail.gmail.com.


Re: django deploy on IIS

2022-09-10 Thread Nemani Srinivas Murthy
I can help you with this, as I have deployed all my django apps on IIS.

On Sun, 11 Sep 2022 at 2:29 AM, Paul Kudla (SCOM.CA Internet Services Inc.)
 wrote:

>
> Ok please do not take this the wrong way .
>
> this comes from 20+ years of experience of all the different platforms.
>
> windows is good for microsoft office etc, they have kinda set the
> standard in day to day useage to run a business.
>
> however 
>
> production servers today are almost entirley on the unix side of the
> platforms.
>
> although you could  try getting a windows IIS running (never tried and i
> do apologise for answering this thread saying that - i appreciate your
> frustration)
>
> to get django to run on IIS (or consider windows apache would probably
> be better but at the end of the day ???)
>
>
> i did try server 2019 + python3 + django + apache etc etc and gave up
> ended up putting the project on their freebsd router.
>
>
> a lot of work would be spent when unix flavors are more suited to stuff
> like this.
>
> at the end of the day windows is just not stable for multiple reasons.
>
>
> too many lib issues to mention a few.
>
> if you are running any kind of production server you really should look
> at a linux flavor (i use freebsd as it has several enhancements to the
> network layer)
>
> Again not an answer but maybe it is !
>
>
>
> Happy Saturday !!!
> Thanks - paul
>
> Paul Kudla
>
>
> Scom.ca Internet Services 
> 004-1009 Byron Street South
> Whitby, Ontario - Canada
> L1N 4S3
>
> Toronto 416.642.7266
> Main 1.866.411.7266
> Fax 1.888.892.7266
> Email p...@scom.ca
>
> On 9/10/2022 1:01 PM, jayson lauwerends wrote:
> > Hello,
> > Does anyone here know how to get a Django project to work on IIS.
> > I have been trying for the last three weeks following different
> tutorials.
> > Everyone on stack overflow is giving different answers.
> > And i am losing my m9nd.
> >
> > --
> > 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/c91b9d18-af31-441f-a5a6-7b9e2a23f2edn%40googlegroups.com
> <
> https://groups.google.com/d/msgid/django-users/c91b9d18-af31-441f-a5a6-7b9e2a23f2edn%40googlegroups.com?utm_medium=email_source=footer
> >.
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by *MailScanner* , and
> is
> > believed to be clean.
>
> --
> 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/8a14bd2c-7fdb-b1b7-436e-c99b529c1985%40scom.ca
> .
>

-- 
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/CAHiX4dgxEQgr3dGU2d-V8qfKHfvDBHPNMkPaPT6Gw9wN8fBaog%40mail.gmail.com.


Re: Filter by date range

2022-09-10 Thread carlos
hello try debug
query_results = Prescription.objects.filter(date__range=["2022-07-01","
2022-07-30"])
len(query_results)
if come with records so, fromdate and todate is the problem!

On Sat, Sep 10, 2022 at 12:12 PM tech george  wrote:

> Hello Muhammad,
>
> I'm choosing dates between 2022-07-01 and 2022-07-30 which have records in
> the db.
>
> I hope i have answered you right.
>
>
> On Sat, Sep 10, 2022 at 8:41 AM Muhammad Juwaini Abdul Rahman <
> juwa...@gmail.com> wrote:
>
>> What's your value of 'fromdate' and 'todate'?
>>
>> On Sat, 10 Sept 2022 at 13:27, tech george  wrote:
>>
>>> Hello Carlos,
>>>
>>> I have used the code below as you advised by when I filter the table
>>> comes blank:
>>>
>>> query_results = Prescription.objects.filter(date__rang
>>> e=[fromdate,todate])
>>>
>>> Regards,
>>>
>>>
>>> On Fri, Sep 9, 2022 at 6:11 PM carlos  wrote:
>>>
 Hello why use raw?
 query_results = Prescription.objects.filter(date__rang
 e=[fromdate,todate])
 if you have any problem with performance hit database use
 select_related or used m2m field use prefect_related
 https://docs.djangoproject.com/en/4.1/ref/models/querysets/

 best!

 On Fri, Sep 9, 2022 at 7:48 AM tech george 
 wrote:

> Hello friends!
>
> I am trying to give users an easier way to filter data by date range.
>
> My views.py code is as below, but unfortunately, it is hiding data
> without applying the filter whenever I try to use if, else statements.
>
> Please advise what I might be doing wrong.
>
> views.py
>
> ef referralsReports(request):
> if request.method=="POST":
> fromdate = request.POST.get('fromdate')
> todate = request.POST.get('todate')
> searchresults = Prescription.objects.raw('select 
> id,description,prescribe,ailment,ailment_2,ailment_3,'
>  
> 'sickOff,referral,date_precribed,nurse_id,patient_id_id,'
>  
> 'non_work_related_sickOff from pharmacy_prescription where date_precribed 
> '
>  'between 
> "'+str(fromdate)+'" and "'+str(todate)+'"')
> return render(request, 
> 'pharmacist_templates/reports/referrals_report.html', {"data": 
> searchresults})
>
> else:
> displaydata = 
> Prescription.objects.filter(nurse=request.user.pharmacist).order_by('-id')
> return render(request, 
> 'pharmacist_templates/reports/referrals_report.html', 
> {"data":displaydata})
>
>
> template
>
> [image: image.png]
>
>
> --
> 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/CADYG20Go5PXJRP-MGJ07M36ftSaQ6WJVjYg_p4UYB9UUWge-LA%40mail.gmail.com
> 
> .
>


 --
 att.
 Carlos Rocha

 --
 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/CAM-7rO3UTB%2Bm7gYzfQ_RB%2BDnDWetnO3E18knFuLPJAU%2BBQrbLw%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/CADYG20F%3D3470-FCgJZ0amOHUDV%3DXvHQ6ZWKak2VjcB%2BjD26Qkg%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/CAFKhtoTAKxT%2BLrQ-VqXzsV-7Rm1Z%2BeAwJkQXKRJYYkVZTemd4A%40mail.gmail.com
>> 

Re: django deploy on IIS

2022-09-10 Thread jayson lauwerends
Hi Paul,

I am doing this because my internship and the company is familiar with IIS
but not with Django.
I will try other things first to try to get this server to work.
I understand your point.
If i don't get close to giving up i will ask if i can deploy it on another
server.

regards.
Jayson de Getrouwe


On Sat, Sep 10, 2022 at 5:00 PM Paul Kudla (SCOM.CA Internet Services Inc.)
 wrote:

>
> Ok please do not take this the wrong way .
>
> this comes from 20+ years of experience of all the different platforms.
>
> windows is good for microsoft office etc, they have kinda set the
> standard in day to day useage to run a business.
>
> however 
>
> production servers today are almost entirley on the unix side of the
> platforms.
>
> although you could  try getting a windows IIS running (never tried and i
> do apologise for answering this thread saying that - i appreciate your
> frustration)
>
> to get django to run on IIS (or consider windows apache would probably
> be better but at the end of the day ???)
>
>
> i did try server 2019 + python3 + django + apache etc etc and gave up
> ended up putting the project on their freebsd router.
>
>
> a lot of work would be spent when unix flavors are more suited to stuff
> like this.
>
> at the end of the day windows is just not stable for multiple reasons.
>
>
> too many lib issues to mention a few.
>
> if you are running any kind of production server you really should look
> at a linux flavor (i use freebsd as it has several enhancements to the
> network layer)
>
> Again not an answer but maybe it is !
>
>
>
> Happy Saturday !!!
> Thanks - paul
>
> Paul Kudla
>
>
> Scom.ca Internet Services 
> 004-1009 Byron Street South
> Whitby, Ontario - Canada
> L1N 4S3
>
> Toronto 416.642.7266
> Main 1.866.411.7266
> Fax 1.888.892.7266
> Email p...@scom.ca
>
> On 9/10/2022 1:01 PM, jayson lauwerends wrote:
> > Hello,
> > Does anyone here know how to get a Django project to work on IIS.
> > I have been trying for the last three weeks following different
> tutorials.
> > Everyone on stack overflow is giving different answers.
> > And i am losing my m9nd.
> >
> > --
> > 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/c91b9d18-af31-441f-a5a6-7b9e2a23f2edn%40googlegroups.com
> <
> https://groups.google.com/d/msgid/django-users/c91b9d18-af31-441f-a5a6-7b9e2a23f2edn%40googlegroups.com?utm_medium=email_source=footer
> >.
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by *MailScanner* , and
> is
> > believed to be clean.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/QwM6_wy0q9g/unsubscribe.
> To unsubscribe from this group and all its topics, 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/8a14bd2c-7fdb-b1b7-436e-c99b529c1985%40scom.ca
> .
>

-- 
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/CAGTnufB8jqAGCf-Wq29EeHYXUaGfvk6FEfkTdeov0BMtzoLn%3Dw%40mail.gmail.com.


Re: django deploy on IIS

2022-09-10 Thread Paul Kudla (SCOM.CA Internet Services Inc.)



Ok please do not take this the wrong way .

this comes from 20+ years of experience of all the different platforms.

windows is good for microsoft office etc, they have kinda set the 
standard in day to day useage to run a business.


however 

production servers today are almost entirley on the unix side of the 
platforms.


although you could  try getting a windows IIS running (never tried and i 
do apologise for answering this thread saying that - i appreciate your 
frustration)


to get django to run on IIS (or consider windows apache would probably 
be better but at the end of the day ???)



i did try server 2019 + python3 + django + apache etc etc and gave up 
ended up putting the project on their freebsd router.



a lot of work would be spent when unix flavors are more suited to stuff 
like this.


at the end of the day windows is just not stable for multiple reasons.


too many lib issues to mention a few.

if you are running any kind of production server you really should look 
at a linux flavor (i use freebsd as it has several enhancements to the 
network layer)


Again not an answer but maybe it is !



Happy Saturday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services 
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
Email p...@scom.ca

On 9/10/2022 1:01 PM, jayson lauwerends wrote:

Hello,
Does anyone here know how to get a Django project to work on IIS.
I have been trying for the last three weeks following different tutorials.
Everyone on stack overflow is giving different answers.
And i am losing my m9nd.

--
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/c91b9d18-af31-441f-a5a6-7b9e2a23f2edn%40googlegroups.com .


--
This message has been scanned for viruses and
dangerous content by *MailScanner* , and is
believed to be clean.


--
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/8a14bd2c-7fdb-b1b7-436e-c99b529c1985%40scom.ca.


Re: DJANGO ADMIN SPECIFICATION

2022-09-10 Thread Dushime Mudahera Richard
yeah  All u said can be done in short """CRUD


*Best Regards *
*Dushime Mudahera Richard*
*Google Crowdsource Influencer*
*GDSC Lead 2021-2022 Bugema University*
*Visit :* https://www.facebook.com/BSA256
*Visit me *: Community Learning MS

Web dev and  IT Manager @Bluebird Soccer Academy
Kyangwali Refugee Settlement  Office
richdus...@gmail.com | richarddush...@bluebirdsocceracademy.org
*Website *: www.bluebirdsocceracademy.org
Sports | Mentorship | Leadership | Girl Child Empowerment


On Sat, Sep 10, 2022 at 7:21 PM nana kwame  wrote:

> Please I would like to ask if Django admin can be used to update and
> delete and create webpages also. And also if it can be used to update
> information on the user side from the admin panel. Thank You
>
> --
> 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/3fe4e1e6-a313-460b-aef2-77b4d76da9d5n%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/CAJCm56JprYrbt9Um6HRVX%3DDVYpyjTyqBNEqTFu%3DP%3DPX3DSChYQ%40mail.gmail.com.


Re: What Programming Language should i learn

2022-09-10 Thread 'Kasper Laudrup' via Django users

On 10/09/2022 01.35, arts maxwell Anderson wrote:

i need job in django anyone



If you want anyone to take you seriously you should probably do a little 
more effort than that.


Learning how to post to a mailing list/forum and not highjacking 
existing threads would be a good start.


Kind regards,

Kasper Laudrup

--
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/2ea18945-c5b5-50fd-5df6-f12c0b1ef1c1%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: DJANGO ADMIN SPECIFICATION

2022-09-10 Thread 'Kasper Laudrup' via Django users

On 10/09/2022 03.24, nana kwame wrote:
Please I would like to ask if Django admin can be used to update and 
delete and create webpages also.


If you write the appropriate models and views then yes, it can.

And also if it can be used to update 
information on the user side from the admin panel. Thank You




Yes.

Kind regards,

Kasper Laudrup

--
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/a64c3d13-bd64-6c3a-07de-a50c16d3f51c%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Facing Problem

2022-09-10 Thread 'Kasper Laudrup' via Django users

On 10/09/2022 12.00, Anil Singh wrote:

Dear All
When i running our program then coming this type of error, what is 
solutions




Hard to know since you haven't provided enough information for anyone to 
help you.


Remember that no one has any idea what you are trying to achieve, what 
your code looks like, if your code has worked and you just broke it etc.


Learn how to ask a good question if you want a good answer.

Kind regards,

Kasper Laudrup

--
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/f86be854-bed5-f9b1-87c0-106641842f31%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Filter by date range

2022-09-10 Thread tech george
Hello Muhammad,

I'm choosing dates between 2022-07-01 and 2022-07-30 which have records in
the db.

I hope i have answered you right.


On Sat, Sep 10, 2022 at 8:41 AM Muhammad Juwaini Abdul Rahman <
juwa...@gmail.com> wrote:

> What's your value of 'fromdate' and 'todate'?
>
> On Sat, 10 Sept 2022 at 13:27, tech george  wrote:
>
>> Hello Carlos,
>>
>> I have used the code below as you advised by when I filter the table
>> comes blank:
>>
>> query_results = Prescription.objects.filter(date__rang
>> e=[fromdate,todate])
>>
>> Regards,
>>
>>
>> On Fri, Sep 9, 2022 at 6:11 PM carlos  wrote:
>>
>>> Hello why use raw?
>>> query_results = Prescription.objects.filter(date__rang
>>> e=[fromdate,todate])
>>> if you have any problem with performance hit database use select_related
>>> or used m2m field use prefect_related
>>> https://docs.djangoproject.com/en/4.1/ref/models/querysets/
>>>
>>> best!
>>>
>>> On Fri, Sep 9, 2022 at 7:48 AM tech george 
>>> wrote:
>>>
 Hello friends!

 I am trying to give users an easier way to filter data by date range.

 My views.py code is as below, but unfortunately, it is hiding data
 without applying the filter whenever I try to use if, else statements.

 Please advise what I might be doing wrong.

 views.py

 ef referralsReports(request):
 if request.method=="POST":
 fromdate = request.POST.get('fromdate')
 todate = request.POST.get('todate')
 searchresults = Prescription.objects.raw('select 
 id,description,prescribe,ailment,ailment_2,ailment_3,'
  
 'sickOff,referral,date_precribed,nurse_id,patient_id_id,'
  'non_work_related_sickOff 
 from pharmacy_prescription where date_precribed '
  'between 
 "'+str(fromdate)+'" and "'+str(todate)+'"')
 return render(request, 
 'pharmacist_templates/reports/referrals_report.html', {"data": 
 searchresults})

 else:
 displaydata = 
 Prescription.objects.filter(nurse=request.user.pharmacist).order_by('-id')
 return render(request, 
 'pharmacist_templates/reports/referrals_report.html', {"data":displaydata})


 template

 [image: image.png]


 --
 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/CADYG20Go5PXJRP-MGJ07M36ftSaQ6WJVjYg_p4UYB9UUWge-LA%40mail.gmail.com
 
 .

>>>
>>>
>>> --
>>> att.
>>> Carlos Rocha
>>>
>>> --
>>> 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/CAM-7rO3UTB%2Bm7gYzfQ_RB%2BDnDWetnO3E18knFuLPJAU%2BBQrbLw%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/CADYG20F%3D3470-FCgJZ0amOHUDV%3DXvHQ6ZWKak2VjcB%2BjD26Qkg%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/CAFKhtoTAKxT%2BLrQ-VqXzsV-7Rm1Z%2BeAwJkQXKRJYYkVZTemd4A%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 

django deploy on IIS

2022-09-10 Thread jayson lauwerends
Hello,
Does anyone here know how to get a Django project to work on IIS.
I have been trying for the last three weeks following different tutorials.
Everyone on stack overflow is giving different answers.
And i am losing my m9nd.

-- 
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/c91b9d18-af31-441f-a5a6-7b9e2a23f2edn%40googlegroups.com.


Re: Facing Problem

2022-09-10 Thread pankaj palmate
Hi Anil , you might need to pass Id In your view as argument

On Sat, 10 Sep, 2022, 9:51 pm Anil Singh,  wrote:

> Dear All
> When i running our program then coming this type of error, what is
> solutions
>
> TypeError at /errorapi/insuranceDetails/get() missing 1 required
> positional argument: 'id'
> Request Method:
> GET
> Request URL:
> http://127.0.0.1:8000/errorapi/insuranceDetails/
> Django Version:
> 2.1.7
> Exception Type:
> TypeError
> Exception Value:
> get() missing 1 required positional argument: 'id'
> Exception Location:
> /home/abcd/.local/lib/python3.8/site-packages/rest_framework/views.py in
> dispatch, line 502
> Python Executable:
> /usr/bin/python3
> Python Version:
> 3.8.10
> Python Path:
> ['/home/abcd/Desktop/error', '/usr/lib/python38.zip',
> '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload',
> '/home/abcd/.local/lib/python3.8/site-packages',
> '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages']
> Server time:
> Sat, 10 Sep 2022 09:41:27 +
>
> --
> 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/d576d224-a636-41a2-98e3-17dd0a7f7edcn%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/CAPyMU1LawtH5WPCkiir%3DPiQEUcXz1MV_37a__dAZRNm%3DqR7NFg%40mail.gmail.com.


DJANGO ADMIN SPECIFICATION

2022-09-10 Thread nana kwame
Please I would like to ask if Django admin can be used to update and delete 
and create webpages also. And also if it can be used to update information 
on the user side from the admin panel. Thank You

-- 
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/3fe4e1e6-a313-460b-aef2-77b4d76da9d5n%40googlegroups.com.


Facing Problem

2022-09-10 Thread Anil Singh
Dear All
When i running our program then coming this type of error, what is 
solutions 

TypeError at /errorapi/insuranceDetails/get() missing 1 required positional 
argument: 'id'
Request Method:
GET
Request URL:
http://127.0.0.1:8000/errorapi/insuranceDetails/
Django Version:
2.1.7
Exception Type:
TypeError
Exception Value:
get() missing 1 required positional argument: 'id'
Exception Location:
/home/abcd/.local/lib/python3.8/site-packages/rest_framework/views.py in 
dispatch, line 502
Python Executable:
/usr/bin/python3
Python Version:
3.8.10
Python Path:
['/home/abcd/Desktop/error', '/usr/lib/python38.zip', '/usr/lib/python3.8', 
'/usr/lib/python3.8/lib-dynload', 
'/home/abcd/.local/lib/python3.8/site-packages', 
'/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages']
Server time:
Sat, 10 Sep 2022 09:41:27 +

-- 
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/d576d224-a636-41a2-98e3-17dd0a7f7edcn%40googlegroups.com.


Why I love Django

2022-09-10 Thread Paul Onteri
Choosing a web framework is hard. Especially now when there are a lot of 
frameworks on the market, each designed to address different project needs. 
Here is why I think that when building a large database-driven application, 
I would honestly pay to use Django.

https://paulonteri.com/thoughts/love-django

-- 
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/0ae12e86-c427-4f35-aa9b-1150e8bd06fdn%40googlegroups.com.


Re: What Programming Language should i learn

2022-09-10 Thread arts maxwell Anderson
i need job in django anyone 

Le jeudi 1 septembre 2022 à 20:13:10 UTC+1, subtitle indo a écrit :

> We have received your message and will be in touch withinSorry not to 
> reply sooner.Sorry not to reply sooner.Sorry not to reply sooner.
>
> On Tue, Aug 30, 2022 at 3:59 PM Shailesh Yadav  
> wrote:
>
>> LOL, You mean you learned Django without first learning Python?.
>>
>> It depends but My suggestion would be to learn Python and later learn C++ 
>> (So then you will get much clarity on what is the difference between these 
>> two languages). Then after that, you can learn Data structure and 
>> Algorithms.
>>
>>
>> Thanks & Regards
>> Shailesh Yadav
>> +91-9920886044 <+91%2099208%2086044>
>>
>>   [image: Linkedin] 
>>  
>>
>>
>>
>> On Tue, Aug 30, 2022 at 8:12 PM Ryan Nowakowski  
>> wrote:
>>
>>> On Tue, Aug 30, 2022 at 03:35:26PM +0100, fawemimo olawale wrote:
>>> > Which of these  programming language should i learn
>>> > 
>>> > Please I need counselling on this two language though i have prior
>>> > knowledge on Python Web Framework (Django) as a beginner's but i want
>>> > Backend Language
>>> > 
>>> > JAVA or ASP.Net
>>>
>>> Python!  But of course this list is biased :)
>>>
>>> -- 
>>> 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/20220830144155.GD1858%40fattuba.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/CAMQ-AEUg0gV0CXmeGCogZ2s1hkGsBJoC5t9kwYNvCBqRKmczcg%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/79bbbefc-30ee-49dc-900a-0e0a8a1e612bn%40googlegroups.com.