[no subject]

2019-07-22 Thread Mukul Dharwala
The code you have sent me is correct or will i have to add more files

-- 
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/CAFOmVPETkuf0JbScpo%2Bhso2veeY11A_PrR5ZEt5D%2BbdFBo--uw%40mail.gmail.com.


Re: interoperability of django with another web server

2019-07-22 Thread gilwell muhati
Hello @CodingManiac,
What do you mean other frameworks, they are a zillion frameworks out there.
PHP Frameworks? Java? JavaScript? Perl? etc etc




*Regards,Gilwell Muhati | +254 710 739 116 | *
*~~“The mind is its own place and in itself can make a heaven of hell, a
hell of heaven…”~~John Milton *


On Tue, Jul 23, 2019 at 3:20 AM CodingManiac 
wrote:

> I have created a website using django framework but now i want it operable
> in other framework too.
> How can I do that?
>
> --
> 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/90121e20-46cc-4b70-84eb-1bf28778764c%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/CALO4FhH5KSHOB7G3ZXHLqc6W6wOMhFv%3DBYhMP2ru6ZzTEwm3CA%40mail.gmail.com.


interoperability of django with another web server

2019-07-22 Thread CodingManiac
I have created a website using django framework but now i want it operable 
in other framework too.
How can I do that? 

-- 
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/90121e20-46cc-4b70-84eb-1bf28778764c%40googlegroups.com.


Re: Start-up project for fresher student:

2019-07-22 Thread Abhishek Anvekar
Go with creating a e-commerce site.

On Tue 23 Jul, 2019, 12:48 AM iampawam goswami, 
wrote:

> Hello everybody
> I what starts my django project what will be the best startup application
> for practices to fresher...Please reply me.
>
> --
> 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/CAM%3DXy2p1SiSL2WoPvCc8g_%3DB_zaojf%3DfWkDBA_dpDfwd4gtgPQ%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/CAF_nNUpCquK9xB-A%3DZ8n5X9_Oe_nu5s%2BaQbeC9H02-wh2aKtCw%40mail.gmail.com.


How to customize AdminWidget FilteredSelectMultiple?

2019-07-22 Thread Mei B
I'm trying to use the admin widget FilteredSelectMultiple, I can get it to 
render on my page, but I want to customize it a bit more.

I want to change the labels from available/chosen, change the size, and 
reorder the boxes (have chosen be on the left) How do I go about doing that?

-- 
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/9ea91cc1-f1b7-44ea-9a40-8b1b5257cdf3%40googlegroups.com.


Re: Start-up project for fresher student:

2019-07-22 Thread Franck Tchouanga
An airline system application it touches all the different parts of django

On Mon, Jul 22, 2019, 20:18 iampawam goswami 
wrote:

> Hello everybody
> I what starts my django project what will be the best startup application
> for practices to fresher...Please reply me.
>
> --
> 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/CAM%3DXy2p1SiSL2WoPvCc8g_%3DB_zaojf%3DfWkDBA_dpDfwd4gtgPQ%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/CANRJ%3D3k%2BvxtNNw5RNB0qxE88bZf6q4TuoaSC1ajY9MCUMjrPbg%40mail.gmail.com.


Start-up project for fresher student:

2019-07-22 Thread iampawam goswami
Hello everybody
I what starts my django project what will be the best startup application
for practices to fresher...Please reply me.

-- 
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/CAM%3DXy2p1SiSL2WoPvCc8g_%3DB_zaojf%3DfWkDBA_dpDfwd4gtgPQ%40mail.gmail.com.


Re: Django Application logging --

2019-07-22 Thread Andreas Schosser
Hi

you can the use Logger class documented in
"https://docs.djangoproject.com/en/2.2/topics/logging/;.

Basically the code is something like

  import logging
  log = logging.getLogger('delhisanjays_app')
  log.info.('user logged in')

You can enhance the log message to your needs.

Cheers

Am 22.07.19 um 19:27 schrieb SNJY G:
> Hello Django Experts,
> There is Django application which uses LDAP in middleware for user
> authentication.
> I need to record user login and logout time. For that purpose, I think of a
> basic flow as per following details -
> Create new model for logging
> Make a function in views.py which will add the login/ logout time and date
> to a model.
> Call the function every time when user login/ logout.
> Could someone please suggest better way OR point me to good/relevant
> article around it.
-- 
Kurs 10 IT-Consulting   www.kurs-10.de
Andreas Schosser  a...@kurs-10.de

Baldestraße. 14  Telefon +49 89 41615842-0
80469 MünchenTelefax +49 89 41615842-3

0x85475B6B - 79BB 94F9 8523 0180 E2E5 7A8F 97B7 5BAB 8547 5B6B

-- 
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/7f6d92a7-9ef0-66d7-f07e-51463a99ba3c%40kurs-10.de.


signature.asc
Description: OpenPGP digital signature


Django Application logging --

2019-07-22 Thread SNJY G
Hello Django Experts,
There is Django application which uses LDAP in middleware for user
authentication.
I need to record user login and logout time. For that purpose, I think of a
basic flow as per following details -
Create new model for logging
Make a function in views.py which will add the login/ logout time and date
to a model.
Call the function every time when user login/ logout.
Could someone please suggest better way OR point me to good/relevant
article around it.
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/CAG6zOKWfhB%2BitkgqJks4JWM3vDJkbKAWY_7vjTnWxfrBrtVFaw%40mail.gmail.com.


Re: NotImplemented error combining distinct with annotate

2019-07-22 Thread John Gateley
Thank you Simon, that worked. -- John

On Sun, Jul 21, 2019 at 8:55 PM Simon Charette  wrote:

> Assuming you have a model definition `Salesperson` you could use
>
> Salesperson.object.annotate(
> sales_amount=Sum('sales__sales_amount'),
> )
>
> But given you mentioned 'salesperson' is a text field you can do
>
> persons = Sales.objects.values('salesperson').annotate(
> sum_sales_amount=Sum('sales_amount')
> )
> for person in persons:
> print('Salesperson %s sold %d dollars' % (person['salesperson'],
> person['sum_sales_amount'])
>
> Note that .values() before annotating a an aggregation function results in
> a GROUP BY
> which should should prefer over using DISTINCT.
>
> Cheers,
> Simon
>
> Le dimanche 21 juillet 2019 21:20:37 UTC-4, John Gateley a écrit :
>>
>> Hello,
>>
>> Python version: Python 3.7.2
>> Django version: 2.2.3
>>
>> I want to combine distinct and annotate(Sum(...)), and get the following
>> error:
>> NotImplementedError: annotate() + distinct(fields) is not implemented.
>>
>> To describe: I have a bunch of sales entries like:
>> 'John', 100
>> 'Sam', 50
>> 'John', 200
>> (the model is a text field for salesperson and an integer field for
>> sales_amount)
>>
>> I want to write a query like:
>> res = Sales.objects.distinct('salesperson').annotate(Sum('sales_amount'))
>> for person in res:
>> print('Salesperson %s sold %d dollars' % (person.salesperson,
>> person.sales_amount__count))
>>
>> I would expect:
>> Salesperson John sold 300 dollars
>> Salesperson Sam sold 50 dollars
>>
>> Instead it generates the above error. Is there a way to do this?
>>
>> Thank you,
>>
>> John
>>
> --
> 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/1f28638f-d43e-41d9-ba43-663d9d05df09%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/CABMyA2MfkzCtw66w5y3B768Xt9wC1wcn%3DA1znz-%3D61NKrLbzHA%40mail.gmail.com.


Re: Django admin application for Android

2019-07-22 Thread Franck Tchouanga
That's coo

On Mon, Jul 22, 2019, 07:56 Jens-Joris Decorte 
wrote:

> Hi Alexandre, the app is written in Kotlin. Looked for using flutter but
> the webview support is not quite there yet..
>
> Op woensdag 17 juli 2019 17:26:04 UTC+2 schreef Alexandre Guignard:
>>
>> That's cool, thanks 
>> Which langage do You use for the app ?
>
> --
> 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/4e27ac91-ffd4-4bfa-9c8c-5d4c27ba87a2%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/CANRJ%3D3%3Ds36Zg80YTNw_5v7T67WyXTsyeNRON3cMOo8GwH3_aqg%40mail.gmail.com.


Re: Django admin application for Android

2019-07-22 Thread Jens-Joris Decorte
Hi Alexandre, the app is written in Kotlin. Looked for using flutter but 
the webview support is not quite there yet..

Op woensdag 17 juli 2019 17:26:04 UTC+2 schreef Alexandre Guignard:
>
> That's cool, thanks  
> Which langage do You use for the app ?

-- 
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/4e27ac91-ffd4-4bfa-9c8c-5d4c27ba87a2%40googlegroups.com.


Re: Django admin application for Android

2019-07-22 Thread Jens-Joris Decorte
Hi Derek,

The GOLD plan is for users who want to manage multiple projects.
On top of that they get some other benefits like using shortcuts and 
rearranging the order of the models.

This is $0.99 per month as a way to support my development :-)

Kind regards

Op woensdag 17 juli 2019 08:11:56 UTC+2 schreef Derek:
>
> Can you explain more about the GOLD plan - what is it and how much does it 
> cost?
>
> On Monday, 15 July 2019 12:51:58 UTC+2, Jens-Joris Decorte wrote:
>>
>> Hello Django developers!
>>
>> Being both a Django developer and a heavy user of Django applications, I 
>> found myself accessing the admin interface of my Django sites quite often 
>> via my smartphone when I am on the road.
>> I was stoked to see the new responsive admin since Django 2.0, which made 
>> this process much smoother.
>>
>> Lately I've been developing an *Android app* to access your site's 
>> admin. It ports the *responsive design to ALL Django versions* and 
>> includes even more features to make the experience very mobile friendly.
>> I have just released this app on the Google Play Store 
>>  so 
>> feel free to check it out or to share it with other Django developer / 
>> users. Any feedback will also be appreciated!
>>
>> The app can be found here: 
>> https://play.google.com/store/apps/details?id=com.jjdc.djangoadmin
>>
>> [image: Django-admin-1] 
>>  [image: 
>> Django-admin-2.jpg] 
>> 
>>
>

-- 
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/fbd4f7b2-4ae7-4ac2-b8fe-a7839d3f0d1d%40googlegroups.com.


Re: Django admin application for Android

2019-07-22 Thread Jens-Joris Decorte
Hi Derek,

The GOLD plan is for users who want to manage multiple projects.
On top of that they get some other benefits like using shortcuts and 
rearranging the order of the models.

This is $0.99 per month as a way to support my development :-)

Kind regards

Op woensdag 17 juli 2019 08:11:56 UTC+2 schreef Derek:
>
> Can you explain more about the GOLD plan - what is it and how much does it 
> cost?
>
> On Monday, 15 July 2019 12:51:58 UTC+2, Jens-Joris Decorte wrote:
>>
>> Hello Django developers!
>>
>> Being both a Django developer and a heavy user of Django applications, I 
>> found myself accessing the admin interface of my Django sites quite often 
>> via my smartphone when I am on the road.
>> I was stoked to see the new responsive admin since Django 2.0, which made 
>> this process much smoother.
>>
>> Lately I've been developing an *Android app* to access your site's 
>> admin. It ports the *responsive design to ALL Django versions* and 
>> includes even more features to make the experience very mobile friendly.
>> I have just released this app on the Google Play Store 
>>  so 
>> feel free to check it out or to share it with other Django developer / 
>> users. Any feedback will also be appreciated!
>>
>> The app can be found here: 
>> https://play.google.com/store/apps/details?id=com.jjdc.djangoadmin
>>
>> [image: Django-admin-1] 
>>  [image: 
>> Django-admin-2.jpg] 
>> 
>>
>

-- 
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/be43dd1b-9297-429e-b029-e8c18b2398b9%40googlegroups.com.


Re: Django admin application for Android

2019-07-22 Thread Jens-Joris Decorte
Hi Derek,

The GOLD plan is for users who want to manage multiple projects.
On top of that they get some other benefits like using shortcuts and 
rearranging the order of the models.

This is $0.99 per month as a way to support my development :-)

Kind regards

Op woensdag 17 juli 2019 08:11:56 UTC+2 schreef Derek:
>
> Can you explain more about the GOLD plan - what is it and how much does it 
> cost?
>
> On Monday, 15 July 2019 12:51:58 UTC+2, Jens-Joris Decorte wrote:
>>
>> Hello Django developers!
>>
>> Being both a Django developer and a heavy user of Django applications, I 
>> found myself accessing the admin interface of my Django sites quite often 
>> via my smartphone when I am on the road.
>> I was stoked to see the new responsive admin since Django 2.0, which made 
>> this process much smoother.
>>
>> Lately I've been developing an *Android app* to access your site's 
>> admin. It ports the *responsive design to ALL Django versions* and 
>> includes even more features to make the experience very mobile friendly.
>> I have just released this app on the Google Play Store 
>>  so 
>> feel free to check it out or to share it with other Django developer / 
>> users. Any feedback will also be appreciated!
>>
>> The app can be found here: 
>> https://play.google.com/store/apps/details?id=com.jjdc.djangoadmin
>>
>> [image: Django-admin-1] 
>>  [image: 
>> Django-admin-2.jpg] 
>> 
>>
>

-- 
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/56e4363e-85b4-401d-864f-eb14bb559366%40googlegroups.com.