Re: Mouse movement detection and processing from client UI

2021-10-27 Thread Derek
I am not sure about the others, but certainly for map clicks you'll need 
JavaScript  e.g.
https://docs.mapbox.com/mapbox-gl-js/example/popup-on-click/
Of course, the page itself, with JS code links, snippets and supporting 
data can be generated via Django in the normal way.

HTH


On Wednesday, 27 October 2021 at 04:03:16 UTC+2 lego.th...@gmail.com wrote:

> So there are Python packages out there that can handle mouse movement 
> detection locally. But for a Django app, how do we go about do this? 
> Clearly we cannot have any processing power on the client machine. Below 
> are some examples to be more specific:
> 1 - An e-commerce page where buyer clicks, drags (i.e. holds the mouse) 
> and drops a picture of an item from shelf to cart.
> 2 - A web game where player clicks, drags and drops things from one 
> location on the screen to another.
> 3 - Web page responds to location of mouse on screen (i.e. coordinates) 
> such as GPS-related apps with real map.
>
> 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/c88b73ab-8c63-451d-919c-6d5550b8c1f7n%40googlegroups.com.


Re: facing problems while deploying the project some error with static files

2021-10-27 Thread Kasper Laudrup
On 27/10/2021 20.38, 'Mr. Aryan Sharma 4-Year B.Tech. Computer Science 
and Engineering' via Django users wrote:

I tried Whitenoise but it's still not working



Try something else. I'm sure that will work for you.

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/44763e49-9cf9-2c05-4ba2-1533c2af6fc5%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: facing problems while deploying the project some error with static files

2021-10-27 Thread 'Mr. Aryan Sharma 4-Year B.Tech. Computer Science and Engineering' via Django users
I tried Whitenoise but it's still not working

On Wed, 27 Oct, 2021, 11:36 pm Ennio Santos,  wrote:

> see this video and check if solve your problem. (i was facing problems
> with static files when deploying using heroku. it is working fine for me
> now).
>
> https://youtu.be/97UQM-Cfhxs
>
> Em quarta-feira, 27 de outubro de 2021 às 10:05:34 UTC-3,
> aryan.shar...@itbhu.ac.in escreveu:
>
>> i am using heroku
>>
>> --
> 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/f3b648fc-ce33-4e88-b5b0-835d9e5009d7n%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/CAO10MeMxVJ4JXkkaQSPsyvJYT6ZhUx99HXxU3_X5%3D9KW1imvLQ%40mail.gmail.com.


Re: facing problems while deploying the project some error with static files

2021-10-27 Thread Ennio Santos
see this video and check if solve your problem. (i was facing problems with 
static files when deploying using heroku. it is working fine for me now).

https://youtu.be/97UQM-Cfhxs

Em quarta-feira, 27 de outubro de 2021 às 10:05:34 UTC-3, 
aryan.shar...@itbhu.ac.in escreveu:

> i am using heroku
>
>

-- 
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/f3b648fc-ce33-4e88-b5b0-835d9e5009d7n%40googlegroups.com.


Re: Initial value is not displayed on forms.DateField with widget input type="date" when localized

2021-10-27 Thread Tim Graham
You can read https://code.djangoproject.com/ticket/33113 for some details 
on this issue.

On Wednesday, October 27, 2021 at 5:07:00 AM UTC-4 binoy...@gmail.com wrote:

> Hi 
> I have a form field forms.DateField and widget as follows
>
> class CustomDateInput(forms.DateInput):
> input_type = 'date'
>
> valid_from = forms.DateField(
> label=_("Valid from"), widget=CustomDateInput(), required=False, 
> localize=True)
>
> But the date is not displayed by the browser when the language is 
> German(de). The field is rendered as follows with in:
>
>  id="id_valid_from">
>
> But the browser is *not display* the initial value to the user, instead 
> shows *mm/dd/* when the system language is English and *dd.mm.* 
> when the system language is German.
>
> I have also tried not passing the localize form field argument as well as 
> localize off template tag, but both didn't work. 
>
> I could resolve the issue by rending the field manually and setting the 
> date form to  -mm-dd.
>
> Is it a browser issue or as the date input supports only value in 
> -mm-dd?
>
> Python version: 3.8. 10 and django: 3.0.14
>
>
>

-- 
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/d636fa6e-69e4-4402-9d1e-2486fb70c11cn%40googlegroups.com.


Re: facing problems while deploying the project some error with static files

2021-10-27 Thread Lakshyaraj Dash X-D 25
Just do one thing, write STATIC_ROOT = os.path.join(BASE_DIR,
'staticfiles') in settings.py.
Ok. This will definitely solve your problem. I've an experience of
deploying my django projects. If any problems then message me at
dashlakshyaraj2...@gmail.com.

On Wed, Oct 27, 2021, 18:34 'Mr. Aryan Sharma 4-Year B.Tech. Computer
Science and Engineering' via Django users 
wrote:

> i am using heroku
>
> --
> 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/97077339-6e26-4c7d-9653-baf215d1abf7n%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/CAF7qQgD970iok0OebA5O04viR3Y_j-qwFoEjo25NozrXYrS9xQ%40mail.gmail.com.


Re: facing problems while deploying the project some error with static files

2021-10-27 Thread Lakshyaraj Dash X-D 25
Just do one thing, write STATIC_ROOT = os.path.join(BASE_DIR,
'staticfiles').
Ok. This will definitely solve your problem. I've an experience of
deploying my django projects. If any problems then message me at
dashlakshyaraj2...@gmail.com.

On Wed, Oct 27, 2021, 18:34 'Mr. Aryan Sharma 4-Year B.Tech. Computer
Science and Engineering' via Django users 
wrote:

> i am using heroku
>
> --
> 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/97077339-6e26-4c7d-9653-baf215d1abf7n%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/CAF7qQgB3xhfxGD3Pb-N2uRpMf4FwS6sObWRqRiccR0Z_-QxnEA%40mail.gmail.com.


Re: facing problems while deploying the project some error with static files

2021-10-27 Thread Kasper Laudrup
On 27/10/2021 12.51, 'Mr. Aryan Sharma 4-Year B.Tech. Computer Science 
and Engineering' via Django users wrote:

i am using heroku



You are probably doing something wrong. Try to do things correctly 
instead and see if that doesn't solve your problems.


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/2731da45-a49a-409a-5b8f-e6f11dcd5cac%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: facing problems while deploying the project some error with static files

2021-10-27 Thread Aashish Kumar
Have you define the static root in settings.py file

On Wed, 27 Oct 2021 at 6:35 PM, 'Mr. Aryan Sharma 4-Year B.Tech. Computer
Science and Engineering' via Django users 
wrote:

> i am using heroku
>
> --
> 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/97077339-6e26-4c7d-9653-baf215d1abf7n%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/CACTAcrz4fH93yqq84bD_b5fbCSvq6cv%3DuwECSPPdHKZCNtNRzw%40mail.gmail.com.


facing problems while deploying the project some error with static files

2021-10-27 Thread 'Mr. Aryan Sharma 4-Year B.Tech. Computer Science and Engineering' via Django users
i am using heroku

-- 
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/97077339-6e26-4c7d-9653-baf215d1abf7n%40googlegroups.com.


Re: Initial value is not displayed on forms.DateField with widget input type="date" when localized

2021-10-27 Thread Sebastian Jung
Hello,

but why you configure this with a own class? You can configure this in
settings.py...

Regards


Virenfrei.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Am Mi., 27. Okt. 2021 um 12:43 Uhr schrieb binoy...@gmail.com <
binoyuda...@gmail.com>:

> Hi
>
> Sorry, I missed that part.
>
> class CustomDateInput(forms.DateInput):
> input_type = 'date'
> format = get_format(forms.DateInput.format_key) + ["%d.%m.%Y"]
>
> and USE_L10N = True in settings.
>
> On Wednesday, October 27, 2021 at 12:18:32 PM UTC+2 sebasti...@gmail.com
> wrote:
>
>> Hello,
>>
>> I think you need a entry in settings.py with USE_L10N = True
>>
>> You can make fix format in settings.py with DATE_FORMAT = 'd.m.Y'
>>
>> Regards
>>
>> binoy...@gmail.com  schrieb am Mi., 27. Okt. 2021,
>> 11:07:
>>
>>> Hi
>>> I have a form field forms.DateField and widget as follows
>>>
>>> class CustomDateInput(forms.DateInput):
>>> input_type = 'date'
>>>
>>> valid_from = forms.DateField(
>>> label=_("Valid from"), widget=CustomDateInput(), required=False,
>>> localize=True)
>>>
>>> But the date is not displayed by the browser when the language is
>>> German(de). The field is rendered as follows with in:
>>>
>>> >> class="form_item" id="id_valid_from">
>>>
>>> But the browser is *not display* the initial value to the user, instead
>>> shows *mm/dd/* when the system language is English and *dd.mm.*
>>> when the system language is German.
>>>
>>> I have also tried not passing the localize form field argument as well
>>> as localize off template tag, but both didn't work.
>>>
>>> I could resolve the issue by rending the field manually and setting the
>>> date form to  -mm-dd.
>>>
>>> Is it a browser issue or as the date input supports only value in
>>> -mm-dd?
>>>
>>> Python version: 3.8. 10 and django: 3.0.14
>>>
>>>
>>> --
>>> 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/223f7686-eb61-4fcf-8f1a-b0f147b58b86n%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/a53317d7-1c50-4b5e-b9e7-64c1d7f115e9n%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/CAKGT9mxhPszMxQaZJGyUhrp4qVypx8K1Z5k1GFz8uRuo0jMHSQ%40mail.gmail.com.


Re: Initial value is not displayed on forms.DateField with widget input type="date" when localized

2021-10-27 Thread binoy...@gmail.com
Hi

Sorry, I missed that part. 

class CustomDateInput(forms.DateInput):
input_type = 'date'
format = get_format(forms.DateInput.format_key) + ["%d.%m.%Y"]

and USE_L10N = True in settings.

On Wednesday, October 27, 2021 at 12:18:32 PM UTC+2 sebasti...@gmail.com 
wrote:

> Hello,
>
> I think you need a entry in settings.py with USE_L10N = True
>
> You can make fix format in settings.py with DATE_FORMAT = 'd.m.Y'
>
> Regards
>
> binoy...@gmail.com  schrieb am Mi., 27. Okt. 2021, 
> 11:07:
>
>> Hi 
>> I have a form field forms.DateField and widget as follows
>>
>> class CustomDateInput(forms.DateInput):
>> input_type = 'date'
>>
>> valid_from = forms.DateField(
>> label=_("Valid from"), widget=CustomDateInput(), required=False, 
>> localize=True)
>>
>> But the date is not displayed by the browser when the language is 
>> German(de). The field is rendered as follows with in:
>>
>> > id="id_valid_from">
>>
>> But the browser is *not display* the initial value to the user, instead 
>> shows *mm/dd/* when the system language is English and *dd.mm.* 
>> when the system language is German.
>>
>> I have also tried not passing the localize form field argument as well as 
>> localize off template tag, but both didn't work. 
>>
>> I could resolve the issue by rending the field manually and setting the 
>> date form to  -mm-dd.
>>
>> Is it a browser issue or as the date input supports only value in 
>> -mm-dd?
>>
>> Python version: 3.8. 10 and django: 3.0.14
>>
>>
>> -- 
>> 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/223f7686-eb61-4fcf-8f1a-b0f147b58b86n%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/a53317d7-1c50-4b5e-b9e7-64c1d7f115e9n%40googlegroups.com.


Re: Initial value is not displayed on forms.DateField with widget input type="date" when localized

2021-10-27 Thread Sebastian Jung
Hello,

I think you need a entry in settings.py with USE_L10N = True

You can make fix format in settings.py with DATE_FORMAT = 'd.m.Y'

Regards

binoy...@gmail.com  schrieb am Mi., 27. Okt. 2021,
11:07:

> Hi
> I have a form field forms.DateField and widget as follows
>
> class CustomDateInput(forms.DateInput):
> input_type = 'date'
>
> valid_from = forms.DateField(
> label=_("Valid from"), widget=CustomDateInput(), required=False,
> localize=True)
>
> But the date is not displayed by the browser when the language is
> German(de). The field is rendered as follows with in:
>
>  id="id_valid_from">
>
> But the browser is *not display* the initial value to the user, instead
> shows *mm/dd/* when the system language is English and *dd.mm.*
> when the system language is German.
>
> I have also tried not passing the localize form field argument as well as
> localize off template tag, but both didn't work.
>
> I could resolve the issue by rending the field manually and setting the
> date form to  -mm-dd.
>
> Is it a browser issue or as the date input supports only value in
> -mm-dd?
>
> Python version: 3.8. 10 and django: 3.0.14
>
>
> --
> 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/223f7686-eb61-4fcf-8f1a-b0f147b58b86n%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/CAKGT9mzn0P%3DUoizgFfQa4EZtNH7oNhC1t8nPoHEGhS42g6AWNQ%40mail.gmail.com.


Initial value is not displayed on forms.DateField with widget input type="date" when localized

2021-10-27 Thread binoy...@gmail.com
Hi 
I have a form field forms.DateField and widget as follows

class CustomDateInput(forms.DateInput):
input_type = 'date'

valid_from = forms.DateField(
label=_("Valid from"), widget=CustomDateInput(), required=False, 
localize=True)

But the date is not displayed by the browser when the language is 
German(de). The field is rendered as follows with in:



But the browser is *not display* the initial value to the user, instead 
shows *mm/dd/* when the system language is English and *dd.mm.* 
when the system language is German.

I have also tried not passing the localize form field argument as well as 
localize off template tag, but both didn't work. 

I could resolve the issue by rending the field manually and setting the 
date form to  -mm-dd.

Is it a browser issue or as the date input supports only value in 
-mm-dd?

Python version: 3.8. 10 and django: 3.0.14


-- 
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/223f7686-eb61-4fcf-8f1a-b0f147b58b86n%40googlegroups.com.