-
Get API key from "Google CloudVision".
-
rename file.
$ cd urlreader/results
$ mv sample_APIkey.json APIkey.json
- write on the file for "urlreader/results/APIkey.json".
{
"APIkey": "insert your API key"
}
- comment out config.
$ $EDITOR urlreader/settings.py
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ["insert your domain or address."]
~ ~ ~
# STATIC_ROOT = "static"
STATIC_ROOT = "static"
- run your terminal command.
$ pip install -r requirements.txt
$ cd urlreader ; python manage.py collectstatic
$ uwsgi --http :8000 --wsgi-file urlreader/wsgi.py
- test server. (optional)
Do not use when releasing.
$ python manage.py runserver
- Python 3
- Django 2.2.7
- uWSGI