Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
energy
bmon
Commits
f78f3c00
Commit
f78f3c00
authored
Feb 10, 2018
by
Alan Mitchell
Browse files
Merge branch 'master' into highres
parents
3186e9de
63ca123e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
bmon/settings_common.py
bmon/settings_common.py
+0
-2
bmsapp/views.py
bmsapp/views.py
+5
-5
No files found.
bmon/settings_common.py
View file @
f78f3c00
...
...
@@ -146,5 +146,3 @@ LOGGING = {
},
}
}
LOGIN_URL
=
'/admin/login/'
bmsapp/views.py
View file @
f78f3c00
...
...
@@ -316,7 +316,7 @@ def get_readings(request, reading_id):
return
HttpResponse
(
json
.
dumps
(
result
),
content_type
=
"application/json"
)
@
login_required
@
login_required
(
login_url
=
'../admin/login/'
)
def
show_log
(
request
):
'''
Returns the application's log file, without formatting.
...
...
@@ -359,7 +359,7 @@ def map_json(request):
return
HttpResponse
(
json
.
dumps
(
ret
),
content_type
=
"application/json"
)
@
login_required
@
login_required
(
login_url
=
'../admin/login/'
)
def
ecobee_auth
(
request
):
"""Used to generated a form so that a System Admin can obtain access keys
for reading data from the Ecobee thermostat server.
...
...
@@ -379,7 +379,7 @@ def ecobee_auth(request):
ctx
.
update
({
'success'
:
success
,
'access_token'
:
access_token
,
'refresh_token'
:
refresh_token
})
return
render_to_response
(
'bmsapp/ecobee_auth_result.html'
,
ctx
)
@
login_required
@
login_required
(
login_url
=
'../admin/login/'
)
def
unassigned_sensors
(
request
):
"""Shows sensors that are in the Reading Database but not assigned to a building.
"""
...
...
@@ -416,7 +416,7 @@ def unassigned_sensors(request):
ctx
.
update
({
'sensor_list'
:
sensor_list
})
return
render_to_response
(
'bmsapp/unassigned-sensors.html'
,
ctx
)
@
login_required
@
login_required
(
login_url
=
'../admin/login/'
)
def
backup_reading_db
(
request
):
"""Causes a backup of the sensor reading database to occur.
"""
...
...
@@ -430,7 +430,7 @@ def wildcard(request, template_name):
'''
return
render_to_response
(
'bmsapp/%s.html'
%
template_name
,
base_context
())
@
login_required
@
login_required
(
login_url
=
'../admin/login/'
)
def
password_change_done
(
request
):
return
render_to_response
(
'registration/password_change_done.html'
,
{
'user'
:
request
.
user
})
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