Why am i here

This commit is contained in:
Praneeth Bhandaru 2020-12-12 22:22:14 -05:00
parent 652b0bc856
commit 59cfbf50d4
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1,6 @@
from django.contrib import admin
from .models import *
admin.site.register(Profile)
admin.site.register(Classroom)

View File

@ -41,7 +41,7 @@ class Login extends Component {
password: this.state.password,
}),
};
fetch("/api/auth/token/login", requestOptions)
fetch("/api/auth/token/login/", requestOptions)
.then((response) => {console.log(response); return response.json();})
.then((data) => console.log(data));
}