django-mongo-angularJs

39 views
Skip to first unread message

mohamed shawky

unread,
Mar 1, 2017, 8:43:47 AM3/1/17
to Django users
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

ludovic coues

unread,
Mar 1, 2017, 2:19:29 PM3/1/17
to django...@googlegroups.com
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.
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@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

mohamed shawky

unread,
Mar 1, 2017, 3:12:02 PM3/1/17
to Django users
am using mongodb which the project that i work on it deal with mongo  if you can help me thank ou in advance

ludovic coues

unread,
Mar 2, 2017, 5:09:49 AM3/2/17
to django...@googlegroups.com
Sorry, I have no experience with mongodb, I can't help you
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@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/55793627-f615-4073-b30b-7947bd5b5586%40googlegroups.com.

mohamed shawky

unread,
Mar 2, 2017, 8:29:10 AM3/2/17
to Django users
no problem at all 
thanks every where
Reply all
Reply to author
Forward
0 new messages