Thanks for the suggestion. Even if I suppose not, would it be possible to generate the correct security hash with javascript?
On May 6, 5:03 pm, Alex Robbins <[email protected]> wrote: > Also, as I think more about this, are you sure you need static > generator? You might get sufficient speed just by using cache. > Premature optimization is bad.... > > On May 6, 8:37 am, Alex Robbins <[email protected]> wrote: > > > > > > > Disclaimer: > >Disablingthesecuritystuff makes it really likely you'll getcomment > > spammed. You should set up some kind of akismet protection on the > > backend if you disable thesecurity. > > > If you don't want the checking then you probably want a customcomment > > form. > > You can use this method to setup a new > > form:http://docs.djangoproject.com/en/dev/ref/contrib/comments/custom/#dja... > > > Then use the form base classes with the functionality you want. > > (You'll probably want to exclude the CommentSecurityForm, and include > > the generic foreign key information some other > > way.)http://docs.djangoproject.com/en/dev/ref/contrib/comments/forms/ > > > Hope that helps! > > Alex > > > On May 5, 5:59 pm, Federico Capoano <[email protected]> wrote: > > > > Hello to all, > > > > I've just launched my new web-site powered by django and i'm very > > > satisfied. > > > > I've implemented StaticGenerator to improve the performance and > > > loading speed and I have to admit is brilliant. > > > > Unfortunately i've noticed thecommentsystem doesn't work. This > > > happens because the pages of the blog are saved as static html pages, > > > so the timestamp and csfrsecuritystuff are the one saved when the > > > page was generated. > > > > I gotta find a fix for this, because I really want my blog pages to be > > > saved as static html cos this is the best solution to obtain fast > > > loading speed without overloading my little VPS. > > > > I think I can generate the timestamp with javascript, but what about > > > the other two fields (csrfmiddlewaretoken andsecurityhash)? > > > > If you want to take a look closely this is the > > > url:http://nemesisdesign.net/blog/ > > > I hope i'm not breaching any rule by posting the url. > > > > Thanks > > > Federico > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Django users" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group > > > athttp://groups.google.com/group/django-users?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Django users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/django-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

