Comments (9)
@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.
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.
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.
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.
@ThomasGrzybowski Did you figure out what was causing your issue? Was it improper configuration or something else?
from django-rest-auth.
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.
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.
@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.
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)
- Password Reset Confirm Expect parameter which is not in email HOT 1
- TEMPLATE DOES NOT EXIST
- Option to just need one password field for new account / reset/change password. HOT 2
- Can't login without email even though it's supposed to be optional
- Django and react login with google HOT 2
- TypeError: 'PhoneNumber' object is not subscriptable
- Deprectated import ugettext_lazy from django.utils.translation HOT 1
- ConnectionRefusedError: Registration endpoint response
- Update for Django 4.0 HOT 6
- Reverse for 'password_reset_confirm' not found. 'password_reset_confirm' is not a valid view function or pattern name. HOT 8
- Wrong response on using login without verifying the user HOT 1
- `LogoutView`'s non-compliance with `drf-spectacular`
- ImportError: cannot import name 'url' from 'django.conf.urls' HOT 6
- The package doesn't work with django 4.0.*
- The package doesn't work with django 4.0.* HOT 1
- The package doesn't work with django 4.0
- The package doesn't work with django 4.0.*
- ImproperlyConfigured at /api/v1/auth/registration/account-email-verification-sent/
- The package doesn't work with Django from 3.12
- Failed to run with the lates allauth lib HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-rest-auth.