Browse Source

Moved application to the root

master
Johann Schmitz 5 years ago
parent
commit
46cb5ab01d
Signed by: ercpe GPG Key ID: A084064277C501ED
  1. 21
      Makefile
  2. 0
      djunin/__init__.py
  3. 0
      djunin/admin.py
  4. 0
      djunin/forms.py
  5. 0
      djunin/graphs.py
  6. 0
      djunin/management/__init__.py
  7. 0
      djunin/management/commands/__init__.py
  8. 0
      djunin/management/commands/load_munin.py
  9. 0
      djunin/middleware.py
  10. 0
      djunin/migrations/0001_initial.py
  11. 0
      djunin/migrations/0002_auto_20160120_0543.py
  12. 0
      djunin/migrations/0003_auto_20160121_0512.py
  13. 0
      djunin/migrations/0004_auto_20160121_0519.py
  14. 0
      djunin/migrations/0005_datarow_rrdfile.py
  15. 0
      djunin/migrations/0006_auto_20160124_0705.py
  16. 0
      djunin/migrations/0007_auto_20160124_0757.py
  17. 0
      djunin/migrations/0008_auto_20160124_0814.py
  18. 0
      djunin/migrations/0009_auto_20160124_0844.py
  19. 0
      djunin/migrations/0010_auto_20160124_0847.py
  20. 0
      djunin/migrations/0011_datarow_do_graph.py
  21. 0
      djunin/migrations/0012_auto_20160125_0605.py
  22. 0
      djunin/migrations/0013_auto_20160128_0530.py
  23. 2
      djunin/migrations/0014_auto_20160128_0531.py
  24. 0
      djunin/migrations/0015_auto_20160207_1503.py
  25. 0
      djunin/migrations/0016_auto_20160208_0645.py
  26. 0
      djunin/migrations/0017_auto_20160208_0800.py
  27. 0
      djunin/migrations/0018_auto_20160208_0811.py
  28. 0
      djunin/migrations/0019_auto_20160208_0828.py
  29. 0
      djunin/migrations/0020_datarow_extinfo.py
  30. 0
      djunin/migrations/0021_auto_20160508_0421.py
  31. 0
      djunin/migrations/0022_graph_graph_args_rigid.py
  32. 0
      djunin/migrations/0023_auto_20160522_0657.py
  33. 0
      djunin/migrations/0024_auto_20160708_0439.py
  34. 0
      djunin/migrations/__init__.py
  35. 0
      djunin/models/__init__.py
  36. 0
      djunin/models/base.py
  37. 0
      djunin/models/muninobj.py
  38. 0
      djunin/models/permissions.py
  39. 0
      djunin/settings.py
  40. 0
      djunin/static/bootstrap-tokenfield/bootstrap-tokenfield.js
  41. 0
      djunin/static/bootstrap-tokenfield/bootstrap-tokenfield.min.js
  42. 0
      djunin/static/bootstrap-tokenfield/css/bootstrap-tokenfield.css
  43. 0
      djunin/static/bootstrap-tokenfield/css/bootstrap-tokenfield.min.css
  44. 0
      djunin/static/bootstrap-tokenfield/css/tokenfield-typeahead.css
  45. 0
      djunin/static/bootstrap-tokenfield/css/tokenfield-typeahead.min.css
  46. 0
      djunin/static/bootstrap/css/bootstrap-theme.css
  47. 0
      djunin/static/bootstrap/css/bootstrap-theme.css.map
  48. 0
      djunin/static/bootstrap/css/bootstrap-theme.min.css
  49. 0
      djunin/static/bootstrap/css/bootstrap-theme.min.css.map
  50. 0
      djunin/static/bootstrap/css/bootstrap.css
  51. 0
      djunin/static/bootstrap/css/bootstrap.css.map
  52. 0
      djunin/static/bootstrap/css/bootstrap.min.css
  53. 0
      djunin/static/bootstrap/css/bootstrap.min.css.map
  54. 0
      djunin/static/bootstrap/fonts/glyphicons-halflings-regular.eot
  55. 0
      djunin/static/bootstrap/fonts/glyphicons-halflings-regular.svg
  56. 0
      djunin/static/bootstrap/fonts/glyphicons-halflings-regular.ttf
  57. 0
      djunin/static/bootstrap/fonts/glyphicons-halflings-regular.woff
  58. 0
      djunin/static/bootstrap/fonts/glyphicons-halflings-regular.woff2
  59. 0
      djunin/static/bootstrap/js/bootstrap.js
  60. 0
      djunin/static/bootstrap/js/bootstrap.min.js
  61. 0
      djunin/static/bootstrap/js/npm.js
  62. 0
      djunin/static/d3.v3.min.js
  63. 0
      djunin/static/jQuery-Autocomplete/jquery.autocomplete.js
  64. 0
      djunin/static/jQuery-Autocomplete/jquery.autocomplete.min.js
  65. 0
      djunin/static/jQuery-Autocomplete/license.txt
  66. 0
      djunin/static/jquery.min.js
  67. 0
      djunin/static/site.css
  68. 0
      djunin/static/site.js
  69. 0
      djunin/templates/dashboard.html
  70. 0
      djunin/templates/djunin/graph.html
  71. 0
      djunin/templates/djunin/graph_list.html
  72. 0
      djunin/templates/djunin/management/_template.html
  73. 0
      djunin/templates/djunin/management/index.html
  74. 0
      djunin/templates/djunin/management/permissions.html
  75. 0
      djunin/templates/djunin/management/update.html
  76. 0
      djunin/templates/djunin/node_list.html
  77. 0
      djunin/templates/not_found.html
  78. 0
      djunin/templates/registration/login.html
  79. 0
      djunin/templates/template.html
  80. 0
      djunin/tests/__init__.py
  81. 0
      djunin/tests/test_updater.py
  82. 0
      djunin/updater.py
  83. 0
      djunin/urls.py
  84. 0
      djunin/views/__init__.py
  85. 0
      djunin/views/base.py
  86. 0
      djunin/views/dashboard.py
  87. 0
      djunin/views/management.py
  88. 0
      djunin/views/nodes.py
  89. 0
      djunin/views/search.py
  90. 0
      djunin/wsgi.py
  91. 0
      manage.py
  92. 60
      test_settings.py

21
Makefile

@ -1,31 +1,36 @@
TARGET?=tests
test_default_python:
cd src && PYTHONPATH="..:." DJANGO_SETTINGS_MODULE="test_settings" python manage.py test -v1
PYTHONPATH="." DJANGO_SETTINGS_MODULE="test_settings" python manage.py test -v1
test_py2:
@echo Executing test with python2
cd src && PYTHONPATH="..:." DJANGO_SETTINGS_MODULE="test_settings" python2 manage.py test
PYTHONPATH="." DJANGO_SETTINGS_MODULE="test_settings" python2 manage.py test
test_py3:
@echo Executing test with python3
cd src && PYTHONPATH="..:." DJANGO_SETTINGS_MODULE="test_settings" python3 manage.py test -v1
PYTHONPATH="." DJANGO_SETTINGS_MODULE="test_settings" python3 manage.py test -v1
test: test_py2 test_py3
compile:
@echo Compiling python code
python -m compileall src/
python -m compileall djunin
compile_optimized:
@echo Compiling python code optimized
python -O -m compileall src/
python -O -m compileall djunin
clean:
find -name "*.py?" -delete
rm -f coverage.xml .coverage testresults.xml
rm -fr htmlcov dist amavisvt.egg-info cache .cache
coverage:
coverage erase
cd src && PYTHONPATH="..:." DJANGO_SETTINGS_MODULE="test_settings" coverage run --source='.' --rcfile ../.coveragerc manage.py test
cd src && coverage xml -i
cd src && coverage report -m
DJANGO_SETTINGS_MODULE="test_settings" coverage run --source='djunin' --rcfile .coveragerc manage.py test
coverage xml -i
coverage report -m
sonar:
# /usr/local/bin/sonar-scanner/bin/sonar-scanner -Dsonar.projectVersion=$(VERSION)

src/djunin/__init__.py → djunin/__init__.py

src/djunin/admin.py → djunin/admin.py

src/djunin/forms.py → djunin/forms.py

src/djunin/graphs.py → djunin/graphs.py

src/djunin/management/__init__.py → djunin/management/__init__.py

src/djunin/management/commands/__init__.py → djunin/management/commands/__init__.py

src/djunin/management/commands/load_munin.py → djunin/management/commands/load_munin.py

src/djunin/middleware.py → djunin/middleware.py

src/djunin/migrations/0001_initial.py → djunin/migrations/0001_initial.py

src/djunin/migrations/0002_auto_20160120_0543.py → djunin/migrations/0002_auto_20160120_0543.py

src/djunin/migrations/0003_auto_20160121_0512.py → djunin/migrations/0003_auto_20160121_0512.py

src/djunin/migrations/0004_auto_20160121_0519.py → djunin/migrations/0004_auto_20160121_0519.py

src/djunin/migrations/0005_datarow_rrdfile.py → djunin/migrations/0005_datarow_rrdfile.py

src/djunin/migrations/0006_auto_20160124_0705.py → djunin/migrations/0006_auto_20160124_0705.py

src/djunin/migrations/0007_auto_20160124_0757.py → djunin/migrations/0007_auto_20160124_0757.py

src/djunin/migrations/0008_auto_20160124_0814.py → djunin/migrations/0008_auto_20160124_0814.py

src/djunin/migrations/0009_auto_20160124_0844.py → djunin/migrations/0009_auto_20160124_0844.py

src/djunin/migrations/0010_auto_20160124_0847.py → djunin/migrations/0010_auto_20160124_0847.py

src/djunin/migrations/0011_datarow_do_graph.py → djunin/migrations/0011_datarow_do_graph.py

src/djunin/migrations/0012_auto_20160125_0605.py → djunin/migrations/0012_auto_20160125_0605.py

src/djunin/migrations/0013_auto_20160128_0530.py → djunin/migrations/0013_auto_20160128_0530.py

src/djunin/migrations/0014_auto_20160128_0531.py → djunin/migrations/0014_auto_20160128_0531.py

@ -15,7 +15,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='datarow',
name='graph_scale',
field=models.BooleanField(default=2),
field=models.BooleanField(default=True),
preserve_default=False,
),
]

src/djunin/migrations/0015_auto_20160207_1503.py → djunin/migrations/0015_auto_20160207_1503.py

src/djunin/migrations/0016_auto_20160208_0645.py → djunin/migrations/0016_auto_20160208_0645.py

src/djunin/migrations/0017_auto_20160208_0800.py → djunin/migrations/0017_auto_20160208_0800.py

src/djunin/migrations/0018_auto_20160208_0811.py → djunin/migrations/0018_auto_20160208_0811.py

src/djunin/migrations/0019_auto_20160208_0828.py → djunin/migrations/0019_auto_20160208_0828.py

src/djunin/migrations/0020_datarow_extinfo.py → djunin/migrations/0020_datarow_extinfo.py

src/djunin/migrations/0021_auto_20160508_0421.py → djunin/migrations/0021_auto_20160508_0421.py

src/djunin/migrations/0022_graph_graph_args_rigid.py → djunin/migrations/0022_graph_graph_args_rigid.py

src/djunin/migrations/0023_auto_20160522_0657.py → djunin/migrations/0023_auto_20160522_0657.py

src/djunin/migrations/0024_auto_20160708_0439.py → djunin/migrations/0024_auto_20160708_0439.py

src/djunin/migrations/__init__.py → djunin/migrations/__init__.py

src/djunin/models/__init__.py → djunin/models/__init__.py

src/djunin/models/base.py → djunin/models/base.py

src/djunin/models/muninobj.py → djunin/models/muninobj.py

src/djunin/models/permissions.py → djunin/models/permissions.py

src/djunin/settings.py → djunin/settings.py

src/djunin/static/bootstrap-tokenfield/bootstrap-tokenfield.js → djunin/static/bootstrap-tokenfield/bootstrap-tokenfield.js

src/djunin/static/bootstrap-tokenfield/bootstrap-tokenfield.min.js → djunin/static/bootstrap-tokenfield/bootstrap-tokenfield.min.js

src/djunin/static/bootstrap-tokenfield/css/bootstrap-tokenfield.css → djunin/static/bootstrap-tokenfield/css/bootstrap-tokenfield.css

src/djunin/static/bootstrap-tokenfield/css/bootstrap-tokenfield.min.css → djunin/static/bootstrap-tokenfield/css/bootstrap-tokenfield.min.css

src/djunin/static/bootstrap-tokenfield/css/tokenfield-typeahead.css → djunin/static/bootstrap-tokenfield/css/tokenfield-typeahead.css

src/djunin/static/bootstrap-tokenfield/css/tokenfield-typeahead.min.css → djunin/static/bootstrap-tokenfield/css/tokenfield-typeahead.min.css

src/djunin/static/bootstrap/css/bootstrap-theme.css → djunin/static/bootstrap/css/bootstrap-theme.css

src/djunin/static/bootstrap/css/bootstrap-theme.css.map → djunin/static/bootstrap/css/bootstrap-theme.css.map

src/djunin/static/bootstrap/css/bootstrap-theme.min.css → djunin/static/bootstrap/css/bootstrap-theme.min.css

src/djunin/static/bootstrap/css/bootstrap-theme.min.css.map → djunin/static/bootstrap/css/bootstrap-theme.min.css.map

src/djunin/static/bootstrap/css/bootstrap.css → djunin/static/bootstrap/css/bootstrap.css

src/djunin/static/bootstrap/css/bootstrap.css.map → djunin/static/bootstrap/css/bootstrap.css.map

src/djunin/static/bootstrap/css/bootstrap.min.css → djunin/static/bootstrap/css/bootstrap.min.css

src/djunin/static/bootstrap/css/bootstrap.min.css.map → djunin/static/bootstrap/css/bootstrap.min.css.map

src/djunin/static/bootstrap/fonts/glyphicons-halflings-regular.eot → djunin/static/bootstrap/fonts/glyphicons-halflings-regular.eot

src/djunin/static/bootstrap/fonts/glyphicons-halflings-regular.svg → djunin/static/bootstrap/fonts/glyphicons-halflings-regular.svg

src/djunin/static/bootstrap/fonts/glyphicons-halflings-regular.ttf → djunin/static/bootstrap/fonts/glyphicons-halflings-regular.ttf

src/djunin/static/bootstrap/fonts/glyphicons-halflings-regular.woff → djunin/static/bootstrap/fonts/glyphicons-halflings-regular.woff

src/djunin/static/bootstrap/fonts/glyphicons-halflings-regular.woff2 → djunin/static/bootstrap/fonts/glyphicons-halflings-regular.woff2

src/djunin/static/bootstrap/js/bootstrap.js → djunin/static/bootstrap/js/bootstrap.js

src/djunin/static/bootstrap/js/bootstrap.min.js → djunin/static/bootstrap/js/bootstrap.min.js

src/djunin/static/bootstrap/js/npm.js → djunin/static/bootstrap/js/npm.js

src/djunin/static/d3.v3.min.js → djunin/static/d3.v3.min.js

src/djunin/static/jQuery-Autocomplete/jquery.autocomplete.js → djunin/static/jQuery-Autocomplete/jquery.autocomplete.js

src/djunin/static/jQuery-Autocomplete/jquery.autocomplete.min.js → djunin/static/jQuery-Autocomplete/jquery.autocomplete.min.js

src/djunin/static/jQuery-Autocomplete/license.txt → djunin/static/jQuery-Autocomplete/license.txt

src/djunin/static/jquery.min.js → djunin/static/jquery.min.js

src/djunin/static/site.css → djunin/static/site.css

src/djunin/static/site.js → djunin/static/site.js

src/djunin/templates/dashboard.html → djunin/templates/dashboard.html

src/djunin/templates/djunin/graph.html → djunin/templates/djunin/graph.html

src/djunin/templates/djunin/graph_list.html → djunin/templates/djunin/graph_list.html

src/djunin/templates/djunin/management/_template.html → djunin/templates/djunin/management/_template.html

src/djunin/templates/djunin/management/index.html → djunin/templates/djunin/management/index.html

src/djunin/templates/djunin/management/permissions.html → djunin/templates/djunin/management/permissions.html

src/djunin/templates/djunin/management/update.html → djunin/templates/djunin/management/update.html

src/djunin/templates/djunin/node_list.html → djunin/templates/djunin/node_list.html

src/djunin/templates/not_found.html → djunin/templates/not_found.html

src/djunin/templates/registration/login.html → djunin/templates/registration/login.html

src/djunin/templates/template.html → djunin/templates/template.html

src/djunin/tests/__init__.py → djunin/tests/__init__.py

src/djunin/tests/test_updater.py → djunin/tests/test_updater.py

src/djunin/updater.py → djunin/updater.py

src/djunin/urls.py → djunin/urls.py

src/djunin/views/__init__.py → djunin/views/__init__.py

src/djunin/views/base.py → djunin/views/base.py

src/djunin/views/dashboard.py → djunin/views/dashboard.py

src/djunin/views/management.py → djunin/views/management.py

src/djunin/views/nodes.py → djunin/views/nodes.py

src/djunin/views/search.py → djunin/views/search.py

src/djunin/wsgi.py → djunin/wsgi.py

src/manage.py → manage.py

60
test_settings.py

@ -9,42 +9,42 @@ SECRET_KEY = 'TEST-SECRET-KEY'
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'djunin',
}
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'djunin',
},
}
logging.basicConfig(
level=logging.ERROR,
format='%(asctime)s %(levelname)-7s %(message)s',
level=logging.ERROR,
format='%(asctime)s %(levelname)-7s %(message)s',
)
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'handlers': {
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
'django.db.backends': {
'propagate': False,
},
}
'version': 1,
'disable_existing_loggers': False,
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
}
},
'handlers': {
'mail_admins': {
'level': 'ERROR',
'filters': ['require_debug_false'],
'class': 'django.utils.log.AdminEmailHandler'
}
},
'loggers': {
'django.request': {
'handlers': ['mail_admins'],
'level': 'ERROR',
'propagate': True,
},
'django.db.backends': {
'propagate': False,
},
}
}
MUNIN_DATA_DIR = ''