장고에 대한 테스트 환경이 있습니다. 파이썬 3.5.2를 "로컬"pyenv
설치에서 실행 중입니다. 나는 장고를 가지고있다. 1.10.2. 어제 등록 플러그 인 allauth
을 발견했지만 그걸로 놀았지만 방해가되었습니다.Django Allauth and urls
내 사이트는 "dev.my.domain.com"입니다. 이 사이트의 프로덕션 버전에 대한 "공개"정보가 없도록하려는 것입니다. 프로덕션 버전은 "members.my.domain.com"과 같이 호출됩니다. 그래서, "allauth"플러그인이 모든 비/adomn 인바운드 요청에 대해 인증을 확인할 수 있는지 궁금합니다.
- dev.my.domain.com
- dev.my.domain.com/foo
- dev.my.domain.com/foo/../ :
그래서,에 요청 바/...
모두 승인을 받아야합니다. 그렇지 않다면 "allauth"가 로그인/가입 페이지로 리다이렉트 할 것이라고 가정합니다.
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^$', include('allauth.urls')),
url(r'^admin/', admin.site.urls),
]
하지만 페이지에 폭탄 오류와 DEBUG
메시지를 찾을 수 없습니다 것을 : 나는 나의 무지를 숙이고 다시 갔다
Using the URLconf defined in Members.urls, Django tried these URL patterns, in this order:
^$^^signup/$ [name='account_signup']
^$^^login/$ [name='account_login']
^$^^logout/$ [name='account_logout']
^$^^password/change/$ [name='account_change_password']
^$^^password/set/$ [name='account_set_password']
^$^^inactive/$ [name='account_inactive']
^$^^email/$ [name='account_email']
^$^^confirm-email/$ [name='account_email_verification_sent']
^$^^confirm-email/(?P<key>[-:\w]+)/$ [name='account_confirm_email']
^$^^password/reset/$ [name='account_reset_password']
^$^^password/reset/done/$ [name='account_reset_password_done']
^$^^password/reset/key/(?P<uidb36>[0-9A-Za-z]+)-(?P<key>.+)/$ [name='account_reset_password_from_key']
^$^^password/reset/key/done/$ [name='account_reset_password_from_key_done']
^$ ^social/
^$ ^google/
^$ ^facebook/
^$ ^facebook/login/token/$ [name='facebook_login_by_token']
^admin/
The current URL, , didn't match any of these.
을
나는대로 Members/urls.py
파일을 설정 시도 allauth 문서 및 기본값 :
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
url(r'^accounts/', include('allauth.urls')),
url(r'^admin/', admin.site.urls),
]
설정을 사용했습니다. (210)
하지만 찾을 수 없음 페이지와 그 또한 폭탄과 다른 메시지가 :
Using the URLconf defined in Members.urls, Django tried these URL patterns, in this order:
^accounts/
^admin/
The current URL, , didn't match any of these.
나는 "allauth는"제대로 된 설치를하지만 실종 무언가의 나머지 부분을 생각합니다.
아이디어가 있으십니까?
흠, 'allauth'가 기본보기를 만드는 데 필요하다고 제안 하시겠습니까? 문서는 그것을 암시하는 것처럼 보이지 않지만 올바르게 읽을 수는 없습니다. –
당신이 보는 견해는 꽤 시범입니다 - 당신이 본 것처럼 그들은 실제 현장에서 실제로 사용 가능하지 않습니다. 당신은 당신의 플레이에 platfom을 삽입하기 위해 라이브러리를 사용할 필요가 있습니다. – idik
그래,하지만 내 문제는 샘플보기조차 얻지 못하는 것입니다. URL 패턴에 대한 페이지 및 오류 메시지가 표시되지 않습니다. –