Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # assuming variable html contains the new HTML file,
- #+ and var id the ID of the flatpage
- from django.contrib.flatpages.models import FlatPage
- fp = FlatPage.objects.get (id=id)
- fp.content = html
- fp.save()
Add Comment
Please, Sign In to add comment