re-add libs, add profile views
This commit is contained in:
parent
29202a528a
commit
f20041d04e
6 changed files with 26 additions and 8 deletions
|
@ -20,4 +20,5 @@ urlpatterns = [
|
||||||
path('', include('events.urls')),
|
path('', include('events.urls')),
|
||||||
path('admin/', admin.site.urls),
|
path('admin/', admin.site.urls),
|
||||||
path('login/zeus/', include('oauth.urls')),
|
path('login/zeus/', include('oauth.urls')),
|
||||||
|
path('user/', include('users.urls'))
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,8 +1 @@
|
||||||
from django.urls import path
|
git
|
||||||
|
|
||||||
from . import views
|
|
||||||
|
|
||||||
urlpatterns = [
|
|
||||||
path('register', views.register),
|
|
||||||
path('authorized', views.register_callback),
|
|
||||||
]
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
amqp==2.6.0
|
||||||
asgiref==3.2.10
|
asgiref==3.2.10
|
||||||
billiard==3.6.3.0
|
billiard==3.6.3.0
|
||||||
celery==4.4.6
|
celery==4.4.6
|
||||||
|
|
10
users/templates/profile.html
Normal file
10
users/templates/profile.html
Normal 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
7
users/urls.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
from django.urls import path
|
||||||
|
|
||||||
|
from . import views
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
path('profile', views.profile),
|
||||||
|
]
|
6
users/views.py
Normal file
6
users/views.py
Normal 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})
|
Loading…
Reference in a new issue