Update urls

This commit is contained in:
louai98 2023-11-29 14:21:44 +01:00
parent 8c40d3d4c1
commit 53393300b2
8 changed files with 72 additions and 1 deletions

View File

@ -19,7 +19,7 @@ urlpatterns = [
path('process-files/', views.processFiles, name='process-files'),
#path('api/', include('admin_api.api.urls')),
path('api/', include('data_api.api.urls')),
]

Binary file not shown.

71
guide.txt Normal file
View File

@ -0,0 +1,71 @@
pip install django
pip install django-rest-framework
pip install --upgrade djangorestframework-simplejwt
pip install django-filter
pip install django-cors-headers
pip install elasticsearch
pip install xhtml2pdf
# if error occured
sudo apt install libcairo2-dev pkg-config python3-dev
pip3 install pycairo
# the above command will install pycairo 1.17.1
# then re-install pip install xhtml2pdf
pip install python-docx
pip install PyMuPDF
pip install -U pip setuptools wheel
pip install -U spacy
python -m spacy download en_core_web_sm
<VirtualHost *:8000>
ServerAdmin webmaster@localhost
DocumentRoot /home/ubuntu/IDDRS_API
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /static /home/ubuntu/IDDRS_API/static
<Directory /home/ubuntu/IDDRS_API/static>
Require all granted
</Directory>
<Directory /home/ubuntu/IDDRS_API/iddrs_api>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIScriptAlias / /home/ubuntu/IDDRS_API/iddrs_api/wsgi.py
WSGIDaemonProcess django_app python-path=/home/ubuntu/IDDRS_API python-home=/home/ubuntu/iddrs_venv
WSGIProcessGroup django_app
</VirtualHost>
<VirtualHost *:80>
ServerName 144.217.95.15
DocumentRoot /home/ubuntu/IDDRS_Client/build
ErrorLog /home/ubuntu/IDDRS_Client/log/error.log
CustomLog /home/ubuntu/IDDRS_Client/log/requests.log combined
<Directory /home/ubuntu/IDDRS_Client/build>
AllowOverride all
Require all granted
Options FollowSymlinks
</Directory>
</VirtualHost>
<VirtualHost *:8001>
ServerName 144.217.95.15
DocumentRoot /home/ubuntu/IDDRS_Admin/build
ErrorLog /home/ubuntu/IDDRS_Admin/log/error.log
CustomLog /home/ubuntu/IDDRS_Admin/log/requests.log combined
<Directory /home/ubuntu/IDDRS_Admin/build>
AllowOverride all
Require all granted
Options FollowSymlinks
</Directory>
</VirtualHost>