Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
0a5908ba
Commit
0a5908ba
authored
Jan 09, 2014
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #436 from xiaohanyu/master
Fix two small code error in examples.
parents
bf593270
2b1f8e0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
auth.py
examples/auth/auth.py
+2
-2
No files found.
examples/auth/auth.py
View file @
0a5908ba
...
@@ -197,8 +197,8 @@ def build_sample_db():
...
@@ -197,8 +197,8 @@ def build_sample_db():
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
# Build a sample db on the fly, if one does not exist yet.
# Build a sample db on the fly, if one does not exist yet.
app_dir
=
o
p
.
realpath
(
os
.
path
.
dirname
(
__file__
))
app_dir
=
o
s
.
path
.
realpath
(
os
.
path
.
dirname
(
__file__
))
database_path
=
o
p
.
join
(
app_dir
,
app
.
config
[
'DATABASE_FILE'
])
database_path
=
o
s
.
path
.
join
(
app_dir
,
app
.
config
[
'DATABASE_FILE'
])
if
not
os
.
path
.
exists
(
database_path
):
if
not
os
.
path
.
exists
(
database_path
):
build_sample_db
()
build_sample_db
()
...
...
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