return values from static files to django admin

2015-10-29 Thread dc
I have declared a charfield 'choice_text' in one of my models. I want to convert it to a dropdown box in django admin. The choices in the dropdown list depend on user input to a textbox defined in another model class. I have a javascript (declared as Media class inside a ModelAdmin class) that

Re: MySQL queries-connection to django

2015-10-29 Thread Dheerendra Rathor
Hi, Django docs discuss about mysql connection here https://docs.djangoproject.com/en/1.8/ref/databases/#mysql-db-api-drivers On Fri, 30 Oct 2015 at 07:12 Sid wrote: > So there is any way before creating model we can connect django sql server > 2012 > > > On

Re: MySQL queries-connection to django

2015-10-29 Thread Sid
So there is any way before creating model we can connect django sql server 2012 On Wednesday, October 28, 2015 at 11:18:37 PM UTC-4, Mike Dewhirst wrote: > > On 29/10/2015 7:00 AM, Sid wrote: > > I am new to DJANGO... > > You can connect to your database using Django but first Django needs to

mssql databASE CONNECTION to Django

2015-10-29 Thread Sid
*Hi all,* I am trying to connect database which is in server to django, but it is showing many errors like(platform i am using M visual studio) *Traceback (most recent call last):* File "C:\Users\speesary\Desktop\programs\learn\learn\manage.py", line 17, in

Re: django filebrowser decoding

2015-10-29 Thread 'Tom Evans' via Django users
On Thu, Oct 29, 2015 at 8:35 PM, Emīls Brass wrote: > I got django filebrowser for admin, where admin can see all added files in > special folder. > > When admin click on folder to see whats inside, if there is some file with > name who contains UNICODE chartacter, then I

Re: django filebrowser decoding

2015-10-29 Thread Dheerendra Rathor
Do you have the full stacktrace? Can you post that here? On Fri, 30 Oct 2015 at 02:37 Emīls Brass wrote: > I got django filebrowser for admin, where admin can see all added files in > special folder. > > When admin click on folder to see whats inside, if there is some file

Django filebrowser decoding

2015-10-29 Thread Emīls Brass
I got admin panel, where you can see all files and folders added in website folder - userfiles, but there is a problem. When I oppening folder with files whos names contains with UNICODE, that map dosnt open, but I got 500 error, but if there is no files with UNICODE names it works. Example:

django filebrowser decoding

2015-10-29 Thread Emīls Brass
I got django filebrowser for admin, where admin can see all added files in special folder. When admin click on folder to see whats inside, if there is some file with name who contains UNICODE chartacter, then I shows 500 error, but if not, everything is working. We exported this webpage to

Re: formset concurrency control

2015-10-29 Thread Carsten Fuchs
Hi all, continuing my previous post, I've implemented most of the ideas mentioned in this thread now, and would like, for completeness and future reference, add some related findings and thoughts: As mentioned in my previous post, reconstructing the formset's initial data (the queryset) in