-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from marcanpilami/mag/defaultproject
Added more FK to models
- Loading branch information
Showing
75 changed files
with
760 additions
and
536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
doc | ||
doc | ||
.env/ | ||
.venv/ | ||
env/ | ||
venv/ | ||
.github/ | ||
doc/ | ||
tmp/ | ||
MAGE/local_settings.py | ||
*.pyc | ||
**/Dockerfile* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[FORMAT] | ||
max-line-length=240 | ||
max-line-length=240 | ||
|
||
[MESSAGES CONTROL] | ||
disable=missing-class-docstring,missing-function-docstring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# coding: utf-8 | ||
import os | ||
|
||
BASE_DIR = os.path.dirname(os.path.dirname(__file__)) | ||
MEDIA_ROOT = os.path.join(BASE_DIR, 'deployment/media') | ||
STATIC_ROOT = os.path.join(BASE_DIR, 'deployment/static') | ||
|
||
USE_X_FORWARDED_HOST = True | ||
USE_X_FORWARDED_PORT = True | ||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') | ||
|
||
MIDDLEWARE = [ | ||
'django.middleware.common.CommonMiddleware', | ||
'django.contrib.sessions.middleware.SessionMiddleware', | ||
'whitenoise.middleware.WhiteNoiseMiddleware', | ||
'ref.middleware.DisableCSRF', | ||
'MAGE.project_middleware.ProjectFromProjectIdMiddleware', | ||
'django.contrib.auth.middleware.AuthenticationMiddleware', | ||
'django.contrib.messages.middleware.MessageMiddleware', | ||
'MAGE.force_login_middleware.ForceLoginMiddleware', | ||
] | ||
|
||
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage" | ||
|
||
TIME_ZONE = 'Europe/Paris' | ||
LANGUAGE_CODE = 'fr-fr' | ||
|
||
DEFAULT_PROJECT_ID=os.getenv('MAGE_DEFAULT_PROJECT', None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Development help: model diagrams | ||
####################################### | ||
|
||
These two diagrams are developer helpers. | ||
|
||
.. image:: ./media/scm.png | ||
:alt: a view centered on the main SCM classes | ||
|
||
.. image:: ./media/full.png | ||
:alt: Full schema of all models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
if (! (Test-Path .\html )) | ||
if (! (Test-Path $PSScriptRoot/html )) | ||
{ | ||
mkdir .\html | ||
mkdir $PSScriptRoot/html | ||
} | ||
C:\Python27\Scripts\sphinx-build.exe -a -b html . html | ||
Read-Host # allows to read errors | ||
& sphinx-build.exe -a -b html $PSScriptRoot $PSScriptRoot/html | ||
|
||
# For updating the class diagrams with django_extensions enabled | ||
# python .\manage.py graph_models --pydot -g -o ./doc/media/full.png scm ref | ||
# python .\manage.py graph_models --pydot -g -o ./doc/media/scm.png --include-models InstallableSet,InstallableItem,LogicalComponentVersion,InstallationMethod,Installation,ComponentInstanceConfiguration,LogicalComponentVersion,Application,Project,ComponentInstance,Environment,LogicalComponent,ComponentImplementationClass scm ref |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,5 +38,4 @@ Contents | |
mql | ||
conventions | ||
security | ||
|
||
|
||
diagrams |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.