Dream 11

2022-09-07 Thread Vineet Kothari
Hi,
I want to create a web app like dream 11 any hint will be appreciated.

Thanks & Regards,
Vineet Kothari

-- 
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/CAAcansv2Spew7DLv2dp8igo6EaLTginV%2BgSmudXVX88%3DpvsrPQ%40mail.gmail.com.


Re: Dream 11

2022-09-07 Thread Anurag Agarwal
Please contact @RishavPant or @RohitSharma

On Wed, Sep 7, 2022, 19:36 Vineet Kothari 
wrote:

> Hi,
> I want to create a web app like dream 11 any hint will be appreciated.
>
> Thanks & Regards,
> Vineet Kothari
>
> --
> 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/CAAcansv2Spew7DLv2dp8igo6EaLTginV%2BgSmudXVX88%3DpvsrPQ%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/CAOuTKWKFjJ8tm8a_G6oedkdJTQZ_GEEatsUk2ZTuZvBgJm5oRw%40mail.gmail.com.


Static file - java script - not found

2022-09-07 Thread bodyabd...@gmail.com
Dear All;
I've problem in static folder , the file js not found 

-- 
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/191f5b42-a186-4ca7-ba5e-de441e4dc7f2n%40googlegroups.com.


Re: Static file - java script - not found

2022-09-07 Thread Lakshyaraj Dash
Listen you need to configure your sales app inside the installed apps like
'sales.apps.SalesConfig' and remove the line 'BASE_DIR / sales / static'
from the STATIFILES_DIRS.

Thanks and regards
Lakshyaraj Dash

On Thu, Sep 8, 2022, 02:49 bodyabd...@gmail.com 
wrote:

> Dear All;
> I've problem in static folder , the file js not found
>
> --
> 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/191f5b42-a186-4ca7-ba5e-de441e4dc7f2n%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/CAF7qQgDqAo%2Btm1gsQGCyzcDxRavwvfUsKGvQrAKYNjKt0EU71A%40mail.gmail.com.


Averaging timestamp deltas with Django ORM

2022-09-07 Thread Joshua Corlin
Hello Everyone, 

This is my first posting on this forum, please let me know if I have done 
anything incorrectly.  

I have a seemingly simple task I am trying to achieve with one of my 
projects.  Looking to see if the following is possible, and if so what the 
syntax would be with the Django ORM.  Apologies in advance if this is a 
trivial one. 

I have a requests model that has a bunch of time stamps(6 to be specific) 
and these timestamps record milestones in the request, set throughout the 
lifecycle of a request.  Im trying to write a query that gets a set of 
records, calculates the difference between two timestamps and averages 
those differences over the queryset.  For example, i want to get the 
average amount of time between the created_at timestamp and an approved_at 
timestamp over a set of records.  

I seem to be able to do this in postgres with the following, how can I do 
this with the Django ORM? 

select avg(approved_at - created_at) as approval_time from 
dashboard_labrequest;

Thanks in advance!

-- 
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/da6f1f06-e036-46ce-9405-520004de18afn%40googlegroups.com.


Re: Static file - java script - not found

2022-09-07 Thread Ezekiel Obiajulu
There is an error in staticfiles_dirs 
Message me on WhatsApp for further corrections ... 
Use that code 
STATIC_URL = 'static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]

remember to:
import os
at the top 

+2349033768504 (WhatsApp only)

On Wednesday, September 7, 2022 at 10:19:38 PM UTC+1 bodyabd...@gmail.com 
wrote:

> Dear All;
> I've problem in static folder , the file js not found 
>
>

-- 
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/1ab4716e-c311-4bc3-9e3b-6954e9056d55n%40googlegroups.com.


Re: Static file - java script - not found

2022-09-07 Thread Ezekiel Obiajulu
Use this code [image: Annotation 2022-09-07 231453.png] remember to:
import os at the top 

On Wednesday, September 7, 2022 at 10:19:38 PM UTC+1 bodyabd...@gmail.com 
wrote:

> Dear All;
> I've problem in static folder , the file js not found 
>
>

-- 
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/61da8caa-1983-4abf-833e-3c9edad52248n%40googlegroups.com.


Re: Static file - java script - not found

2022-09-07 Thread Lakshyaraj Dash
His configurations are correct os module is not compulsory... because the
BASE_DIR is already configured...

On Thu, Sep 8, 2022, 04:51 Ezekiel Obiajulu 
wrote:

> There is an error in staticfiles_dirs
> Message me on WhatsApp for further corrections ...
> Use that code
> STATIC_URL = 'static/'
> STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
>
> remember to:
> import os
> at the top
>
> +2349033768504 (WhatsApp only)
>
> On Wednesday, September 7, 2022 at 10:19:38 PM UTC+1 bodyabd...@gmail.com
> wrote:
>
>> Dear All;
>> I've problem in static folder , the file js not found
>>
>> --
> 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/1ab4716e-c311-4bc3-9e3b-6954e9056d55n%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/CAF7qQgCvO-5QjVw-B-%2BOYgTYtxBtAzy3WciP8RxsV5urmsOPQA%40mail.gmail.com.


Re: Averaging timestamp deltas with Django ORM

2022-09-07 Thread Thomas Lockhart
Something like qs.aggregate(delay=Avg(F(“approved_at”) - 
F(“created_at”)))[“delay”]

where I cribbed the technique from 
https://stackoverflow.com/questions/50219652/django-queryset-get-avg-of-2-fields
 


hth

- Tom

> On Sep 6, 2022, at 3:13 PM, Joshua Corlin  wrote:
> 
> Hello Everyone, 
> 
> This is my first posting on this forum, please let me know if I have done 
> anything incorrectly.  
> 
> I have a seemingly simple task I am trying to achieve with one of my 
> projects.  Looking to see if the following is possible, and if so what the 
> syntax would be with the Django ORM.  Apologies in advance if this is a 
> trivial one. 
> 
> I have a requests model that has a bunch of time stamps(6 to be specific) and 
> these timestamps record milestones in the request, set throughout the 
> lifecycle of a request.  Im trying to write a query that gets a set of 
> records, calculates the difference between two timestamps and averages those 
> differences over the queryset.  For example, i want to get the average amount 
> of time between the created_at timestamp and an approved_at timestamp over a 
> set of records.  
> 
> I seem to be able to do this in postgres with the following, how can I do 
> this with the Django ORM? 
> 
> select avg(approved_at - created_at) as approval_time from 
> dashboard_labrequest;
> 
> Thanks in advance!
> 
> -- 
> 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/da6f1f06-e036-46ce-9405-520004de18afn%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/3E0FE68E-345A-47F6-8CAE-190155B4670A%40gmail.com.