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 2:13 AM, vassilux <v.gontcharov@gmail.com> wrote:
--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 2016 22:31:44 UTC+2, Alex Heyden a écrit :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 the problem you're trying to solve? Are you trying to find a way to save and edit files on a hard drive? Save text to a database to affect the behavior of your website? Something else?On Thu, Mar 31, 2016 at 11:51 AM, vassilux <v.gont...@gmail.com> wrote: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 momentWhere I can look for informations / examples ?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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5d9fda07-2a03-4fe9-8046-e853fd616943%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/19ca0367-da06-496b-adb6-2a2a07c5efa6%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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Bv0ZYULjoF%2BOGiJfNgMv90OSvnqcotRcwxmF8xkFSrnids3jA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment