re-add libs, add profile views

This commit is contained in:
Maxime Bloch 2020-07-22 04:21:29 +02:00
parent 29202a528a
commit f20041d04e
6 changed files with 26 additions and 8 deletions

View file

@ -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'))
]

View file

@ -1,8 +1 @@
from django.urls import path
from . import views
urlpatterns = [
path('register', views.register),
path('authorized', views.register_callback),
]
git

View file

@ -1,3 +1,4 @@
amqp==2.6.0
asgiref==3.2.10
billiard==3.6.3.0
celery==4.4.6

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Profile</title>
</head>
<body>
</body>
</html>

7
users/urls.py Normal file
View file

@ -0,0 +1,7 @@
from django.urls import path
from . import views
urlpatterns = [
path('profile', views.profile),
]

6
users/views.py Normal file
View file

@ -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})