Wednesday, March 1, 2017

Re: django-mongo-angularJs

Can you explain why using mongodb would be better than any SQL database ?

Django have models, which make abstraction of the database. It's
really nice for most usage, saving plenty of time and trouble most of
the time.

These models have no support for mongodb and as far as I know, nothing
will happen soon. Using mongodb means you will have to take care of
the database layer by yourself.

If you are willing to drop the mongodb requirement, django provide a
user class which can login and log out:
https://docs.djangoproject.com/en/1.10/topics/auth/

Saving text from a user is super easy with generic class based biew:
https://docs.djangoproject.com/en/1.10/topics/class-based-views/generic-editing/#model-forms

Comments are a tiny bit harder, but the previous link give you a start
of an answer with model and request.user

If it's your first django project and you haven't done the tutorial, I
highly recommend it. It will give you all the basic

Don't hesitate to come back if you have more precise question.

2017-03-01 14:40 GMT+01:00 mohamed shawky <shawkymohamed138@gmail.com>:
> am new in django and mongodb
> i want to develop a web app contain some
> feature like log in
> and log out and registration and,
> update profile and post a text and,
> make a comment for this post
> ,, front end working with angularJs
> please help me
> thank you in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscribe@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2d485368-6723-4751-b552-6e3455ae572c%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--

Cordialement, Coues Ludovic
+336 148 743 42

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEuG%2BTZQAusvtJekkeeSn5Bxy%3D_dex4qsy3webPkamx-D7u7CA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment