django-mongonaut icon indicating copy to clipboard operation
django-mongonaut copied to clipboard

Require Auth in Admin Site

Open garrypolley opened this issue 12 years ago • 9 comments

In order for this site to have ultimate usefulness it needs to have some auth around it, in order to use it in a production setting.

I recommend the following apps to achieve this:

  • https://github.com/garrypolley/django_generic_permissions (for permissions)
  • https://github.com/hmarr/mongoengine (for the user)
  • https://github.com/omab/django-social-auth (for authentication)

As a note, I have this working right now locally with some hacky decorator injection.

garrypolley avatar Sep 27 '12 21:09 garrypolley

Pull request have been merged to master for all 3 apps. I'll start working on this for a pull request after https://github.com/pydanny/django-mongonaut/pull/39 has been reviewed and accepted.

garrypolley avatar Oct 01 '12 13:10 garrypolley

hello, i have a question i am new to django and django-mongonaut i install and configure django-mongonaut as the doc says i visit http://127.0.0.1:8000/mongonaut/ and click into User, it says "You do not have permissions to access this content.". what is wrong with it and what should i do? I am looking forward to your replay. excuse me for my poor english. I am a chinese, and there is little doc about django-mongonaut in chinese

wuhuaxu avatar Nov 12 '12 09:11 wuhuaxu

@wuhuaxu,

The intended design of django-mongonaut is that data editors need to be logged in as admin level users. This is to protect data. If you aren't logged in, the current design is you will get the error you reported. Log in as a super user and you should be fine.

Gary's intention on this ticket is to create finer grained permissions for data on django-mongonaut. :-)

Finally, internationalisation of django-mongonaut is something I would like to see happen. Because it runs off mongoengine it will probably be mostly a matter of template enhancements and plugging in gettext files. Once we have that in place, would you consider providing a Chinese language translation?

pydanny avatar Nov 12 '12 18:11 pydanny

of course i would be my pleasuer if i could do something for django-mongonaut I don't solve the problem because I am in a emergency project. our group decide use mysql instead of mongodb because of lacking of document and I didn't solve the problem in time. But I will dig into django and mongoengine. Again, excuse me for my pool english. If I could do any help, just tell me

wuhuaxu avatar Nov 13 '12 00:11 wuhuaxu

@garrypolley @pydanny

Hello, django-mongonaut is really a great admin tool for mongoengine database on django! Good work Daniel! and your example contribution on this was very much valuable Garry. However, I can see this ticket was opened here 6 months ago and I was wondering if there was any progress or advancement with this issue ? Could you please give an update over this please ? Or is it no more planned ?

neodark avatar Mar 17 '13 18:03 neodark

@neodark, I can't speak for @garrypolley but none of the work I'm doing touches on MongoDB, so I just don't have the bandwidth for it. Once we get the final of http://django.2scoops.org done this might change.

pydanny avatar Mar 20 '13 22:03 pydanny

I'm in a similar boat to @pydanny on this right now. Between getting married in June, working full time, and doing other open source stuff it's hard to keep up here as well.

I'm hoping once the wedding planning dies down I can get to this in the next few weeks.

garrypolley avatar Mar 20 '13 22:03 garrypolley

@pydanny : ok thanks for the information :) . By the way your book looks interesting, will have to check that. @garrypolley : Congrats for your marriage plans! Great, so we may see you back when you have free time.

Thanks to both of you for the quick reply.

neodark avatar Mar 21 '13 08:03 neodark

I faced an "You do not have permissions to access this content."
error too, i have done all install instructions from http://django-mongonaut.readthedocs.org/en/latest/installation.html but i dont see any login form

GraphGrailAi avatar Mar 12 '14 17:03 GraphGrailAi