Server side of an application of an Aircraft Technical Log
Project description
Atlantic
This program is the sever side of the Atlantic app. It gives you a restful api.
Installation on debian 10 (or ubuntu 20.04) for production
The recommended way to install it is to use a virtual environment.
-
Install pipx, apache2, module wsgi pour apache2
apt install pipx apache2 libapache2-mod-wsgi
-
If your root user, create a user and log it
adduser username su - username
-
Install atlantic_server
pipx install atlantic_server cd atlantic_server
-
Open settings.py and adjust parameters
- Enter a secret key to SECRET_KEY
- Change DEBUG to False
- Change MEDIA_ROOT to an url that points to an entry that apache2 serves (see web client side of the application)
- save and close the file
-
Configure Django app
./manage.py makemigrations atl ./manage.py migrate ./manage.py collectstatic ./manage.py createsuperuser
-
Configure Apache2
- Return to root user
exit
- Edit a new file
nano /etc/apache2/site-available/atlantic.conf
- Paste in following code
<VirtualHost *:80> <Directory /home/username/atlantic_server> <Files wsgi.py> Require all granted </Files> </Directory> WSGIPassAuthorization On WSGIDaemonProcess atl python-home=/home/username python-path=/home/username WSGIProcessGroup atl WSGIScriptAlias / /home/username/atlantic_server/wsgi.py </VirtualHost>
- Save and close file
- Return to root user
-
Enabled site for apache
a2dissite * a2ensite atlantic systemctl reload apache2
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
atlantic_server-0.3.2.tar.gz
(14.4 kB
view hashes)
Built Distribution
Close
Hashes for atlantic_server-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fd5420264ed395a0408e4809032e2602df6bf058d091f45a82c1040b91f06a0 |
|
MD5 | 6415cf3a552f6d0f9190fc2708556ebd |
|
BLAKE2b-256 | 42270febd7c7f623b6e7723ffeab8eae592b11a0719632a92a413519aa150c14 |