This commit is contained in:
2018-12-27 13:51:45 +04:00
parent 8109fc7619
commit 2af0503acf
3 changed files with 14 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ numpy = "*"
matplotlib = "*" matplotlib = "*"
scipy = "*" scipy = "*"
django-bootstrap-datepicker-plus = "*" django-bootstrap-datepicker-plus = "*"
django-cors-headers = "*"
[dev-packages] [dev-packages]

10
Pipfile.lock generated
View File

@@ -1,7 +1,7 @@
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "c6a6b8d3ebd478446b8e8800b29555ed874b559625670a9961406e358b897e06" "sha256": "3a6a62bdfa1874ae8aa1cfb34f7a47157976efb3dcf248b10b6953f1a7fa016b"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {
@@ -39,6 +39,14 @@
"index": "pypi", "index": "pypi",
"version": "==3.0.5" "version": "==3.0.5"
}, },
"django-cors-headers": {
"hashes": [
"sha256:5545009c9b233ea7e70da7dbab7cb1c12afa01279895086f98ec243d7eab46fa",
"sha256:c4c2ee97139d18541a1be7d96fe337d1694623816d83f53cb7c00da9b94acae1"
],
"index": "pypi",
"version": "==2.4.0"
},
"kiwisolver": { "kiwisolver": {
"hashes": [ "hashes": [
"sha256:0ee4ed8b3ae8f5f712b0aa9ebd2858b5b232f1b9a96b0943dceb34df2a223bc3", "sha256:0ee4ed8b3ae8f5f712b0aa9ebd2858b5b232f1b9a96b0943dceb34df2a223bc3",

View File

@@ -30,6 +30,7 @@ ALLOWED_HOSTS = ['*']
INSTALLED_APPS = [ INSTALLED_APPS = [
'bootstrap_datepicker_plus', 'bootstrap_datepicker_plus',
'corsheaders',
'web.apps.WebConfig', 'web.apps.WebConfig',
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.auth', 'django.contrib.auth',
@@ -40,6 +41,7 @@ INSTALLED_APPS = [
] ]
MIDDLEWARE = [ MIDDLEWARE = [
'corsheaders.middleware.CorsMiddleware',
'django.middleware.security.SecurityMiddleware', 'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',
@@ -118,3 +120,5 @@ USE_TZ = False
STATIC_URL = '/static/' STATIC_URL = '/static/'
# DATETIME_FORMAT = '' # DATETIME_FORMAT = ''
CORS_ORIGIN_ALLOW_ALL = True