diff --git a/KeRS/urls.py b/KeRS/urls.py index 06c0f77..5407fb3 100644 --- a/KeRS/urls.py +++ b/KeRS/urls.py @@ -20,4 +20,5 @@ urlpatterns = [ path('', include('events.urls')), path('admin/', admin.site.urls), path('login/zeus/', include('oauth.urls')), + path('user/', include('users.urls')) ] diff --git a/oauth/urls.py b/oauth/urls.py index e36421a..5664e30 100644 --- a/oauth/urls.py +++ b/oauth/urls.py @@ -1,8 +1 @@ -from django.urls import path - -from . import views - -urlpatterns = [ - path('register', views.register), - path('authorized', views.register_callback), -] +git diff --git a/requirements.txt b/requirements.txt index 2ad0293..e5e565f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +amqp==2.6.0 asgiref==3.2.10 billiard==3.6.3.0 celery==4.4.6 diff --git a/users/templates/profile.html b/users/templates/profile.html new file mode 100644 index 0000000..3a9856c --- /dev/null +++ b/users/templates/profile.html @@ -0,0 +1,10 @@ + + + + + Profile + + + + + diff --git a/users/urls.py b/users/urls.py new file mode 100644 index 0000000..88d0fbc --- /dev/null +++ b/users/urls.py @@ -0,0 +1,7 @@ +from django.urls import path + +from . import views + +urlpatterns = [ + path('profile', views.profile), +] diff --git a/users/views.py b/users/views.py new file mode 100644 index 0000000..a1b0218 --- /dev/null +++ b/users/views.py @@ -0,0 +1,6 @@ +from django.http import HttpResponse +from django.shortcuts import render + + +def profile(request): + render(request, "profile.html", {"username": request.user.username})