Skip to content

Commit 46a0f1a

Browse files
authored
Merge pull request #6 from bugov/add-idle-check
Fix rst
2 parents 0cbd57e + 5e8c7ec commit 46a0f1a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Auto logout a user after specific time in Django.
99
Works with Python🐍 ≥ 3.7, Django🌐 ≥ 3.0.
1010

1111
✔️ Installation
12-
----------------
12+
---------------------
1313

1414
.. code:: bash
1515
@@ -33,7 +33,7 @@ Append to `settings` middlewares:
3333
- `django.contrib.messages.middleware.MessageMiddleware`
3434

3535
💤 Logout in case of idle
36-
------------------------
36+
-----------------------------
3737

3838
Logout a user if there are no requests for a long time.
3939

@@ -45,7 +45,7 @@ Add to `settings`:
4545
4646
4747
⌛ Limit session time
48-
--------------------
48+
------------------------
4949

5050
Logout a user after 3600 seconds (hour) from the last login.
5151

@@ -56,7 +56,7 @@ Add to `settings`:
5656
AUTO_LOGOUT = {'SESSION_TIME': 3600}
5757
5858
✉️ Show messages when logging out automatically
59-
------------------------------------------------
59+
-----------------------------------------------------
6060

6161
Set the message that will be displayed after the user automatically logs out of the system:
6262

@@ -84,7 +84,7 @@ It uses `django.contrib.messages`. Don't forget to display messages in templates
8484
See `TEMPLATES` → `OPTIONS` → `context_processors` in your `settings.py` file.
8585

8686
🌈 Combine configurations
87-
------------------------
87+
----------------------------
8888

8989
You can combine previous configurations. For example, you may want to logout a user
9090
in case of downtime (5 minutes or more) and not allow working within one session

django_auto_logout/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.3.0'
1+
__version__ = '0.3.1'

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def read(file_name):
2727
author_email='georgy.bazhukov@gmail.com',
2828
description='Auto logout a user after specific time in Django',
2929
long_description=read('README.rst'),
30+
long_description_content_type='text/x-rst',
3031
url='https://github.com/bugov/django-auto-logout',
3132
packages=find_packages(),
3233
include_package_data=True,

0 commit comments

Comments
 (0)