diff --git a/konova/sub_settings/django_settings.py b/konova/sub_settings/django_settings.py index 7f54d48f..20b28fa8 100644 --- a/konova/sub_settings/django_settings.py +++ b/konova/sub_settings/django_settings.py @@ -62,6 +62,7 @@ INSTALLED_APPS = [ 'intervention', 'organisation', 'news', + 'user', ] if DEBUG: INSTALLED_APPS += [ diff --git a/konova/urls.py b/konova/urls.py index 96a0de04..62d72b7e 100644 --- a/konova/urls.py +++ b/konova/urls.py @@ -33,7 +33,7 @@ urlpatterns = [ path('eco-account/', include("intervention.urls")), #ToDo path('ema/', include("intervention.urls")), #ToDo path('organisation/', include("organisation.urls")), - path('user/', include("intervention.urls")), #ToDo + path('user/', include("user.urls")), path('news/', include("news.urls")), # Autocomplete paths diff --git a/templates/navbar.html b/templates/navbar.html index d0930c82..7d43b3f2 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -53,7 +53,7 @@ {{ user.username }}
diff --git a/user/__init__.py b/user/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/user/admin.py b/user/admin.py new file mode 100644 index 00000000..8c38f3f3 --- /dev/null +++ b/user/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/user/apps.py b/user/apps.py new file mode 100644 index 00000000..35048d48 --- /dev/null +++ b/user/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class UserConfig(AppConfig): + name = 'user' diff --git a/user/models.py b/user/models.py new file mode 100644 index 00000000..71a83623 --- /dev/null +++ b/user/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/user/templates/user/index.html b/user/templates/user/index.html new file mode 100644 index 00000000..217f18cf --- /dev/null +++ b/user/templates/user/index.html @@ -0,0 +1,22 @@ +{% extends 'base.html' %} +{% load i18n %} + +{% block body %} +{% trans 'Username' %} | +{{user.username}} | +
---|---|
{% trans 'Name' %} | +{{user.first_name}} {{user.last_name}} | +