Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission Error #65

Open
yigitguler opened this issue Feb 16, 2014 · 2 comments
Open

Permission Error #65

yigitguler opened this issue Feb 16, 2014 · 2 comments

Comments

@yigitguler
Copy link

Hi,
I just saw this project and i am very excited about it. But i am unable to make it work until now.

Here is my pip freeze command output:

Django==1.6.2
pymongo==2.3
mongoengine==0.8.7
django-mongonaut==0.2.19

I think that everything is OK here.

I have a custom user model and here is my terminal output

>>> from project.profiles.models import *
>>> u = UserProfile.objects.get(email="[email protected]")
>>> u.is_authenticated()
True
>>> u.is_staff
True
>>> u.is_superuser
True

So my logged-in user has all necessary permissions (Regarding the documentation.)

My Model:

class FBUser(Document):
    app_id = StringField(required=False)
    facebook_id = StringField(required=True)
    facebook_ids = ListField(StringField())

    meta = {'collection': 'friends_of_friends_network'}

My admin file (appname/mongoadmin.py)

FBUser.mongoadmin = MongoAdmin()

When i type http://ubuntu.local:8000/mongonaut/
What i get is a 403 response:
You do not have permissions to access this content.

I read the documentation 5 times, checked the source but unable to find any clue. Do you have any ideas?

Thank you.

@garrypolley
Copy link
Collaborator

Thanks for looking at django-mongonaut.

This may seem like a silly question, but are you logged in to your application locally? It wasn't mentioned in the steps, so I just want to make sure that isn't the case before I delve too deep into a rabbit hole.

@haard
Copy link
Contributor

haard commented Mar 25, 2014

I'm having the same issue; created empty app, set up a few models, a superuser, and mongonaut - but cannot access it, only getting "You do not have permissions to access this content.". Shouldn't mongonaut prompt me for credentials if I'm not already logged in?

Edit: logging in through other means make it work. Still would be nice to have mongonaut trigger and take care of login if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants