Hi Bhn,
All you have to do is to create a form which uses the blog model like this:
class PostForm(forms.ModelForm):
class Meta:
model = BlogPost
Make sure you use either "fields" or "exclude" to only render the fields
you need.
Then you need a view which will process the form. A simple view that will
except the POST and save the blog post will do.
Just standard Django stuff really. If you tell us more about where you're
stuck perhaps we can help further.
Cheers,
M
P: +61 2 9281 3315
M: +61 415 193775
E: [email protected]
W: www.twoblokeswithapostie.com
On Tue, Mar 31, 2015 at 8:00 PM, Bnh Dc <[email protected]> wrote:
> Hi everybody, I'm new to django and mezzanine.
> I'm doing a project base on this website: http://itrc.hanu.vn and my
> teacher required that the website must allow user to post new aticle from a
> front-end site. i try to use form of quick blog which include in tempalte
> but it didn't work.
> can anyone tell me what should i do?
>
> p/s: sorry for my english.
>
>
> <https://lh3.googleusercontent.com/-utUa6cWzObg/VRphErVrE1I/AAAAAAAABjY/TX3EMhy7vxM/s1600/Capture.PNG>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.