Skip to content

EdithaK/oeplatform

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oeplatform

The open energy platform of open_eGo

Installation

The open energy platform is built atop an PostgreSQL database. Create a new database to avoid clashes.

This project is developed in Python 3.4 and therefore all later uses of pip and python should call the corresponding versions.

Once this is done, you can proceed with the installation of the actual platform by cloning the repository. Install the required python libraries:

pip install -r requirements.txt

Create a file oeplatform/securitysettings.py by omitting the '.default' prefix on oeplatform/securitysettings.py.default and enter the connection to your above mentioned postgresql database.

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2',
        'NAME': 'django',
	'USER': 'databaseuser',
	'PASSWORD': 'databasepassword',
	'HOST': 'localhost'                      
	}
}

The second database connection should point to another postgresql database. It is used for the data input functionality implemented in dataedit/.

dbuser = ""
dbpasswd = ""
dbport = 5432
dbhost = ""
db = ""

Make sure that this database has the following extensions installed:

  • hstore
  • postgis
  • postgis_topology

Next step is to migrate the database shema from django to your django database:

python manage.py migrate

Finally, you can run your local copy of this platform:

python manage.py runserver

Per default, you should be able to connect to this copy by visiting localhost:8000 in your web browser

About

The open energy platform of open_eGo

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 51.0%
  • HTML 34.2%
  • Python 13.0%
  • CSS 1.8%