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
2b1f8e0d
Commit
2b1f8e0d
authored
Jan 09, 2014
by
Xiao Hanyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix two small code error in examples.
parent
bf593270
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 @
2b1f8e0d
...
...
@@ -197,8 +197,8 @@ def build_sample_db():
if
__name__
==
'__main__'
:
# Build a sample db on the fly, if one does not exist yet.
app_dir
=
o
p
.
realpath
(
os
.
path
.
dirname
(
__file__
))
database_path
=
o
p
.
join
(
app_dir
,
app
.
config
[
'DATABASE_FILE'
])
app_dir
=
o
s
.
path
.
realpath
(
os
.
path
.
dirname
(
__file__
))
database_path
=
o
s
.
path
.
join
(
app_dir
,
app
.
config
[
'DATABASE_FILE'
])
if
not
os
.
path
.
exists
(
database_path
):
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