Re: why get_object_or_404 error is not using translation?

2024-05-19 Thread Natraj Kavander
Thank you On Sun, May 19, 2024, 1:48 AM Hossein Mahdavipour wrote: > Hi. > I am using DRF with django. In views I use get_object_or_404. When I get > a 404, the exception detail is "No %s matches the given query." > You can see the code here: > https://gith

why get_object_or_404 error is not using translation?

2024-05-18 Thread Hossein Mahdavipour
Hi. I am using DRF with django. In views I use get_object_or_404. When I get a 404, the exception detail is "No %s matches the given query." You can see the code here: https://github.com/django/django/blob/8f205acea94e93a463109e08814f78c09307f2b9/django/shortcuts.py#L88 My quest

Login using phone and number

2024-04-13 Thread Yash Trivedi
I need a code for login using phone number and password without using form.py and tell me how can I do quickly -- 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, sen

Re: Agricultural and livestock project using python, django and next technologies.

2024-02-20 Thread Fabrice coder
how to do everything. > > Technologies: > > We are using Python and Django for the backend, and Next.js for the > frontend. > > > > > Why collaborate: > > You will learn a lot - the project is well organized and will allow you to > work with modern and relev

Re: Agricultural and livestock project using python, django and next technologies.

2024-02-19 Thread ronald munjoma
s' and ranchers' markets in the > US, but with an online focus. The project is going to be redone from > scratch because I had many mistakes when I made the MVP, I have a very > specific backlog on how to do everything. > > Technologies: > > We are using Python and Django for the bac

Re: Agricultural and livestock project using python, django and next technologies.

2024-02-19 Thread ronald munjoma
nchers' markets in the > US, but with an online focus. The project is going to be redone from > scratch because I had many mistakes when I made the MVP, I have a very > specific backlog on how to do everything. > > Technologies: > > We are using Python and Django for the bac

Re: Agricultural and livestock project using python, django and next technologies.

2024-02-19 Thread Vitaly Bogomolov
focus. The project is going to be redone from scratch because I had many mistakes when I made the MVP, I have a very specific backlog on how to do everything. Technologies: We are using Python and Django for the backend, and Next.js for the frontend. Why collaborate: You will learn a lot

Re: Agricultural and livestock project using python, django and next technologies.

2024-02-19 Thread Suraj Kumar Jha
istakes when I made the MVP, I have a very > specific backlog on how to do everything. > > Technologies: > > We are using Python and Django for the backend, and Next.js for the > frontend. > > > > > Why collaborate: > > You will learn a lot - the project is we

Re: Agricultural and livestock project using python, django and next technologies.

2024-02-19 Thread Javi Lazaro
nchers' markets in the > US, but with an online focus. The project is going to be redone from > scratch because I had many mistakes when I made the MVP, I have a very > specific backlog on how to do everything. > > Technologies: > > We are using Python and Django for the bac

Re: Agricultural and livestock project using python, django and next technologies.

2024-02-19 Thread Paul Kirui
fic backlog on how to do everything. > > Technologies: > > We are using Python and Django for the backend, and Next.js for the > frontend. > > > > > Why collaborate: > > You will learn a lot - the project is well organized and will allow you to > work with mo

Re: Agricultural and livestock project using python, django and next technologies.

2024-02-19 Thread chheee
interest you. > This is an online market similar to farmers' and ranchers' markets in the > US, but with an online focus. The project is going to be redone from > scratch because I had many mistakes when I made the MVP, I have a very > specific backlog on how to do everything. > > Technol

Agricultural and livestock project using python, django and next technologies.

2024-02-18 Thread Jorge Bueno
scratch because I had many mistakes when I made the MVP, I have a very specific backlog on how to do everything. Technologies: We are using Python and Django for the backend, and Next.js for the frontend. Why collaborate: You will learn a lot - the project is well organized and will allow you

Re: 0 i am trying to upload a file to django server backend.i added a progress bar by using javascript,xhr and ajax method also i added a cancel button to cancel the upload the progress bar is working

2023-11-08 Thread 2JR19CS041_Danish
cancel.addEventListener('click',(xhr.abort)); it should be callback function try this: cancel.addEventListener('click', function(e){ xhr.abort() }) On Monday, 30 October 2023 at 21:10:03 UTC+5:30 Gokul G.M wrote: > > > > > > Document >

0 i am trying to upload a file to django server backend.i added a progress bar by using javascript,xhr and ajax method also i added a cancel button to cancel the upload the progress bar is working pr

2023-10-30 Thread Gokul G.M
Document https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css; integrity= "sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">

How to use connect and disconnect, receive method in SyncConsumer using HTTP protocol

2023-09-08 Thread GP
HI, I am using SyncConsumer with HTTP protocol (not WebSocket ) for background work by referring this document Worker and Background Tasks — Channels 4.0.0 documentation <https://channels.readthedocs.io/en/latest/topics/worker.html>. I have seen there are connect, disconnect &am

Error when trying to implement google Oauth sign in using react and django

2023-09-03 Thread david ekechukwu
I am using React and Django to implement an OAuth Google login, however whenever I send the request, I receive the access denied error. I am handling the request in the backend using the drf-Social-Oauth2 library. {"error":"access_denied","error_description":&qu

Re: Using JavaScript to enumerate a dataset returned to a page.

2023-06-20 Thread Prosper Lekia
You can write an Ajax request with Django, and work with the data with JavaScript in the frontend. On Mon, Jun 19, 2023, 15:30 Lee Stevens wrote: > Helo, > > I have a dataset returning to a page. I need JavaScript to be able to > process this. > > Instead of using: > {

Re: Using JavaScript to enumerate a dataset returned to a page.

2023-06-20 Thread Lee Stevens
? On Monday, June 19, 2023 at 9:30:15 AM UTC-5 Lee Stevens wrote: > Helo, > > I have a dataset returning to a page. I need JavaScript to be able to > process this. > > Instead of using: > {% for item in dataset %} > {{ item.field1 }} > {{ item.field2 }} > {% endfor

Re: Using JavaScript to enumerate a dataset returned to a page.

2023-06-19 Thread Robin Riis
Helo, > > I have a dataset returning to a page. I need JavaScript to be able to > process this. > > Instead of using: > {% for item in dataset %} > {{ item.field1 }} > {{ item.field2 }} > {% endfor %} > > Is there a *JavaScript* way to read this dataset/variable instead?

Re: Using JavaScript to enumerate a dataset returned to a page.

2023-06-19 Thread ALBERT ASHABA AHEEBWA
Explore using Alpine js. Still learning these bits myself so, I don't have much detail. But Alpine is what you looking for. Best Regards, Albert Ashaba Aheebwa +256 781 435857 On Mon, 19 Jun 2023, 17:30 Lee Stevens, wrote: > Helo, > > I have a dataset returning to a page. I need J

Using JavaScript to enumerate a dataset returned to a page.

2023-06-19 Thread Lee Stevens
Helo, I have a dataset returning to a page. I need JavaScript to be able to process this. Instead of using: {% for item in dataset %} {{ item.field1 }} {{ item.field2 }} {% endfor %} Is there a *JavaScript* way to read this dataset/variable instead? Thanks. -- You received this message

Re: I need to create account using sso Google in Django rest framework Amy suggestions?

2023-05-04 Thread Dave Clevenger
Django AllAuth might be a good option: Welcome to django-allauth! — django-allauth 0.43.0 documentation On Wed, May 3, 2023 at 5:22 PM Stan Hiebah wrote: > -- > You received this message because you are subscribed to the Google Groups >

Re: I need to create account using sso Google in Django rest framework Amy suggestions?

2023-05-04 Thread 'Kasper Laudrup' via Django users
On 04/05/2023 16.33, carlos wrote: Try this tuto https://episyche.com/blog/how-to-configure-google-sso-in-django-rest-framework-with-react I'm not the one having problems finding tutorials on the

Re: I need to create account using sso Google in Django rest framework Amy suggestions?

2023-05-04 Thread carlos
Try this tuto https://episyche.com/blog/how-to-configure-google-sso-in-django-rest-framework-with-react On Wed, May 3, 2023 at 3:40 PM 'Kasper Laudrup' via Django users < django-users@googlegroups.com> wrote: > Maybe this would be a start: > > >

Re: I need to create account using sso Google in Django rest framework Amy suggestions?

2023-05-03 Thread 'Kasper Laudrup' via Django users
Maybe this would be a start: https://googlethatforyou.com?q=create%20account%20using%20sso%20Google%20in%20Django%20rest%20framework -- 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

I need to create account using sso Google in Django rest framework Amy suggestions?

2023-05-03 Thread Stan Hiebah
-- 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

Saving data from a post request using nested DRF serializers

2023-04-26 Thread Kimanxo
Here is my problem im gelreat details : https://stackoverflow.com/questions/76112118/django-rest-frameworks-nested-serializers-post-request-foreignkey-error -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Django forms data save using ajax

2023-04-15 Thread 'Kasper Laudrup' via Django users
On 15/04/2023 12.31, Prashanth Patelc wrote: Hi all, How to save employees information using ajax with django form , id should automatic generation ? Try this helpful link: https://googlethatforyou.com?q=django%20ajax%20form Kind regards, Kasper Laudrup -- You received this message

Django forms data save using ajax

2023-04-15 Thread Prashanth Patelc
Hi all, How to save employees information using ajax with django form , id should automatic generation ? -- 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

Re: Using the URLconf defined in iblogs.urls, Django tried these URL patterns, in this order:

2023-04-14 Thread TITAS ONLINE MARKET
;> I'm looking at the Django tutorial, and I've set up the first URLs >> exactly as the tutorial has it, word for word, but when I go to >> http://127.0.0.1:8000/, it gives me this error: but when i go to >> http://127.0.0.1:8000/admin/ its working fine,where and what i am d

Re: Using the URLconf defined in iblogs.urls, Django tried these URL patterns, in this order:

2023-04-11 Thread Michael Starr
; as the tutorial has it, word for word, but when I go to > http://127.0.0.1:8000/, it gives me this error: but when i go to > http://127.0.0.1:8000/admin/ its working fine,where and what i am doing > wrong? i am using python version 3.11.1 please let me know for any other > info >

Re: Using one query set for another query

2023-04-09 Thread Harsh Vyas
something like queryset= bill_payment_history.objects.filter(date_paid= None) Approach 2:- You can annotate a field on all known_bills object using case statement for which different between current date and excepted_due_date is already breached. For annotate and case refer to below docs:- https

Using the URLconf defined in iblogs.urls, Django tried these URL patterns, in this order:

2023-04-04 Thread Tanveer
http://127.0.0.1:8000/, it gives me this error: but when i go to http://127.0.0.1:8000/admin/ its working fine,where and what i am doing wrong? i am using python version 3.11.1 please let me know for any other info urls.py from django.contrib import admin from django.urls import path, includ

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

Login and Logout using Django JWT Token

2023-03-05 Thread Themporst Aiden
Am working on a personal project, my plan is to build Mobile App in the future for it. I have already developed the backend api endpoints using Django Rest Framework and JWT. But the challenge now is that how can i consume the rest api endpoints from my same django project. ? I know how

Re: Need way of authentication with google without using an allauth packages

2023-02-28 Thread Jeman Kumar
https://python-social-auth.readthedocs.io/en/latest/configuration/django.html On Tue, 28 Feb, 2023, 12:50 pm MaheshKumar, wrote: > I need how to create an google authentication without using the django > -allauth packages. > > > Please give me an idea to create an flow of

Re: Need way of authentication with google without using an allauth packages

2023-02-28 Thread Vineet Kothari
gt;> I need how to create an google authentication without using the django >> -allauth packages. >> >> >> Please give me an idea to create an flow of authentication with google in >> django >> >> -- >> You received this message because you are subscribed to

Re: Need way of authentication with google without using an allauth packages

2023-02-28 Thread Dev Femi Badmus
google cloud auth or account auth, which one?? On Tue, Feb 28, 2023 at 8:21 AM MaheshKumar wrote: > I need how to create an google authentication without using the django > -allauth packages. > > > Please give me an idea to create an flow of authentication with google in > d

Need way of authentication with google without using an allauth packages

2023-02-27 Thread MaheshKumar
I need how to create an google authentication without using the django -allauth packages. Please give me an idea to create an flow of authentication with google in django -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: sso using django

2023-02-11 Thread carlos
Hello quicky research in google search https://pypi.org/project/django-sso/ https://github.com/divio/django-simple-sso https://micropyramid.medium.com/django-single-sign-on-sso-to-multiple-applications-64637da015f4 Cheers On Tue, Jan 31, 2023 at 11:16 PM venkat Bukka wrote: > Hello all, >

sso using django

2023-01-31 Thread venkat Bukka
Hello all, Does anyone know how we can implement django sso for multiple django projects please let me know from which libraries we can start with and push into production or is it good to use aure ad and okta for that. thank you..! -- You received this message because you are

Re: BUG USING modelformset_factory MODULE

2023-01-24 Thread Michael Maina
Resolved: Using parameters max_num=1, extra=0 https://docs.djangoproject.com/en/3.2/topics/forms/modelforms/#max_num Mea culpa On Sunday, January 22, 2023 at 10:49:01 PM UTC+3 Michael Maina wrote: > Hello, > > > > I have a challenge using the modelformset_factory m

Re: how to initialize input form fields using URL parameters

2023-01-23 Thread Michael Maina
Hello, You need to start from the urls.py file and define a path that looks close this your_path/ or your_path/ Then change your view to handle the new parameter def form_view(request, variable_data): Within your view you can now manipulate this parameter through a

how to initialize input form fields using URL parameters

2023-01-22 Thread Andrew Brown
I am trying to pass initial values to my form set via URL Query ex) Localhost:8000?/First_name_id_0=Samuel [image: forms.py.png] I was told to use the initial parameter and not the instance in my view first "An inline formset is related to one instance of the parent model. You identify

BUG USING modelformset_factory MODULE

2023-01-22 Thread Michael Maina
Hello, I have a challenge using the modelformset_factory module ( https://docs.djangoproject.com/en/3.2/topics/forms/modelforms/) and invite your advice. I can automatically generate a pre-populated webpage with a select dataset from the database, but the generated template creates

Re: CRUD using firebase

2022-12-24 Thread Eng Thanoon
ate a > CRUD using firebase database, if you can help me, i will really appreciate > it. > > Thanks a lot for your support :) > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop re

CRUD using firebase

2022-12-20 Thread Jhovany
i'm a newbie in this framework. I need information about how to create a CRUD using firebase database, if you can help me, i will really appreciate it. Thanks a lot for your support :) -- You received this message because you are subscribed to the Google Groups "Django users&q

Guidelines for using pyproject.toml with Django apps/projects?

2022-11-15 Thread JK Laiho
I'm modernizing our company's 2015-era conventions around Django projects, and one of the things I'm looking at is using pyproject.toml, both for packaging and for configuring certain tools (e.g. Black). A bit of background. So far, we've used monorepos, with 'apps' and 'project' as the top

Favicon Error While Using Inline Favicon

2022-11-13 Thread James
Hello, So everything is working but I get errors in my logs that I could just suppress, but I would rather just fix the error. NGINX Error: 775#775: *2421 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory) Django Error (warning): Not Found: /favicon.ico So

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

Re: Combining two subquery counts using ORM

2022-11-09 Thread Matthew Hegarty
Post your model here and we do it > > On Wed, Nov 9, 2022, 7:37 PM Matthew Hegarty wrote: > >> My question is about translating a SQL query to the ORM. >> >> I want to combine the output of two queries into one. The query is >> counting records in the same table

Re: Combining two subquery counts using ORM

2022-11-09 Thread kateregga julius
Post your model here and we do it On Wed, Nov 9, 2022, 7:37 PM Matthew Hegarty wrote: > My question is about translating a SQL query to the ORM. > > I want to combine the output of two queries into one. The query is > counting records in the same table (Task) using two diff

Combining two subquery counts using ORM

2022-11-09 Thread Matthew Hegarty
My question is about translating a SQL query to the ORM. I want to combine the output of two queries into one. The query is counting records in the same table (Task) using two different fields. The query is: select q1.taskname, q1.count, q2.count, (q1.count + q2.count) as total from ( select

Re: Using django 4.1 code in django 3.2

2022-11-03 Thread subin
I will look forward to meeting you on July 11 On Thu, Nov 3, 2022 at 10:18 AM Lakshyaraj Dash < dashlakshyaraj2...@gmail.com> wrote: > Is there any problem if I deploy my django app written with django 4.1 in > django 3.2 on render ? > Please help > > -- > You received this message because you

Re: Using django 4.1 code in django 3.2

2022-11-03 Thread subin
Please let me know if that sounds okay. On Thu, Nov 3, 2022 at 2:56 PM 'Steven Mapes' via Django users < django-users@googlegroups.com> wrote: > It'll depend on whether your code is 3.2 compatible or not so you'd need > to test it and check dependencies first > > On Thursday, 3 November 2022 at

Re: Using django 4.1 code in django 3.2

2022-11-03 Thread 'Steven Mapes' via Django users
It'll depend on whether your code is 3.2 compatible or not so you'd need to test it and check dependencies first On Thursday, 3 November 2022 at 09:28:40 UTC Kasper Laudrup wrote: > On 03/11/2022 10.18, Lakshyaraj Dash wrote: > > Is there any problem if I deploy my django app written with

Using django 4.1 code in django 3.2

2022-11-03 Thread Lakshyaraj Dash
Is there any problem if I deploy my django app written with django 4.1 in django 3.2 on render ? Please help -- 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

Power BI Dashboard Embed Code Using Django.

2022-10-29 Thread Abnet birknhe
Hi, How to embed Report from Power BI using code in to 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...@google

Re: Power BI Dashboard Embed Code Using Django.

2022-10-29 Thread Abnet birknhe
I am also facing problem too On Wednesday, 10 March 2021 at 05:54:27 UTC-8 geethanj...@gmail.com wrote: > Hi, > > How to embed Report/dashboard in Power BI to a Web portal using Django? > > Thanks, > Geethanjali. > -- You received this message because you are subscribed

How to override Model.__init__ without breaking `using(db)`?

2022-10-29 Thread Robert Leach
Hi, I have a Model superclass called `MaintainedModel` that other models inherit from. It itself inherits from django.db.models.Model and overrides its __init__ method in order to implement some controls on fields using decorators in the derived models. It all works very well in the realm

Unable to migrate Django migration using docker container.

2022-09-26 Thread Vijay Arora
Hello @all, I am getting issue with docker containerisation. (1) When i am deploying my app first time migrations work as per expected. *Issue:-* When i am deploying code 2nd time and change something in model then migrate will not deduct any changes. That case is due to when i do make

Re: Web scraping using python

2022-08-26 Thread Lakshyaraj Dash
Hey you can follow this tutorial for having a basic knowledge of web scrapping using python. https://youtu.be/pF3KXOnxqr4 On Fri, Aug 26, 2022, 19:10 Favour Nwachukwu wrote: > How do I scrap innerhtml using python(beautifulsoup)? > > -- > You received this message because you ar

Web scraping using python

2022-08-26 Thread Favour Nwachukwu
How do I scrap innerhtml using python(beautifulsoup)? -- 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.co

Re: Chat app using django

2022-08-25 Thread Ryan Nowakowski
> to make this type of chat app using django (not Django channels). Instead of using Channels, you can HTTP poll. You can always migrate to Channels later. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gr

Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-14 Thread 'Kasper Laudrup' via Django users
On 13/08/2022 09.04, Dieu merci Dramani wrote: > This work : > productId:  1 action:  add > cart.js:9 USER: setraco > cart.js:20 setraco is logged in ! Sending data ... > > cart.js:22 > Here is the errors that I'm trying without success: > POST http://127.0.0.1:8000/update_Item/

Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-14 Thread 'Kasper Laudrup' via Django users
On 13/08/2022 09.04, Dieu merci Dramani wrote: > This work : > productId:  1 action:  add > cart.js:9 USER: setraco > cart.js:20 setraco is logged in ! Sending data ... > > cart.js:22 > Here is the errors that I'm trying without success: > POST http://127.0.0.1:8000/update_Item/

Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-13 Thread 'Kasper Laudrup' via Django users
On 13/08/2022 09.04, Dieu merci Dramani wrote: This work : productId:  1 action:  add cart.js:9 USER: setraco cart.js:20 setraco is logged in ! Sending data ... cart.js:22 Here is the errors that I'm trying without success: POST http://127.0.0.1:8000/update_Item/

Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-13 Thread 'Kasper Laudrup' via Django users
On 13/08/2022 09.04, Dieu merci Dramani wrote: This work : productId:  1 action:  add cart.js:9 USER: setraco cart.js:20 setraco is logged in ! Sending data ... cart.js:22 Here is the errors that I'm trying without success: POST http://127.0.0.1:8000/update_Item/

Re: Help on my cart.js file using Django 3.2.15 in python

2022-08-13 Thread 'tomo yamano' via Django users
It seems that the error message you shared indicates the syntax error , tho.On Aug 13, 2022, at 4:05 PM, Dieu merci Dramani wrote:This work :productId:  1 action:  addcart.js:9 USER: setracocart.js:20 setraco is logged in ! Sending data ...cart.js:22        Here is the errors that I'm trying

Help on my cart.js file using Django 3.2.15 in python

2022-08-13 Thread Dieu merci Dramani
This work : productId: 1 action: add cart.js:9 USER: setraco cart.js:20 setraco is logged in ! Sending data ... cart.js:22 Here is the errors that I'm trying without success: POST http://127.0.0.1:8000/update_Item/ 403 (Forbidden) updateUserOrder @ cart.js:22 (anonymous) @ cart.js:14 VM29:2

Re: Hi guys how to run pyscript on local webserver without using cdn ljnk

2022-08-01 Thread Abdul Qoyyuum
Download it from https://pyscript.net/ and load it on your local webserver. On Fri, Jul 29, 2022 at 10:59 PM Ad Tariq wrote: > > > Sent from my Huawei Mobile > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this

Re: Hi guys how to run pyscript on local webserver without using cdn ljnk

2022-07-29 Thread Sebastian Jung
Is it a joke? Please write a description which Problem you have... Ad Tariq schrieb am Fr., 29. Juli 2022, 16:58: > > > Sent from my Huawei Mobile > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop

Hi guys how to run pyscript on local webserver without using cdn ljnk

2022-07-29 Thread Ad Tariq
Sent from my Huawei Mobile -- 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

Re: Chat app using django

2022-07-20 Thread carlos
;> dashlakshyaraj2...@gmail.com> wrote: >> >>> Ok I understand but currently I'm using postgresql in my app. So I need >>> it for that. Please help me to inject the websockets in django as I'm very >>> much new to it *not websockets* but to *integration

Re: Chat app using django

2022-07-20 Thread Lakshyaraj Dash
shyaraj Dash < > dashlakshyaraj2...@gmail.com> wrote: > >> Ok I understand but currently I'm using postgresql in my app. So I need >> it for that. Please help me to inject the websockets in django as I'm very >> much new to it *not websockets* but to *integration of webs

Re: Chat app using django

2022-07-20 Thread Abdul Qoyyuum
Please have a look at how Django channels implements the chat app. https://github.com/narrowfail/django-channels-chat On Wed, Jul 20, 2022 at 7:23 PM Lakshyaraj Dash < dashlakshyaraj2...@gmail.com> wrote: > Ok I understand but currently I'm using postgresql in my app.

Re: Chat app using django

2022-07-20 Thread Lakshyaraj Dash
Ok I understand but currently I'm using postgresql in my app. So I need it for that. Please help me to inject the websockets in django as I'm very much new to it *not websockets* but to *integration of websockets in django*. On Wed, Jul 20, 2022, 08:28 Abdul Qoyyuum wrote: > Hi Lakshya

Re: Remote database using ssh

2022-07-20 Thread Wennie Catabay
: > We don't know if your DB is in the same network or not as your Django App > server but the answer is to open the database port on the database server. > If you're using postgresql on the Database, then install a psql client on > the app server and test connect from there.

Re: Remote database using ssh

2022-07-19 Thread Abdul Qoyyuum
We don't know if your DB is in the same network or not as your Django App server but the answer is to open the database port on the database server. If you're using postgresql on the Database, then install a psql client on the app server and test connect from there. If it works, then your Django

Re: Chat app using django

2022-07-19 Thread Abdul Qoyyuum
Hi Lakshyaraj, Chat app relies on quickly sending data between parties. You will need to build it with websockets and a redis database to publish and subscribe new event messages. However, this is basically reinventing the wheel versus using one that already exists (i.e. Django Channels). But all

Chat app using django

2022-07-19 Thread Lakshyaraj Dash
Hello guys! I'm having a discussion website in django with some sort of user authentication and I want to inject chat app with rooms made by the users themselves. I don't want any js framework in the frontend. Just tell me how to make this type of chat app using django (not Django channels

Re: Remote database using ssh

2022-07-19 Thread Sebastian Jung
ining how to connect a remote database from another > server using ssh. I am able to connect the remote database with putty using > ssh, but but I don't know how to apply it in django. > > Thank you. > > -- > You received this message because you are subscribed to the Google

Re: Remote database using ssh

2022-07-19 Thread Mr.Teapot
ay wrote: > >> Hello, >> >> I am stuck on defining how to connect a remote database from another >> server using ssh. I am able to connect the remote database with putty using >> ssh, but but I don't know how to apply it in django. >> >> Thank y

Re: Remote database using ssh

2022-07-19 Thread Anh Nguyen
Public db port but not recommend for security reason and performance. On Tue, 19 Jul 2022 at 22:32 Wennie Catabay wrote: > Hello, > > I am stuck on defining how to connect a remote database from another > server using ssh. I am able to connect the remote database with putty

Remote database using ssh

2022-07-19 Thread Wennie Catabay
Hello, I am stuck on defining how to connect a remote database from another server using ssh. I am able to connect the remote database with putty using ssh, but but I don't know how to apply it in django. Thank you. -- You received this message because you are subscribed to the Google Groups

Re: Using activate() to set the timezone in Model Admin

2022-07-13 Thread Abdul Qoyyuum
lly distributed teams. However admin users > (based in a specific timezone) find this confusing, and would like to see > their datetimes in a local timezone (say, Pacific Time). > > The docs state that a local time can be set using activate(): > https://docs.djan

Using activate() to set the timezone in Model Admin

2022-07-13 Thread Paul Tiplady
, and would like to see their datetimes in a local timezone (say, Pacific Time). The docs state that a local time can be set using activate(): https://docs.djangoproject.com/en/4.0/ref/utils/#django.utils.timezone.activate Specifically: https://docs.djangoproject.com/en/4.0/topics/i18n/timezones

AttributeError at /invoice/add_invoice/ 'int' object has no attribute '_meta' while using in_bulk

2022-07-10 Thread Kiran Chavan
I want to convert the model instances into a JSON object and then pass it to the HTML file. However, I get an AttributeError at this line: `data = serializers.serialize("json", Inventory.objects.in_bulk())` The full `views.py`: def add_invoice(request): form = InvoiceForm(request.POST

Re: i am facing problem with my project to update data in mysql using django

2022-06-20 Thread andrew snyder
can you conform that database user has permissions to update data in all three databases using a mysql client? On Thursday, June 16, 2022 at 12:02:00 PM UTC-4 rafiurra...@gmail.com wrote: > here is my problem description link in stackoverflow > if anyone can help me, i will be gra

Re: Using a lazy value in a queryset filter?

2022-06-17 Thread Sylvain
ut I guess that doesn’t make the > > values they use lazy. Here’s an example of what I’m talking about: > > > > from django.utils.translation import get_language > > > > class MyManager(models.Manager): > > def get_queryset(self): > > return super().ge

Re: List Field in Django Model while using SQLite

2022-06-17 Thread Muhammad Juwaini Abdul Rahman
ck with a problem i have to store list of some data >>> in a specific field of the model may you please suggest me or if possible >>> share code snippet. >>> >>> How can i store the list in the model field while using SQLite please. >>> >> -- >>>

Re: List Field in Django Model while using SQLite

2022-06-17 Thread Mukul Verma
code snippet. >> >> How can i store the list in the model field while using SQLite please. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and

Re: how to deploy python django project using heroku

2022-06-17 Thread Mahesh Ghule
:01:52 AM UTC-5 maheshb...@gmail.com > wrote: > >> please support me how deploy django project using git and heroku >> help me >> deploy on heroku and operation on it ...i am fresher so i dont no how to >> work on dajngo rest framework please support me >> > --

Re: List Field in Django Model while using SQLite

2022-06-17 Thread Muhammad Juwaini Abdul Rahman
; a specific field of the model may you please suggest me or if possible > share code snippet. > > How can i store the list in the model field while using SQLite please. > > -- > You received this message because you are subscribed to the Google Groups > "Django users&qu

List Field in Django Model while using SQLite

2022-06-17 Thread Mukul Verma
Hii Everyone, Thanks for all the advice and suggestions. currently i got stuck with a problem i have to store list of some data in a specific field of the model may you please suggest me or if possible share code snippet. How can i store the list in the model field while using SQLite please

Re: how to deploy python django project using heroku

2022-06-16 Thread Mike Kilmer
Do you have your codebase tracked in a version tracking system like Github? If you do, then, from within Heroku, you can use the Github integration. On Thursday, June 16, 2022 at 11:01:52 AM UTC-5 maheshb...@gmail.com wrote: > please support me how deploy django project using git and her

i am facing problem with my project to update data in mysql using django

2022-06-16 Thread rafiur rahman rafit
here is my problem description link in stackoverflow if anyone can help me, i will be gratefull linkproblem link -- You received this message because you are subscribed to the Google Groups "Django

how to deploy python django project using heroku

2022-06-16 Thread Mahesh Ghule
please support me how deploy django project using git and heroku help me deploy on heroku and operation on it ...i am fresher so i dont no how to work on dajngo rest framework please support me -- You received this message because you are subscribed to the Google Groups "Django users&q

python django whatsapp bot to let others to signup to DBs without using html

2022-06-16 Thread yy_chaza
hi, check out this project link: https://stackoverflow.com/questions/72638447/python-django-whatsapp-bot-to-let-others-to-signup-to-dbs-without-using-html -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Using a lazy value in a queryset filter?

2022-06-12 Thread Ryan Nowakowski
e()) > > class MyModel(models.Model): > ... > objects = MyManager() > > Using this in a code path that’s in the request-response cycle works (eg. > in a view), but using it in a form definition doesn’t (I get the default > language instead of the one fr

  1   2   3   4   5   6   7   8   9   10   >