Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add usersessions_list to sample_deployment #106

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sample_deployment/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sample_deployment/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = "^3.11"
django-allauth-ui = "^1.2.0"
django-allauth-ui = "^1.3.0"
gunicorn = "^22.0.0"
django-allauth = "^0.63.3"
django-widget-tweaks = "^1.5.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
<li>
<a href="{% url "account_reauthenticate" %}">Reauthenticate</a>
</li>
<li>
<a href="{% url "usersessions_list" %}">User Sessions</a>
</li>
<li>
<a href="{% url "account_logout" %}">Logout</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@
<div>
You need to <a class="link" href="{% url "account_login" %}">log in</a> to display social account metadata
</div>
</div>
{% endif %}
{% endif %}
{% endblock content %}
27 changes: 16 additions & 11 deletions sample_deployment/sample_deployment/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,28 @@
# Application definition

INSTALLED_APPS = [
"allauth_ui",
"allauth",
"allauth.account",
"allauth.socialaccount",
"allauth.socialaccount.providers.github",
"allauth.socialaccount.providers.gitlab",
"allauth.usersessions",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.humanize",
"django.contrib.messages",
"whitenoise.runserver_nostatic",
"django.contrib.sessions",
"django.contrib.staticfiles",
"django_browser_reload",
"django_extensions",
"sample_deployment.example",
"allauth_ui",
"allauth",
"allauth.account",
"allauth.socialaccount",
"allauth.socialaccount.providers.github",
"allauth.socialaccount.providers.gitlab",
"widget_tweaks",
"tailwind",
"sample_deployment.theme",
"django_browser_reload",
"slippers",
"tailwind",
"whitenoise.runserver_nostatic",
"widget_tweaks",
]

MIDDLEWARE = [
Expand All @@ -65,6 +67,7 @@
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"allauth.usersessions.middleware.UserSessionsMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"django_browser_reload.middleware.BrowserReloadMiddleware",
Expand Down Expand Up @@ -213,3 +216,5 @@
"level": "INFO",
},
}

USERSESSIONS_TRACK_ACTIVITY = True
Loading