Re: Need to trigger action on 4th Saturday of the month

2023-07-25 Thread Ross Meredith
No need to involve anything asynchronous, if I understand you correctly. Just check when the request is made whether it's the right time. If so process the registration, otherwise show the other page to indicate it's the wrong time. Ross On Tue, Jul 25, 2023 at 7:13 PM M Cain wrote: > User

Re: Combining two subquery counts using ORM

2022-11-09 Thread Ross Meredith
Last time I checked you can't use subquery inside the FROM clause. If you can please let me know how because I had this a while back and got stuck. I ended up using a package called django-cte. On Wed, Nov 9, 2022 at 9:01 PM Matthew Hegarty wrote: > Thanks > > I made some progress, and this

Re: Delivery Status Notification (Failure)

2022-09-17 Thread Ross Meredith
This is the wrong approach. You should use a model form. On Sat, Sep 17, 2022 at 8:54 PM Nishant Sagar wrote: > > Hey folks, > While saving the values to the data to the database I'm getting this Field > 'roof_age' expected a number but got ('1',) > > How can I resolve this? > Here is my

Re: Potential admin bug

2022-08-03 Thread Ross Meredith
It's more likely a set up problem than a bug I'd have thought. If it helps here is the relevant code - https://github.com/django/django/blob/main/django/contrib/admin/options.py#L132 . def response_add is the method which determines what the response to use after a successful addition. On Wed,

Re: Pass or refer parent query value into subquery

2022-07-26 Thread Ross Meredith
ot;publisher_... > ^ > HINT: No operator matches the given name and argument types. You might > need to add explicit type casts. > > Is there a way to handle this error? How can I cast the value into an > array? >

Re: Blog application with django

2022-07-26 Thread Ross Meredith
to build a blog. On Tue, Jul 26, 2022 at 4:42 PM MAHESH KUMAR wrote: > click above link in mail i want that type of Blog application > > > On Tue, Jul 26, 2022 at 9:04 PM Ross Meredith > wrote: > >> Sorry it's not clear what you are asking. >> >> On Tue,

Re: Blog application with django

2022-07-26 Thread Ross Meredith
Sorry it's not clear what you are asking. On Tue, Jul 26, 2022 at 4:33 PM MAHESH KUMAR wrote: > Hi all > > https://www.health.harvard.edu/mind-and-mood/relaxation-techniques-breath-control-helps-quell-errant-stress-response > > I want this type blog application please help me anybody coding

Re: Pass or refer parent query value into subquery

2022-07-26 Thread Ross Meredith
https://docs.djangoproject.com/en/4.0/ref/models/expressions/#django.db.models.OuterRef On Tue, Jul 26, 2022 at 4:27 PM Sencer Hamarat wrote: > Hi, > > I need to pass the parent query book_id value into the subquery. > Here is the model and the current state of the query I reached. > > class

Unable to log in the user using django channels because "connection is already closed"

2021-09-04 Thread Ross Meredith
Has anybody had this before? Here is the question on SO (which is better formatted) - https://stackoverflow.com/questions/69057713/unable-to-log-in-the-user-using-django-channels-because-connection-is-already-c I'm unable to log a user in with the login function provided by Django Channels. I

Re: multiplying two fields

2021-01-29 Thread Ross Meredith
com> wrote: > tanks Ross, i fixed my error but now only show me this > > >>> data = Articles.objects.all().annotate(F=('cost_buy') * > F('quantity')).output_field=FloatField('result') > >>> print(data) > > >>> > > what do you think

Re: multiplying two fields

2021-01-29 Thread Ross Meredith
Apologies, typo myself! That meant to say "typo" not "type". On Fri, Jan 29, 2021 at 9:52 PM Ross Meredith wrote: > > data = Articles.objects.all().annotate(result=F('coust_buy') * > F('quantity')).output_field=FloatField('result'), > > contains a

Re: multiplying two fields

2021-01-29 Thread Ross Meredith
data = Articles.objects.all().annotate(result=F('coust_buy') * F('quantity')).output_field=FloatField('result'), contains a type for the field "cost_buy" (i.e. not "coust_by"). If that isn't it please give us the traceback. On Fri, Jan 29, 2021 at 8:50 PM jose angel encinas ramos <

Django Accountancy Desktop App Inspired By Xero

2021-01-23 Thread Ross Meredith
Hi guys, I have just finished my first ever full stack web app, which is built with django of course. It is an open source accountancy app based partly on Xero, one of the leading products in the market, but with some differences. It is by no means a complete accountancy system but I hope it