浏览代码

fixed bugs

Nastya 1 年之前
父节点
当前提交
b55f908b06
共有 3 个文件被更改,包括 10 次插入6 次删除
  1. 7 3
      README.md
  2. 1 1
      core/settings.py
  3. 2 2
      install_win.sh

+ 7 - 3
README.md

@@ -36,7 +36,7 @@ STATIC_URL = '/static/'
 STATICFILES_DIRS = [BASE_DIR / "SharixAdmin/static/", BASE_DIR / "tickets/static/"]
 STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
 ```
-3. Run a **install.sh**
+3. Run a **install_unix.sh** if you have Linux or if you have Windows run a **install_win.sh**
 4. The system will prompt you to create a superuser
 ```
 #Example
@@ -45,12 +45,16 @@ admin
 pa$$w0rd
 pa$$w0rd
 ```
-5. Set up the **bin/butler.sh** file with valid paths
+5. Start test the server:
+```
+python manage.py runserver 8000
+```
+6. Set up the **bin/butler.sh** file with valid paths
 
 ```bash
 #!/bin/bash
 cd /path/to/project
 exec /path/to/project/env/bin/gunicorn core.wsgi:application -c core/conf_gunicorn.py
 ```
-6. It remains to configure Nginx conf and start the daemon
+7. It remains to configure Nginx conf and start the daemon
 

+ 1 - 1
core/settings.py

@@ -133,7 +133,7 @@ USE_TZ = True
 # https://docs.djangoproject.com/en/4.1/howto/static-files/
 
 STATIC_URL = '/static/'
-STATICFILES_DIRS = [os.path.join(BASE_DIR, "core", "static", "/static/")]
+STATICFILES_DIRS = [os.path.join(BASE_DIR, "butler/static")]
 STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
 
 MEDIA_ROOT = os.path.join(BASE_DIR, "media")

+ 2 - 2
install_win.sh

@@ -1,13 +1,13 @@
 #bush install.sh
 python -m venv env
 
-source env/Scripts/activate
+env/Scripts/activate
 
 python -m pip install -U pip
 
 pip install -r requirements.txt
 
-python manage.py makemigrations
+python manage.py makemigrations butler
 
 python manage.py migrate