Hello, I plan to use django for some projects with heavy use of math formulas and I would like to create a reusable custom field to store LaTeX strings and to get a png image on disk after compilation. The usage would go like this : model: formula = LatexField() template to get the png: {{model.formula.url}} Before saving the field, I compile the string on server with LaTeX and make a png stored in a local file.
I have the following question : I need to store in the database the LaTeX string as well as the url of the png image and I wonder how to do it (I looked at FileField, ImageField but only the url is saved in the database). Another point, it would be nice to create a specific form to see the errors during LaTeX compilation and to correct them before saving the field in the database. Any suggestions, starting point in docs ? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---