Giter VIP home page Giter VIP logo

Comments (9)

mateusz-sikora avatar mateusz-sikora commented on September 17, 2024 1

@ThomasGrzybowski Are you sure you are sending POST request to correct url?

You can also try python manage.py show_urls command from django extensions and make sure you have your urls configured properly.

from django-rest-auth.

SiddharthMantri avatar SiddharthMantri commented on September 17, 2024

Facing the same issue. What I am able to figure out is that the /registration/ api doesn't exist in rest_auth.urls. Going through the docs here: http://django-rest-auth.readthedocs.org/en/latest/api_endpoints.html#registration it seems that using a custom signup form would be the better thing to do.

from django-rest-auth.

ThomasGrzybowski avatar ThomasGrzybowski commented on September 17, 2024

The file "../lib/python3.2/site-packages/allauth/account/urls.py" has the code:
urlpatterns = patterns(
"",
url(r"^signup/$", views.signup, name="account_signup"),

But I'm not sure how to expose the "/signup/" api url for use. It would be helpful if this was implemented as part of the django-rest-auth distribution :-)

from django-rest-auth.

mateusz-sikora avatar mateusz-sikora commented on September 17, 2024

But signup API is already exposed in rest_auth.registration app. Please see documentation http://django-rest-auth.readthedocs.org/en/latest/installation.html#registration-optional

If it doesn't help, please try out our demo project. This should be also very helpful http://django-rest-auth.readthedocs.org/en/latest/demo.html

from django-rest-auth.

mateusz-sikora avatar mateusz-sikora commented on September 17, 2024

@ThomasGrzybowski Did you figure out what was causing your issue? Was it improper configuration or something else?

from django-rest-auth.

ThomasGrzybowski avatar ThomasGrzybowski commented on September 17, 2024

The demo works fine with the /signup/ url. From the documentation I was
expecting to use /register/ for use with the angular-django-registration-auth
client.

From what I can tell, angular-django-registration-auth does not yet support
/signup/.

Thanks for your support,
Tom

On Wed, Mar 18, 2015 at 9:22 AM, Mateusz Sikora [email protected]
wrote:

@ThomasGrzybowski https://github.com/ThomasGrzybowski Did you figure
out what was causing your issue? Was it improper configuration or something
else?


Reply to this email directly or view it on GitHub
#57 (comment)
.

from django-rest-auth.

mateusz-sikora avatar mateusz-sikora commented on September 17, 2024

I'm confused. I think you are mixing up two urls. /signup/ from demo project is for serving template with signup form and inside this template you can find a form which send a POST request to /rest-auth/registration/ where django-rest-auth registration is handled.

Here are all urls from demo project https://github.com/Tivix/django-rest-auth/blob/master/demo/demo/urls.py

In my opinion if you still have this issue:

But when I attempt to use the /registration/ api url "http://localhost:8000/rest-auth/registration/", I get HTTP 405 METHOD NOT ALLOWED

then I think you still have improper url configuration and it's not an issue in django-rest-auth.

from django-rest-auth.

pravin-d avatar pravin-d commented on September 17, 2024

@ThomasGrzybowski Check this link out this Not sure if this is the case. The user is actually registered but you get a traceback error

from django-rest-auth.

kimutaiRop avatar kimutaiRop commented on September 17, 2024

I think this issue was closed even b4 it was solved I have the same issue using react and django, when i signup with rest-framework registration then it works but if i use axios to post data to django from localhost:8000 then it gives error Forbidden: /rest-auth/registration/
but using localhost:3000 which is the pure react with exact same code the user is registered, i came to believe that at the localhost:8000 django is trying to get the session key that is not suppose to even be getting since my authentication is suppose to be using token authentication
if this issue is to be delt with, someone to try using the restauth with one page app like react for front end under the django server port 8000 and see the error they are getting

from django-rest-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.