Closed Greenlamp2 closed 5 years ago
well, i solved it by accident. I've switched the position of the url in the urls.py like this: Before:
from django.conf.urls import url, include
from django.contrib import admin
from django.views.generic import TemplateView
from rocket import endpoints as endpoints_rocket
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^rocket/', include(endpoints_rocket)),
url(r'^', TemplateView.as_view(template_name="index.html"), name='home'),
url(r'^auth/', include('rest_framework_social_oauth2.urls')),
]
After:
from django.conf.urls import url, include
from django.contrib import admin
from django.views.generic import TemplateView
from rocket import endpoints as endpoints_rocket
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^rocket/', include(endpoints_rocket)),
url(r'^auth/', include('rest_framework_social_oauth2.urls')),
url(r'^', TemplateView.as_view(template_name="index.html"), name='home'),
]
If someone know why, i'm waiting your explanation \o/
Hello, i got this error when i try to authenticate myself with Google Auth:
Here's my settings.py, have i done something wrong ? many thanks.