Browse Source

Added modules: orders, client, relationship

yobafromstarvvars 2 năm trước cách đây
mục cha
commit
62909d997a
4 tập tin đã thay đổi với 30 bổ sung2 xóa
  1. 2 2
      .gitignore
  2. 26 0
      config.py
  3. 1 0
      install_linux.sh
  4. 1 0
      tickets

+ 2 - 2
.gitignore

@@ -2,8 +2,8 @@
 env/
 venv/
 #module
-tickets/
-metaservicesynced/
+#tickets/
+#metaservicesynced/
 staticfiles/
 core/config.py
 # VSCode

+ 26 - 0
config.py

@@ -0,0 +1,26 @@
+#Create file config.py with this setting or rename this file to config.py
+
+#BASE
+DEBUG=True
+SECRET_KEY='secret-key(absolutely any character)'
+ALLOWED_HOSTS = ['127.0.0.1']
+CSRF_TRUSTED_ORIGINS = []
+
+#DATABSE
+DB_NAME=None
+DB_USER=None
+DB_PASSWORD=None
+DB_HOST=None
+
+#GUNICORN
+BIND = "127.0.0.1:8000"
+WORKERS = 2
+THREADS = 4
+
+#STATIC
+from pathlib import Path
+import os
+BASE_DIR = Path(__file__).resolve().parent.parent
+STATIC_URL = '/static/'
+STATICFILES_DIRS = [BASE_DIR / "SharixAdmin/static/", BASE_DIR / "tickets/static/"]
+STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")

+ 1 - 0
install_linux.sh

@@ -0,0 +1 @@
+Subproject commit a868f682b9aecbdcedf5995fc09b099ef4d42489

+ 1 - 0
tickets

@@ -0,0 +1 @@
+Subproject commit e3ac15959b52e436ecd9fd73819e5487e28f6751