Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
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
humanities
gargantext
Commits
1e6d53b7
Commit
1e6d53b7
authored
Nov 03, 2017
by
sim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CONF] Move django secrets and local settings in gargantext.ini
parent
267d4954
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
3 deletions
+32
-3
Pipfile
Pipfile
+1
-0
Pipfile.lock
Pipfile.lock
+7
-1
gargantext.ini
gargantext.ini
+6
-2
config.py
gargantext/util/config.py
+18
-0
No files found.
Pipfile
View file @
1e6d53b7
...
@@ -20,6 +20,7 @@ SQLAlchemy-Utils = "*"
...
@@ -20,6 +20,7 @@ SQLAlchemy-Utils = "*"
django-celery = "*"
django-celery = "*"
djangorestframework = "*"
djangorestframework = "*"
djangorestframework-jwt = "*"
djangorestframework-jwt = "*"
python-decouple = "*"
[requires]
[requires]
...
...
Pipfile.lock
View file @
1e6d53b7
{
{
"_meta": {
"_meta": {
"hash": {
"hash": {
"sha256": "
812bbbd579361fcd66f99a5fe8a453e712b008fcabd276b4cc803c955a3fc14c
"
"sha256": "
53e18b75e4a0cfdcafd2ff47bd1d6772a5638f975b59fe95f4575e4086f60346
"
},
},
"host-environment-markers": {
"host-environment-markers": {
"implementation_name": "cpython",
"implementation_name": "cpython",
...
@@ -160,6 +160,12 @@
...
@@ -160,6 +160,12 @@
],
],
"version": "==2.6.1"
"version": "==2.6.1"
},
},
"python-decouple": {
"hashes": [
"sha256:1317df14b43efee4337a4aa02914bf004f010cd56d6c4bd894e6474ec8c4fe2d"
],
"version": "==3.1"
},
"pytz": {
"pytz": {
"hashes": [
"hashes": [
"sha256:80af0f3008046b9975242012a985f04c5df1f01eed4ec1633d56cc47a75a6a48",
"sha256:80af0f3008046b9975242012a985f04c5df1f01eed4ec1633d56cc47a75a6a48",
...
...
gargantext.ini
View file @
1e6d53b7
# django.ini file
[django]
[uwsgi]
DEBUG
=
True
SECRET_KEY
=
!%ktkh981)piil1%t5r0g4$^0=uvdafk!=f2x8djxy7_gq(n5%
DB_PASS
=
C8kdcUrAQy66U
[uwsgi]
env
=
DJANGO_SETTINGS_MODULE=gargantext.settings
env
=
DJANGO_SETTINGS_MODULE=gargantext.settings
#module = django.core.handlers.wsgi:WSGIHandler()
#module = django.core.handlers.wsgi:WSGIHandler()
...
...
gargantext/util/config.py
0 → 100644
View file @
1e6d53b7
from
configparser
import
RawConfigParser
from
decouple
import
AutoConfig
,
RepositoryIni
class
GargantextIni
(
RepositoryIni
):
SECTION
=
'django'
def
__init__
(
self
,
source
):
self
.
parser
=
RawConfigParser
()
with
open
(
source
)
as
file_
:
self
.
parser
.
readfp
(
file_
)
class
GargantextConfig
(
AutoConfig
):
SUPPORTED
=
{
'gargantext.ini'
:
GargantextIni
}
config
=
GargantextConfig
(
search_path
=
'.'
)
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