2018-08-10 08:39:51 -04:00
|
|
|
# Titivillus
|
|
|
|
By popular demand, I'm building a better anonkun. It doesn't do much right now though. Actual results in the decades to come.
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
Python 3.6+
|
2018-08-10 13:06:33 -04:00
|
|
|
PostgreSQL 10.4+
|
2018-08-24 22:54:27 -04:00
|
|
|
Redis 4.0.10+
|
2018-10-12 10:34:57 -04:00
|
|
|
Python packages: `django psycopg2 channels channels_redis jinja2 argon2-cffi bleach requests python-magic django-taggit django-user-messages`
|
2018-08-10 08:39:51 -04:00
|
|
|
|
|
|
|
## Install
|
|
|
|
```
|
|
|
|
$ psql
|
|
|
|
postgres=# CREATE DATABASE "titivillus";
|
|
|
|
postgres=# CREATE USER "titivillus" WITH PASSWORD 'password';
|
|
|
|
postgres=# ALTER ROLE "titivillus" SET client_encoding TO 'utf8';
|
|
|
|
postgres=# ALTER ROLE "titivillus" SET default_transaction_isolation TO 'read committed';
|
|
|
|
postgres=# ALTER ROLE "titivillus" SET timezone TO 'UTC';
|
|
|
|
postgres=# GRANT ALL PRIVILEGES ON DATABASE "titivillus" TO "titivillus";
|
|
|
|
postgres=# \q
|
2018-10-02 11:35:39 -04:00
|
|
|
$ psql titivillus
|
|
|
|
titivillus=# CREATE EXTENSION unaccent;
|
|
|
|
titivillus=# \q
|
2018-08-10 08:39:51 -04:00
|
|
|
```
|
|
|
|
1. Get on the floor
|
|
|
|
2. Walk the dinosaur
|
|
|
|
3. Set `STATIC_ROOT` under `settings.py` appropriately
|
2019-04-15 11:37:02 -04:00
|
|
|
4. Run `python manage.py collectstatic --link`
|
|
|
|
5. Run `python manage.py makemigrations` and `python manage.py migrate`
|
2018-08-10 08:39:51 -04:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
`gunicorn -b localhost:5100 -e SCRIPT_NAME=/titivillus titivillus.wsgi`
|
2018-08-14 20:12:52 -04:00
|
|
|
`daphne -b 0.0.0.0 -p 5100 --root-path=/titivillus titivillus.asgi:application`
|