diff --git a/.gitignore b/.gitignore index 97148ae..804764d 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,7 @@ media # If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/ # in your Git repository. Update and uncomment the following line accordingly. -# /staticfiles/ +staticfiles/ ### Django.Python Stack ### # Byte-compiled / optimized / DLL files @@ -172,4 +172,11 @@ cython_debug/ # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ -# End of https://www.toptal.com/developers/gitignore/api/django \ No newline at end of file +# End of https://www.toptal.com/developers/gitignore/api/django + +#PyCharm +.idea/ + + +#Mac +.DS_Store \ No newline at end of file diff --git a/apps/speedtester/utils/abstract_speedtest.py b/apps/speedtester/utils/abstract_speedtest.py index 6a57228..d4d1d5b 100644 --- a/apps/speedtester/utils/abstract_speedtest.py +++ b/apps/speedtester/utils/abstract_speedtest.py @@ -6,6 +6,7 @@ from loguru import logger # Setup django to be able to access the settings file +import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'refresher_config.settings') django.setup() diff --git a/apps/speedtester/utils/function_methods.py b/apps/speedtester/utils/function_methods.py index d29b7a8..4bff28b 100644 --- a/apps/speedtester/utils/function_methods.py +++ b/apps/speedtester/utils/function_methods.py @@ -21,3 +21,4 @@ def process_speedtest_test(): client = refresher_speedtest.get_client() return speedtest_res, best, servers, client + diff --git a/images/screenshots/refresher-postgres-dashboard.png b/images/screenshots/refresher-postgres-dashboard.png new file mode 100644 index 0000000..ab79308 Binary files /dev/null and b/images/screenshots/refresher-postgres-dashboard.png differ diff --git a/refresher_config/settings.py b/refresher_config/settings.py index ccbabda..f2379ec 100644 --- a/refresher_config/settings.py +++ b/refresher_config/settings.py @@ -59,8 +59,7 @@ TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [os.path.join(BASE_DIR, 'templates')] - , + 'DIRS': [os.path.join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [