Skip to content

kevinnguyenai/faust-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KeyNote: ` I see the missing for someone and especially to me in this case when deploy environment to run faust django example from faust Please following the preparation environment to your system before you start using this repos #### 1. install rocksdb by following guide [https://python-rocksdb.readthedocs.io/en/latest/installation.html](https://python-rocksdb.readthedocs.io/en/latest/installation.html) This requires librocksdb-dev>=5.0 apt-get install python-virtualenv python-dev librocksdb-dev virtualenv venv source venv/bin/activate pip install python-rocksdb if your librocksdb-dev is previous version please following sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-pil python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev sudo apt-get install build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev cmake git clone https://github.com/facebook/rocksdb.git cd rocksdb mkdir build && cd build cmake .. make cd .. sudo make install-shared INSTALL_PATH=/usr sudo cp -r /opt/rocksdb/include/* /usr/local/include export CPLUS_INCLUDE_PATH=/usr/local/include export LD_LIBRARY_PATH=/opt/rocksdb export LIBRARY_PATH=/opt/rocksdb ##### 2. Please ensure we have at least python3.6 for ready to use if not it's have to install manually by following this link [https://websiteforstudents.com/installing-the-latest-python-3-7-on-ubuntu-16-04-18-04/](https://websiteforstudents.com/installing-the-latest-python-3-7-on-ubuntu-16-04-18-04/) ###### 2.1 python3.6 sudo apt update sudo apt install software-properties-common sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update sudo apt install python3.6 python3.6-dev python3.6-venv ###### 2.2 python3 sudo apt update sudo apt install software-properties-common sudo apt-get install python3 python3-pip python3-venv python3-dev sudo apt-get install libmysqlclient-dev mysql-client python3 -m pip install virtualenv cd /projects/faust-django python3 -m virtualenv --python=python3 env source env/bin/activate pip install -r requirements/dev.txt`

Directory Layout - proj/

This is the main Django project.

We have also added a proj/__main__.py that executes if you do python -m proj, and it will work as the manage.py for the project.

This is also installed by setup.py as an entry point, so after python setup.py install or python setup.py develop the proj command will be available:

$ python setup.py develop
$ proj runserver

The above is the same as running manage.py runserver, but it will be installed in the system path.

  • faustapp/

    This is a Django App that defines the Faust app used by the project, and it also configures Faust using Django settings.

    This faustapp is also installed by setup.py as the proj-faust program, and can be used to start a Faust worker for your Django project by doing:

    $ python setup.py develop
    $ proj-faust worker -l info
  • accounts/

    This is an example Django App with stream processors.

About

example faust app with django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages