Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
olapy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
olapy
Commits
7bf9cd66
Commit
7bf9cd66
authored
7 years ago
by
mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
random SECRET_KEY
parent
383f319c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
olapy/web/__init__.py
olapy/web/__init__.py
+3
-1
setup.py
setup.py
+2
-2
No files found.
olapy/web/__init__.py
View file @
7bf9cd66
...
@@ -7,7 +7,9 @@ from flask_sqlalchemy import SQLAlchemy
...
@@ -7,7 +7,9 @@ from flask_sqlalchemy import SQLAlchemy
basedir
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
basedir
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
app
=
Flask
(
__name__
)
app
=
Flask
(
__name__
)
app
.
config
[
'SECRET_KEY'
]
=
os
.
environ
[
'SECRET_KEY'
]
# app.config['SECRET_KEY'] = os.environ['SECRET_KEY']
app
.
config
[
'SECRET_KEY'
]
=
os
.
urandom
(
24
)
app
.
config
[
'SQLALCHEMY_DATABASE_URI'
]
=
'sqlite:///'
+
os
.
path
.
join
(
basedir
,
app
.
config
[
'SQLALCHEMY_DATABASE_URI'
]
=
'sqlite:///'
+
os
.
path
.
join
(
basedir
,
'olapy.db'
)
'olapy.db'
)
app
.
config
[
'DEBUG'
]
=
True
app
.
config
[
'DEBUG'
]
=
True
...
...
This diff is collapsed.
Click to expand it.
setup.py
View file @
7bf9cd66
...
@@ -36,8 +36,8 @@ setup(
...
@@ -36,8 +36,8 @@ setup(
# "Topic :: Business intelligence",
# "Topic :: Business intelligence",
],)
],)
# generate and set secret key
#
#
generate and set secret key
os
.
environ
[
"SECRET_KEY"
]
=
os
.
urandom
(
24
).
encode
(
'hex'
)
# os.environ["SECRET_KEY"]
# initiate cubes examples
# initiate cubes examples
if
RUNNING_TOX
:
if
RUNNING_TOX
:
...
...
This diff is collapsed.
Click to expand it.
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