ich arbeite gerade das django buch von packtpublishing durch. bis jetzt hat alles einigermaßen gut geklappt.
jetzt geht es darum kommentare zu einem bookmark zu erstellen.
leider wird in dem buch noch eine ältere django version benutzt ich benutze die neueste stabile. ic glaube ich habe alle objekte nach neuem standart umbenannt und das formular wird auch richtig angezeigt jedoch werden die replacement tags im formular nicht richtig gefüllt. und beim absenden des formulars gibt es eine fehlermeldung weil parameter fehlen.
hier einmal das template für das formular:
Code: Alles auswählen
{% if user.is_authenticated %}
<form action="/comments/post/" method="post">
<p><label>Post a comment:</label><br />
<textarea name="comment" rows="10"
cols="60"></textarea></p>
<input type="hidden" name="options"
value="{{ options }}" />
<input type="hidden" name="target" value="{{ target }}" />
<input type="hidden" name="gonzo" value="{{ hash }}" />
<input type="submit" name="post" value="submit comment" />
</form>
{% else %}
<p>Please <a href="/login/">log in</a> to post comments.</p>
{% endif %}
an diesem punkt komme ich nicht weiter.
das formular forder ich aus dem bookmark mit folgendem befehl an:
Code: Alles auswählen
{% render_comment_form for bookmarks.sharedbookmark shared_bookmark.id %}
grüße
robert