diff --git a/bikeshop_project/assets/js/components/SignIn.jsx b/bikeshop_project/assets/js/components/SignIn.jsx index 8877c44..6ea16a1 100644 --- a/bikeshop_project/assets/js/components/SignIn.jsx +++ b/bikeshop_project/assets/js/components/SignIn.jsx @@ -24,7 +24,7 @@ export default class SignIn extends React.Component { } componentDidMount () { - fetch('//bikeshop.local/member/signin/') + fetch('/members/signin/') .then((response) => { return response.json() }) @@ -49,7 +49,7 @@ export default class SignIn extends React.Component { handleUpdate (text, dataSource) { const self = this; self.setState({searchText: text}) - fetch(`//bikeshop.local/member/search/${text}/`) + fetch(`/members/search/${text}/`) .then((response) => { if (response.status === 200) return response.json(); @@ -74,7 +74,7 @@ export default class SignIn extends React.Component { const member = this.state.signOn.member; if (!this.state.signedIn.find((signedInMember) => {return signedInMember.id === member.id})) { - fetch('//bikeshop.local/member/signin/', { + fetch('/members/signin/', { method: 'post', body: `id=${member.id}&purpose=${purpose}`, headers: { diff --git a/bikeshop_project/bikeshop/urls.py b/bikeshop_project/bikeshop/urls.py index b7501b1..f45ed72 100644 --- a/bikeshop_project/bikeshop/urls.py +++ b/bikeshop_project/bikeshop/urls.py @@ -26,7 +26,7 @@ urlpatterns = [ url(r'^', include(core_urls)), url(r'^login/', login, {'template_name': 'login.html'}, name='login'), url(r'^logout/', logout_then_login, name='logout'), - url(r'^member/', include(member_urls)), + url(r'^members/', include(member_urls)), url(r'^admin/', admin.site.urls), ]