Allow participants to register for events at the LCBRU
sudo apt-get install libmysqlclient-dev python-dev
sudo easy_install flask
sudo easy_install flask-sqlalchemy
sudo easy_install mysql-python
sudo pip install Flask-WTF
sudo pip WTForms-Components
- Copy or clone the source from the git repository.
- Copy the defaultSettings.py file to settings.py
- Edit the settings.py file and change the following settings:
- Change
Debugto be false - Change
SECRET_KEYto a secret key. - Change
DATABASEto the database name - Change
SQLALCHEMY_DATABASE_URIto a valid MySQL connection string
- Change
The lcbru-events application creates the tables that it requires, but first you must create the database and give the user then necessary permissions.
CREATE DATABASE lcbru_events;GRANT ALL PRIVILEGES ON lcbru_events.* to {username}@127.0.0.1 identified by '{password}';
See Here.