PLS HELP!! - SCRAPE YOUTUBE CHANNEL EMAIL

2021-06-19 Thread Vrushang Desai
Hi Guys ,
Anyone knows how to scrape Youtube Channels Emails?

With Django/Python?

If yes,
Pls reply!
Thanks.

-- 
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/75971331-aa7a-41e3-879f-42bd80bf7984n%40googlegroups.com.


[URGENT] -  Scrape Youtube Channel Email | Bypass Captcha 

2021-06-19 Thread Vrushang Desai
Hi guys,
*I'm trying to bypass youtube captcha & download email of the channel 
owner.*

I would really like to know how can one actually solve it?

As I'm facing issues with youtube,

*Where captcha disappears (Even if email can be scraped from different id).*

*Any Help or API would be helpful!*
Thanks.
Vrushang - Junior Developer

-- 
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/29c084bb-ecbd-4296-9307-dba55c2682efn%40googlegroups.com.


Re: help me plz: button one click django(disable the submit button )

2021-06-19 Thread Kasper Laudrup
On 19/06/2021 21.58, hanin guesmi wrote:
> ok i will thnx
>

You could spend the rest of your life doing that, so if you want someone
to help you, it might be a better idea to write a bit about what you've
tried, how it's not working etc.

Of course, that's completely up to you, but writing questions with a bit
of information usually helps getting closer to a solution and you might
end up learning something in the process.

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/0c9650a3-7ef4-ce59-0615-1da83f65aacc%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: help me plz: button one click django(disable the submit button )

2021-06-19 Thread hanin guesmi
ok i will thnx

Le samedi 19 juin 2021 à 20:43:57 UTC+1, Kasper Laudrup a écrit :

> On 19/06/2021 13.58, hanin guesmi wrote:
> > I. Tried many codes but not working 
> >
>
> Try a few more. You know how when you've lost something, you always find
> it the last place you look?
>
> It's the same with codes. It's always the last one you try.
>
> 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/a0bc353d-4328-4569-b45d-04b9acb46adbn%40googlegroups.com.


Re: help me plz: button one click django(disable the submit button )

2021-06-19 Thread Kasper Laudrup
On 19/06/2021 13.58, hanin guesmi wrote:
> I. Tried many codes but not working 
>

Try a few more. You know how when you've lost something, you always find
it the last place you look?

It's the same with codes. It's always the last one you try.

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/2e4e8985-3855-7325-45c8-fa9359f3f931%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: 500 - Internal server error

2021-06-19 Thread Sachin Kumar
thanks all for the help, I found the solution it was related to Web Server
IIS configuration.

On Sat, Jun 19, 2021 at 4:11 PM Kasper Laudrup 
wrote:

> On 19/06/2021 10.59, Sachin Kumar wrote:
> > Thanks, Kayode for the reply,
> >
> > it's already enabled but still can't see any details. I am really trying
> > to fix it for the last month but not able to any help or
> > suggestion will be highly appreciated.
> >
>
> As Kayode already mentioned, you need to check the logs on your server.
> Have you figured out how to access those?
>
> 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/95f0190f-f439-ea65-5799-822628f2c130%40stacktrace.dk
> .
>


-- 

Best Regards,
Sachin Kumar

-- 
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/CALg-PKC45E7j%2BpuJ4NZ0drY9HLrHKHWQ%3DF9eNCNLxbOQeD9D2g%40mail.gmail.com.


Re: please help! not getting the desired output. how to add multiple orders via Django forms using Javascript?

2021-06-19 Thread Williams Andy Inc
Anyone interested in talking about django sharing their knowledge or path
or want to learn more?

meeting Now

https://meet.google.com/wcv-ojtf-vhi

On Sat, Jun 19, 2021 at 10:31 AM DJANGO DEVELOPER 
wrote:

> please can someone help me?
>
> On Sat, Jun 19, 2021 at 9:31 AM DJANGO DEVELOPER 
> wrote:
>
>> for convenience, please follow addorder1 to addorder5 respectively.
>>
>> On Saturday, June 19, 2021 at 9:29:48 AM UTC+5 DJANGO DEVELOPER wrote:
>>
>>> Hi guys I need urgent help. your help is appreciated.
>>> When I try to add a single order from user side then it works fine but
>>> when I try to add multiple orders at the same time then neither it updates
>>> a products price nor print all the orders on the invoice. can any one help
>>> me? screenshots attached below.
>>>
>> --
>> 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/a5126278-cdf7-455c-8718-e9f0692f5ef3n%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/CAKPY9pnHpB7CDXe078G2QPZZMsfJ69egDRRxAX4ijvjvNCRQyQ%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/CAPCthNJW%3DtmAs04%3DBn7OfuyWk6CmYpBTx1du0MV4dsNLvthgBQ%40mail.gmail.com.


Re: Using ORM to retrieve values (REAL) from SQLite database to round to 2 decimal places

2021-06-19 Thread Lalit Suthar
this can help
https://docs.djangoproject.com/en/2.2/ref/models/database-functions/#round

On Fri, 18 Jun 2021 at 22:43, Wai Yeung  wrote:

> Hello,
>
> To be able to get a REAL value from a SQLite database rounded to 2 decimal
> places, I had to use the following RAW SQL query:
>
> SELECT
> printf("%.2f", round(orig_total,2)),
> FROM final_billing_tbl
>
> I would like to be able to duplicate the functionality of the in ORM to
> create a queryset.  I need the result in the queryset because later in the
> procedure, I search the queryset as follows:
>
> queryset = queryset.filter( Q( orig_total  __icontains=search_value) )
>
> The search_value would be a value that would rounded to 2 decimal places.
>
> Thanks in Advance,
> Wai
>
>
>
> --
> 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/b89b27f3-a11c-4b2c-8473-59420c7c3f26n%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/CAGp2JVHr3hQ03XGnOGO0i13gWhw1%3D%2Bv51BcbHAOfAb0u5V4_tg%40mail.gmail.com.


Problem to connect to database only when run "migrate"

2021-06-19 Thread Heron
Hello,

I getting problem to connect to database only when run "migrate". I'm able
to use on apache/wsgi and runserver, so it's seens that connection to
database is okay. Dango is running on docker.

Anyone can help me ?





bash-4.2# python manage.py migrate
/usr/local/lib/python2.7/site-packages/jwt/utils.py:8:
CryptographyDeprecationWarning: Python 2 is no longer supported by the
Python core team. Support for it is now deprecated in cryptography, and
will be removed in the next release.
  from cryptography.hazmat.primitives.asymmetric.utils import (
Traceback (most recent call last):
  File "manage.py", line 46, in 
execute_from_command_line(sys.argv)
  File
"/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 364, in execute_from_command_line
utility.execute()
  File
"/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File
"/usr/local/lib/python2.7/site-packages/django/core/management/base.py",
line 283, in run_from_argv
self.execute(*args, **cmd_options)
  File
"/usr/local/lib/python2.7/site-packages/django/core/management/base.py",
line 327, in execute
self.check()
  File
"/usr/local/lib/python2.7/site-packages/django/core/management/base.py",
line 359, in check
include_deployment_checks=include_deployment_checks,
  File
"/usr/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py",
line 61, in _run_checks
issues = run_checks(tags=[Tags.database])
  File
"/usr/local/lib/python2.7/site-packages/django/core/checks/registry.py",
line 81, in run_checks
new_errors = check(app_configs=app_configs)
  File
"/usr/local/lib/python2.7/site-packages/django/core/checks/database.py",
line 10, in check_database_backends
issues.extend(conn.validation.check(**kwargs))
  File
"/usr/local/lib/python2.7/site-packages/django/db/backends/mysql/validation.py",
line 9, in check
issues.extend(self._check_sql_mode(**kwargs))
  File
"/usr/local/lib/python2.7/site-packages/django/db/backends/mysql/validation.py",
line 13, in _check_sql_mode
with self.connection.cursor() as cursor:
  File
"/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 254, in cursor
return self._cursor()
  File
"/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 229, in _cursor
self.ensure_connection()
  File
"/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 213, in ensure_connection
self.connect()
  File "/usr/local/lib/python2.7/site-packages/django/db/utils.py", line
94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
  File
"/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 213, in ensure_connection
self.connect()
  File
"/usr/local/lib/python2.7/site-packages/django/db/backends/base/base.py",
line 189, in connect
self.connection = self.get_new_connection(conn_params)
  File
"/usr/local/lib/python2.7/site-packages/django/db/backends/mysql/base.py",
line 274, in get_new_connection
conn = Database.connect(**conn_params)
  File "/usr/local/lib64/python2.7/site-packages/MySQLdb/__init__.py", line
81, in Connect
return Connection(*args, **kwargs)
  File "/usr/local/lib64/python2.7/site-packages/MySQLdb/connections.py",
line 193, in __init__
super(Connection, self).__init__(*args, **kwargs2)
django.db.utils.OperationalError: (2003, "Can't connect to MySQL server on
'192.168.201.193' (113)")
bash-4.2# python manage.py check
/usr/local/lib/python2.7/site-packages/jwt/utils.py:8:
CryptographyDeprecationWarning: Python 2 is no longer supported by the
Python core team. Support for it is now deprecated in cryptography, and
will be removed in the next release.
  from cryptography.hazmat.primitives.asymmetric.utils import (

2021-06-18 20:00:05 [DEBUG] [boto:provider:get_credentials:280] [MainThread]
Using access key provided by client.

2021-06-18 20:00:05 [DEBUG] [boto:provider:get_credentials:307] [MainThread]
Using secret key provided by client.

2021-06-18 20:00:05 [DEBUG] [boto:provider:get_credentials:280] [MainThread]
Using access key provided by client.

2021-06-18 20:00:05 [DEBUG] [boto:provider:get_credentials:307] [MainThread]
Using secret key provided by client.
System check identified no issues (0 silenced).

Regards,
_

Heron
hero...@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/CAFjM0T0nxQCg-j17yhpKkcMwWd_ECbURWctKgawzXP_W9TPG0Q%40mail.gmail.com.


Re: help me plz: button one click django(disable the submit button )

2021-06-19 Thread Prasad Ajmire
Hey

On Sat, Jun 19, 2021, 5:29 PM hanin guesmi  wrote:

> I. Tried many codes but not working
>
> Le sam. 19 juin 2021 à 04:58, DJANGO DEVELOPER 
> a écrit :
>
>> you can apply javascript to perform this action.
>>
>> On Sat, Jun 19, 2021 at 7:43 AM hanin guesmi 
>> wrote:
>>
>>> Hi
>>> i am trying to disable send data when click in the second time in the
>>> button
>>> my template.html
>>>  
>>>   {% csrf_token %}
>>>   {% bootstrap_form form %}
>>>
>>>  submit>> >
>>>  
>>>
>>>
>>> 
>>>  Garanti
>>> sans virus. www.avast.com
>>> 
>>> <#m_-4274751709910058625_m_3118549069509375849_m_4219546677206560646_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>
>>> --
>>> 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/CABqiOL-3gAqMUry0k8P7__naavRT6d-jPvVobiJNvq91dvGbyA%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/CAKPY9p%3DgE4rK2AUow46u7dUwPFiq%2BdUKHXx%3D5bBeuBKt_U86hw%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/CABqiOL-XvXYgxNASbA53kg4E2Tmf%2B3v3k7h%3DWY%2B-0jJFEis1xg%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/CAJC%2BgnAch%3DGSsTgALoCeox4ROdDPaNzBbuJJP3OBZ-cChzos5A%40mail.gmail.com.


Re: help me plz: button one click django(disable the submit button )

2021-06-19 Thread vvk
Hi all pls make one Wtapp group or Instagram group  bevause mail box not
sufficient to solve

On Sat, Jun 19, 2021, 8:14 AM hanin guesmi  wrote:

> Hi
> i am trying to disable send data when click in the second time in the
> button
> my template.html
>  
>   {% csrf_token %}
>   {% bootstrap_form form %}
>
>  submit >
>  
>
>
> 
>  Garanti
> sans virus. www.avast.com
> 
> <#m_3890685427270182180_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> --
> 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/CABqiOL-3gAqMUry0k8P7__naavRT6d-jPvVobiJNvq91dvGbyA%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/CAKBaE%3DkgR-thJ3Ofn91WLZ%2B8d4mViOm3-rBJR-6sVjoCfCadCQ%40mail.gmail.com.


Re: help me plz: button one click django(disable the submit button )

2021-06-19 Thread hanin guesmi
I. Tried many codes but not working

Le sam. 19 juin 2021 à 04:58, DJANGO DEVELOPER  a
écrit :

> you can apply javascript to perform this action.
>
> On Sat, Jun 19, 2021 at 7:43 AM hanin guesmi 
> wrote:
>
>> Hi
>> i am trying to disable send data when click in the second time in the
>> button
>> my template.html
>>  
>>   {% csrf_token %}
>>   {% bootstrap_form form %}
>>
>>  submit> >
>>  
>>
>>
>> 
>>  Garanti
>> sans virus. www.avast.com
>> 
>> <#m_3118549069509375849_m_4219546677206560646_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> --
>> 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/CABqiOL-3gAqMUry0k8P7__naavRT6d-jPvVobiJNvq91dvGbyA%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/CAKPY9p%3DgE4rK2AUow46u7dUwPFiq%2BdUKHXx%3D5bBeuBKt_U86hw%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/CABqiOL-XvXYgxNASbA53kg4E2Tmf%2B3v3k7h%3DWY%2B-0jJFEis1xg%40mail.gmail.com.


Re: 500 - Internal server error

2021-06-19 Thread Kasper Laudrup
On 19/06/2021 10.59, Sachin Kumar wrote:
> Thanks, Kayode for the reply,
> 
> it's already enabled but still can't see any details. I am really trying
> to fix it for the last month but not able to any help or
> suggestion will be highly appreciated.
>

As Kayode already mentioned, you need to check the logs on your server.
Have you figured out how to access those?

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/95f0190f-f439-ea65-5799-822628f2c130%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


Re: 500 - Internal server error

2021-06-19 Thread Sachin Kumar
Thanks, Kayode for the reply,

it's already enabled but still can't see any details. I am really trying to
fix it for the last month but not able to any help or
suggestion will be highly appreciated.

Please help me out.

Sachin


On Fri, Jun 18, 2021 at 6:32 PM Kayode Oladipo 
wrote:

> Set DEBUG=True temporarily and see what's causing the error, or check your
> error logs.
>
> On Fri, Jun 18, 2021, 1:40 PM Sachin Kumar 
> wrote:
>
>> Hi Django Experts,
>> I am trying to download a report from the client's PC using the domain
>> name (http://xyz.com/reports/report/?merchant
>> )
>> I am getting the response of 500 - Internal server error. when the timing
>> to generate the report is less than 60 Sec it works but when the report is
>> bigger and it takes more time to generate it gives 500 - Internal server
>> error.
>> But the same report when I am trying from the server using IP address (
>> http://127.0.0.1/reports/report/?merchant
>> )
>> it completes successfully whatever time it takes it never gives 500 -
>> Internal server error.
>> I am using Windows 2016 Server and IIS Web Server. The development
>> platform is Python 3.8, Django and PostgreSQL.
>> Please Help me fix this issue
>>
>> Regards
>> Sachin
>>
>> --
>> 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/3d12a411-f8c1-43af-b186-9d0bd78d91d5n%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/CA%2BARzD_X7s4GW5Vo6yGj6%2BhVooMMAqpLVzmRtMStrPodm%2Bg1%3DQ%40mail.gmail.com
> 
> .
>


-- 

Best Regards,
Sachin Kumar

-- 
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/CALg-PKCfh8pjHkx2jpxR1%2Bv3MB_G2Ai8sTKTSfcthwXbhiEN9w%40mail.gmail.com.


Re: please help! not getting the desired output. how to add multiple orders via Django forms using Javascript?

2021-06-19 Thread DJANGO DEVELOPER
please can someone help me?

On Sat, Jun 19, 2021 at 9:31 AM DJANGO DEVELOPER 
wrote:

> for convenience, please follow addorder1 to addorder5 respectively.
>
> On Saturday, June 19, 2021 at 9:29:48 AM UTC+5 DJANGO DEVELOPER wrote:
>
>> Hi guys I need urgent help. your help is appreciated.
>> When I try to add a single order from user side then it works fine but
>> when I try to add multiple orders at the same time then neither it updates
>> a products price nor print all the orders on the invoice. can any one help
>> me? screenshots attached below.
>>
> --
> 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/a5126278-cdf7-455c-8718-e9f0692f5ef3n%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/CAKPY9pnHpB7CDXe078G2QPZZMsfJ69egDRRxAX4ijvjvNCRQyQ%40mail.gmail.com.


register_converter doesn't work with ASGI

2021-06-19 Thread konstanti...@gmail.com

I'm trying to switch from WSGI to ASGI and I'm having issues with my model 
id to model converters.
I define my converters like this
def to_python(self, primary_key):
 try:
  return self.model.objects.get(pk=primary_key)
 except self.model.DoesNotExist:
  raise ValueError
When I go to a url where a converter is used I get a 
SynchronousOnlyOperation.
Seems like converters are executed in an async context.
If I use sync_to_async, I get a coroutine in my view instead of a model 
instance. Awaiting it here would defeat the purpose of having a converter.

Any ideas how to fix this?

-- 
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/ef60ed71-7f4f-482d-b540-bdf89e249aa4n%40googlegroups.com.