Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
ce8fa577
Commit
ce8fa577
authored
Apr 11, 2018
by
Maël Kervella
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cache for about view
parent
001728ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
re2o/views.py
re2o/views.py
+5
-0
No files found.
re2o/views.py
View file @
ce8fa577
...
...
@@ -35,13 +35,17 @@ from reversion.models import Version
from
django.contrib
import
messages
from
django.conf
import
settings
from
django.utils.translation
import
ugettext
as
_
from
django.views.decorators.cache
import
cache_page
import
git
import
os
import
time
from
itertools
import
chain
from
preferences.models
import
Service
from
preferences.models
import
OptionalUser
,
GeneralOption
,
AssoOption
import
users
,
preferences
,
cotisations
,
topologie
,
machines
from
.utils
import
re2o_paginator
from
.settings
import
BASE_DIR
,
INSTALLED_APPS
,
MIDDLEWARE_CLASSES
from
.contributors
import
CONTRIBUTORS
...
...
@@ -163,6 +167,7 @@ def history(request, application, object_name, object_id):
)
@
cache_page
(
7
*
24
*
60
*
60
)
def
about_page
(
request
):
option
=
AssoOption
.
objects
.
get
()
git_info_contributors
=
CONTRIBUTORS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment