Re: First Django Patch: django.contrib.auth 'Specifying a namespace in include() without providing an app_name '

2018-04-15 Thread Tim Graham
It can't be changed due to backwards compatibility. See https://github.com/django/django/pull/9527. On Saturday, April 14, 2018 at 12:29:01 PM UTC-4, jazu...@gmail.com wrote: > > Hi, I've recently sprung a bug that seems to be easily fixable. I would > like to create my first patch on django wit

Django y Python

2018-04-15 Thread Marcelo Giorno
Soy nuevo en todo esto. Instale Anaconda. Tengo Python 3,6 La consulta es puedo instalarme cualquier version de 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 em

Re: Proxy User and AUTH_USER_MODEL: TypeError: MyUser cannot proxy the swapped model 'myapp.MyUser'.

2018-04-15 Thread Tim Graham
The behavior seems expected. https://docs.djangoproject.com/en/dev/topics/auth/customizing/#custom-users-and-proxy-models It looks like if you use a proxy model, then you should import it where needed rather than use AUTH_USER_MODEL. On Saturday, April 14, 2018 at 6:34:59 PM UTC-4, Nicolas Pant

export sql query to excel

2018-04-15 Thread sum abiut
I wrote a function to export sql query to an excel file, but some how the excel file wasn't created when the function was call. appreciate any assistances here is my view.py def download_excel(request): if "selectdate" in request.POST: if "selectaccount" in request.POST: s

Re: export sql query to excel

2018-04-15 Thread sum abiut
my code actually worked. I thought it was going to save the excel file to 'C:\excel' folder so i was looking for the file in the folder but i couldn't find the excel file. The excel file was actually exported to my django project folder instead. How to i allow the end user to be able to download t

Re: CreateView autoset field

2018-04-15 Thread Samuel Muiruri
did you make the migration, also note it's the default if a new item is created with the field blank. On Sat, Apr 14, 2018 at 9:52 PM, DYAA CHBIB wrote: > I did the same, but it does not displayed in the field ! Any advice? > Thanks > > 2018-04-14 16:02 GMT+02:00 'Ferdinand Rohlfing' via Django