

# debugging #

```sh
./manage.py test webapp.tests.models
```


# inisialisasi #

```sh
python3 -m venv ./.venv3
source ./.venv3/bin/activate

pip3 install --requirement ./pip-requirements.txt
pip3 install --requirement ./pip-requirements.txt --upgrade

django-admin startproject webapp ./

mkdir ./assets
mkdir ./webapp/templates

yarn upgrade
yarn autoclean --force

yarn run css # deps: sass,csso; #
yarn run js # deps: browserify,google-closure-compiler; #

./manage.py runserver 9000
./manage.py inspectdb

find ./webapp/ -type d -regex ".*/__pycache__$"
find ./webapp/ -type d -regex ".*/__pycache__$" -exec rm -r {} \;
```

# wsgi #
```sh
sudo chown $USER:www-data ./assets/
sudo chown $USER:www-data ./assets/resources/
sudo chmod -R g+rw ./assets/
sudo chmod -R g+rw ./assets/resources
```

# server #

```sh
# ssh #
tail -f /var/log/apache2/error.log
ssh-keygen -t rsa -b 4096 -C "efile@dogiyai"
sudo chown www-data:www-data ~/files/
sudo chown www-data:www-data /var/www/smf-python/assets/
sudo chown www-data:www-data /var/www/smf-python/assets/resources/
sudo chmod -R g+rw /var/www/smf-python/assets/
sudo chmod -R g+rw /var/www/smf-python/assets/resources/
sudo chmod -R u+rw,g+rw ~/files/
```

# referensi #

<http://repository.dinamika.ac.id/id/eprint/2796/1/14410100181-2016-COMPLETE.pdf>
<https://ijns.org/journal/index.php/ijns/article/viewFile/1336/1324>
<http://manajementos.blogspot.com/2010/10/sistem-manajemen-file.html>
<https://www.neliti.com/publications/173025/aplikasi-manajemen-file-berbasis-web-untuk-monitoring-status-kegiatan>
<https://stackoverflow.com/q/2648664/3036312>
<https://stackoverflow.com/q/19212766/3036312>
<https://serverfault.com/q/162431>
<https://docs.djangoproject.com/en/3.0/ref/files/uploads/>
(sequences)
<https://stackoverflow.com/a/36960478>
<https://stackoverflow.com/a/11856489>
