Update urls
This commit is contained in:
parent
8c40d3d4c1
commit
53393300b2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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')),
|
||||
|
||||
|
||||
]
|
BIN
db.sqlite3
BIN
db.sqlite3
Binary file not shown.
71
guide.txt
Normal file
71
guide.txt
Normal 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>
|
Loading…
Reference in New Issue
Block a user