diff --git a/README.md b/README.md index 2ace9e1..d588dbf 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ _Внимание_! Только Python 2.7, только PostgreSQL, тольк postgres=# GRANT ALL privileges ON DATABASE fias_db TO phias; postgres=# ALTER USER phias WITH SUPERUSER; postgres=# \q - postgres=# sudo -u phias psql -d fias_db -U phias + sudo -u phias psql -d fias_db -U phias postgres=# CREATE EXTENSION pg_trgm SCHEMA public; ``` diff --git a/aore/config/prod.py b/aore/config/prod.py index 234b98b..10f3ff6 100644 --- a/aore/config/prod.py +++ b/aore/config/prod.py @@ -16,3 +16,5 @@ db_conf.password = "postgres" unrar_config.path = "unrar" folders.temp = "/tmp/py-fias" + +basic.logging = True \ No newline at end of file diff --git a/aore/fias/wordentry.py b/aore/fias/wordentry.py index b4c3aa7..80fced0 100644 --- a/aore/fias/wordentry.py +++ b/aore/fias/wordentry.py @@ -44,7 +44,7 @@ class WordEntry: def __init__(self, db, word): self.db = db - self.word = str(word) + self.word = unicode(word) self.word_len = len(unicode(self.word)) self.variations = [] self.scname = None diff --git a/passenger_wsgi.py b/passenger_wsgi.py index c9ccd80..21ebfbc 100644 --- a/passenger_wsgi.py +++ b/passenger_wsgi.py @@ -5,4 +5,4 @@ from aore import phias application = phias.app if __name__ == '__main__': - application.run(host='0.0.0.0', port=55001, debug=True) + application.run(host='0.0.0.0', port=8087, debug=True)