Giter VIP home page Giter VIP logo

pysymo's People

Contributors

feldsam avatar icoz avatar ilya-il avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

feldsam makai281

pysymo's Issues

Installation Documantation errors

tools/initdb.py => tools/init_db.py
если я запускаю из корневой папки pysymo:
python tools/init_medb.py
получаю ошибку:

OK: Collection 'medb' and indexes were created in 'rsyslog' database
OK: Now load medb into 'rsyslog' database
unzip:  cannot find or open ../data/medb.zip, ../data/medb.zip.zip or ../data/medb.zip.ZIP.
Traceback (most recent call last):
  File "tools/init_medb.py", line 45, in <module>
    main()
  File "tools/init_medb.py", line 32, in main
    f = open('medb.txt', 'r')
IOError: [Errno 2] No such file or directory: 'medb.txt'

отсутствует пример задач cron
было бы не плохо показать как часто запускать обработку с точки зрения разработчика.

За работу огромное спасибо!!

Хорошо добавить пример запуска логгера из под apache с модулем mod_wsgi

pysymo.conf (Apache >= 2.0)

<VirtualHost *:80>
        ServerName pysymo.example.com
        WSGIScriptReloading On
        WSGIScriptAlias / /opt/pysymo/apache.wsgi
        <Directory /opt/pysymo/app/>
                Order allow,deny
                Allow from all
        </Directory>
        Alias /static /opt/pysymo/app/static
        <Directory /opt/pysymo/app/static/>
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>

apache.wsgi:

#!/usr/bin/python
import sys
sys.path.insert(0,"/opt/pysymo/")
from app import app as application
application.secret_key = 'some_super_secret_key'

Это мой рабочий вариант.

в корне проекта можно создать файл requirements.txt с содержимым:

Flask
Flask-WTF
Jinja2
WTForms
pymongo
flup
flask-paginate
flask-login
pycrypto
python-ldap
Babel
Flask-Babel

и ставить все вместе одной командой pip install -r requirements.txt

Для незнающих питон это поможет, только указать что должен стоять в системе pip.

Еще раз Спасибо!

requirerments.txt

Please create requirements.txt for best praticle in install! Thx!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.