Skip to content

marekventur/Website

 
 

Repository files navigation

This is the www.emfcamp.org web site

Requirements

Starting

sudo apt-get install python-dev python-virtualenv libxml2-dev libxslt-dev libffi-dev postgresql-server-dev-9.1
make init
make update # may take a few minutes if you don't have cached .whl files
make data

Alt method using 'easy_install'

To set up easy_install go here

sudo easy_install virtualenv
make init

Running

make update
make data
make

Now create a user (go to http://localhost:5000/signup) and then run:

make admin

This will make your user an administrator.

If you want to clean out the database and start again then:

rm var/test.db
make update
make data

Viewing

The site will run on http://localhost:5000.

If you would like to change the port that the site uses you can set this in main.py (last line):

    app.run(processes=2, port=8888)

You can also use this to make the site accessible outside of your computer. Only do this if you're sure you know what you're doing.

    app.run(processes=2, host="0.0.0.0")

Links to Documentation

N.B. the version might be wrong for some of these, check against requirements.txt

Flask

Templates

Forms

Database

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.0%
  • HTML 44.0%
  • CSS 4.2%
  • Other 0.8%