Connecting Django with Redis

2023-11-27 Thread lone...@gmail.com
Hello all, I wanted to verify the connection between my django and Redis was working and I found this article: https://studygyaan.com/django/connect-django-with-redis I have already implemented what it asked and I got good results. I am kind of curious though, can I use the instructions w

Re: Simple Ajax Search

2023-11-23 Thread lone...@gmail.com
s a well trodden path for this sort of thing (unless I'm > mistaken, it's already available in the admin interface). Have a look at > the django-select2 package: > https://django-select2.readthedocs.io/en/latest/ > > On Thursday, November 23, 2023 at 12:36:23 PM UTC lone...

Simple Ajax Search

2023-11-23 Thread lone...@gmail.com
Hello all, I am looking for a simple how-to on creating an interactive search on a text field. As the user types the search results change and the user can click on the search result that they want. I have installed jquery3 and bootstrap5 in my django project. Thank you. -- You received

Django and QGIS Dockerimage

2023-11-20 Thread lone...@gmail.com
Hello all, I am playing around with Docker for the first time and would like to go over what I have done so far. For one docker image, I want to add Django and QGIS in one image. I think I have done that with the Dockerfile containing: "FROM python:3 FROM qgis/qgis ENV PYTHONUNBUFFERED=1 W

GeoDjango Hosting

2023-11-15 Thread lone...@gmail.com
Hello all, I am looking for a webhosting service that allows me to install qgis software packages on the webhost. My preferred hosts are either Ubuntu or Debian. Anyone know of any good solutions? Thank you. -- You received this message because you are subscribed to the Google Groups "

Using one query set for another query

2023-03-28 Thread lone...@gmail.com
Hello all, I am trying to use the query of: paid_bills = bill_payment_history.objects.filter(date_paid__year='2023', date_paid__month='03') as criteria for another query to only show the unpaid bills. The known_bills model is my control list of known bills that occur frequently. The bill_

Re: Checking API Results before saving

2022-09-02 Thread lone...@gmail.com
--- from rest_framework import serializers class ValidateFormSerializer(serializers.Serializer): tcNumber = serializers.CharField(max_length=255, source='receipts[0]tc

Re: Checking API Results before saving

2022-09-02 Thread lone...@gmail.com
ome_endpoint, data) > endpoint_serializer.validate(res.data) > if serializer.is_valid(): > #do your stuff > else : > #do something > > Best Regards > > Ammar Mohammed > > On Fri, 2 Sep 2022, 01:41 lone...@gmail.com, wrote: > >> Hello all, >> >> I am sendin

Checking API Results before saving

2022-09-01 Thread lone...@gmail.com
Hello all, I am sending an GET request to an external API and I would like to validate the response before I save it to my model. How do I do this? Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

converting CURL command

2022-08-21 Thread lone...@gmail.com
Hello all, I am interested in converting the CURL command of: curl 'https://www.walmart.com/chcwebapp/api/receipts' \ -H 'sec-ch-ua: "Chromium";v="98", " Not A;Brand";v="99", "Google Chrome";v="98"' \ -H 'accept: application/json' \ -H 'Referer: https://www.walmart.com/receipt-lookup' \ -H

Re: Generating Calendar files for iPhone and Android with Pthon3/django

2022-08-03 Thread lone...@gmail.com
; On Tue, 2 Aug 2022 at 15:48, lone...@gmail.com wrote: > >> I found: https://pypi.org/project/icalendar/. Are there any others out >> there? >> >> On Tuesday, August 2, 2022 at 10:41:44 AM UTC-4 Ryan Nowakowski wrote: >> >>> The standard is called iCal.

Re: Generating Calendar files for iPhone and Android with Pthon3/django

2022-08-02 Thread lone...@gmail.com
I found: https://pypi.org/project/icalendar/. Are there any others out there? On Tuesday, August 2, 2022 at 10:41:44 AM UTC-4 Ryan Nowakowski wrote: > The standard is called iCal. There are a few different python libraries to > choose from. > > > On August 1, 2022 2:51:3

Generating Calendar files for iPhone and Android with Pthon3/django

2022-08-01 Thread lone...@gmail.com
Hello all, I want to generate calendar files for both Android and iPhone. I do not want to connect to the Google or Apple APIs to do this. I just want static files that are downloaded from my webapp to the mobile device. How and can this be done? Thank you. -- You received this messa

Can I use session.userid in models FK restriction query?

2022-02-11 Thread lone...@gmail.com
Hello all, I am curious if I can use the session.userid in a model FK restriction query. 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 djang

Re: Lack of tutorials and explanations about channels

2022-01-25 Thread lone...@gmail.com
nt about documentation about Channels and as I've expressed most of > the other documentation as well. > > > > -- > *From:* django...@googlegroups.com on behalf > of lone...@gmail.com > *Sent:* Monday, January 24, 2022 6:03 AM > *To:* Django u

Re: Lack of tutorials and explanations about channels

2022-01-24 Thread lone...@gmail.com
You and me both are on the same page about documentation about Channels. I tried to follow: Django Channels Tutorial 🔥: the most minimal Real Time app (not Chat) | Django WebSockets on YouTube, but I kept running into issues. If you can follow thi

When I redirect to a previously used view old data is used

2022-01-17 Thread lone...@gmail.com
Hello all, I have a redirect that redirects to a previously used view. The data in the view should change, and does, once I reload the page. How can I get the new page without reloading the page first? For clarity, here is the basic process I have defined so far. 1. View is loaded and e

Re: Not sure if I am doing django-paypal correctly

2021-12-31 Thread lone...@gmail.com
s assumes that you already have a listener waiting for the signal > broadcast, > Also replace None with your sender (optional), and replace **kwargs with > any kwargs you're sending to your listeners. > > Cheers > > > On Wed, Dec 29, 2021, 9:23 PM lone...@gmail.com wro

Re: Not sure if I am doing django-paypal correctly

2021-12-30 Thread lone...@gmail.com
info I'll delete this but maybe this helps :) > > Regards > > On Wednesday, 29 December 2021 at 21:22:46 UTC+1 lone...@gmail.com wrote: > >> Hello all, >> >> I decided to try and accept payments on my web application. I have >> chosen the django-pay

Not sure if I am doing django-paypal correctly

2021-12-29 Thread lone...@gmail.com
Hello all, I decided to try and accept payments on my web application. I have chosen the django-paypal application to help me out with this task. I found a decent walkthrough at: how-to-accept-paypal-payments-on-your-django-application

Re: Testing Django User Login Form

2021-04-23 Thread lone...@gmail.com
Thank you for the reply! I will totally try this tonight! On Thursday, April 22, 2021 at 7:31:40 PM UTC-4 David Nugent wrote: > Try creating a request using RequestFactory and use that to input the > credentials. I don't think the way you are creating the form is valid. > > rf = RequestFactory(

Testing Django User Login Form

2021-04-18 Thread lone...@gmail.com
Hello all, I am not sure what I am doing incorrectly with the below test case information. I am simply trying to test the default authentication form of django 3.1. This test should be a good/True login test. Here is the Test case:- class TestForms(TestCase): def test_