Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CS123-Canteeneo
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
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Willard Torres
CS123-Canteeneo
Commits
b472902a
Commit
b472902a
authored
Oct 23, 2016
by
Willard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move config to separate object
parent
85aa2eff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
__init__.py
canteeneo/__init__.py
+1
-5
config.py
canteeneo/config.py
+8
-0
No files found.
canteeneo/__init__.py
View file @
b472902a
...
@@ -5,11 +5,7 @@ from flask_migrate import Migrate
...
@@ -5,11 +5,7 @@ from flask_migrate import Migrate
from
flask_login
import
LoginManager
from
flask_login
import
LoginManager
app
=
Flask
(
__name__
)
app
=
Flask
(
__name__
)
app
.
config
.
from_object
(
'canteeneo.config.BaseConfig'
)
app
.
config
[
'SECRET_KEY'
]
=
'canteeneo_key'
app
.
config
[
'SQLALCHEMY_DATABASE_URI'
]
=
'mysql+pymysql://root:therootisdead@localhost/canteeneo'
app
.
config
[
'SQLALCHEMY_TRACK_MODIFICATIONS'
]
=
False
app
.
config
[
'UPLOAD_FOLDER'
]
=
os
.
path
.
realpath
(
'.
\\
canteeneo
\\
static
\
uploads'
)
login_manager
=
LoginManager
()
login_manager
=
LoginManager
()
login_manager
.
init_app
(
app
)
login_manager
.
init_app
(
app
)
...
...
canteeneo/config.py
0 → 100644
View file @
b472902a
import
os.path
class
BaseConfig
(
object
):
DEBUG
=
True
SECRET_KEY
=
'canteeneo_key'
SQLALCHEMY_DATABASE_URI
=
'mysql+pymysql://root:therootisdead@localhost/canteeneo'
SQLALCHEMY_TRACK_MODIFICATIONS
=
False
UPLOAD_FOLDER
=
os
.
path
.
realpath
(
'.
\\
canteeneo
\\
static
\
uploads'
)
\ No newline at end of file
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