Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
227c31ec
Commit
227c31ec
authored
Jan 13, 2017
by
RyanHerb
Browse files
default.py init_db info message
just a little more info on the init_db form.
parent
dd8ddbc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/controllers/default.py
View file @
227c31ec
...
...
@@ -55,7 +55,7 @@ def logger():
def
init_db
():
if
(
db
(
db
.
auth_user
.
id
>
0
).
count
()
==
0
)
:
return
dict
(
message
=
T
(
'initialise database'
))
return
dict
(
message
=
T
(
'
create admin user and
initialise database'
))
res
=
{
"redirect"
:
"default/user/login"
}
return
gluon
.
contrib
.
simplejson
.
dumps
(
res
,
separators
=
(
','
,
':'
))
...
...
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