-
Notifications
You must be signed in to change notification settings - Fork 1
Installation
To install a local instance of Megawatt:
1. Install VirtualEnv
VirtualEnv allows the setting of environemnt variables without disrupting a user's normal environment. It also gives us access to pip.
$ mkvirtualenv megawatt
$ workon megawatt The above commands create a VirtualEnv called 'megawatt'.
3. Install Postgres
note: this usually requires a user to run the psql
command.
See this article for troubleshooting or this article for first time setup.
$ export DATABASE_URL=postgres://[db_user]:[db_password]@localhost:5432/[db_name]
$ git clone https://github.com/gregorylburgess/megawatt.git
$ cd megawatt
$ pip install -r requirements.txt
Open the settings.py file (megawatt/settings.py) Change line #4 to
Heroku = True
$ python manage.py syncdb
An error here indicates a problem from step 4 or 5.
$ python manage.py runserver