Re: django admin_tools et file edition

2016-04-01 Thread Alex Heyden
Ignoring security concerns for a moment, you could make a view that loads a file (using the standard os library) and passes the contents to a textarea in a template if the request has the GET method, and saves the contents back to the file if the request has the POST method. On Fri, Apr 1, 2016 at

Re: django admin_tools et file edition

2016-04-01 Thread vassilux
One part of the configuration can be loaded from the database and it works well. I have to edit some files of asterisk ipbx. May be I can overload save / load methodes of djaongo model ? Or make a "service for file " into server side of my application, à la "restful" ? Le jeudi 31 mars 20

Re: django admin_tools et file edition

2016-03-31 Thread Alex Heyden
CKEditor is appropriate for files that need solid typography and formatting. If you're looking for something simpler, Markdown is a common solution. Markdown is a markup syntax widespread on internet forums. None of those really address "configuration files," though. Is fancy formatting actually t

django admin_tools et file edition

2016-03-31 Thread vassilux
Hi alls, It is my first django project and I look for a solution to edit files, for exemple allow to an "advanced user" editing configuration files. I looked into django-ckeditor but it is not clear for the moment Where I can lo