eldarion / H5PP

H5PP is a port of H5P by Joubel to the Python language and the web framework Django.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

H5PP - HTML5 Package Python

H5PP is a port of H5P by Joubel to the Python language and the web framework Django. H5P makes it easy to create, share and reuse HTML5 content and applications. Authors may create and edit interactive video, presentations, games, advertisements and more. Content may be imported and exported. All that is needed to view or edit H5P content is a web browser.

Quick start

  1. Install H5PP packages with pip :

pip install H5PP-0.1.tar.gz
  1. Add 'h5pp' to your INSTALLED_APPS settings like this :

INSTALLED_APPS = [
  ...
  'h5pp',
]
  1. Include the h5pp Urlconf in your project urls.py like this :

url(r'^h5p/', include('h5pp.urls'))
  1. Include these variables into the settings.py file of your Django project :

H5P_VERSION = '7.x'
H5P_DEV_MODE = 0
H5P_PATH = os.path.join(BASE_DIR, 'h5pp/static/h5p')
H5P_URL = '/h5p/'
H5P_SAVE = 30
H5P_EXPORT = '/exports/'
H5P_LANGUAGE = 'en'
BASE_URL = 'http://localhost:8000' # Hostname of your server

Beta version use the inner system of login of Django. So don't forget to set your LOGIN_URL and LOGIN_REDIRECT_URL variables in your settings.

  1. If not already done. Make a 'media' directory at the root of your Django project.

  2. Run python manage.py migrate to create the h5pp models.

  3. Start the development server and visit http://127.0.0.1:8000/h5p/home/ to access to the main menu of h5pp. Go to libraries to install the officiel H5P Release from h5p.org.

  4. Visit http://127.0.0.1:8000/h5p/create/ to create or upload new H5P contents.

Beta version

This version of H5P is a beta. Many things have to be corrected, code need to be optimized and currently the project is being tested. So we can not ensure the stability of the project until the end of the beta phase.

Docs

The documentation of this port of H5P is being writted. For the moment here is the official documentation of the original version of H5P : https://h5p.org/documentation

====================

H5P git repositories : https://github.com/h5p
H5P official website : https://h5p.org/
Joubel officiel website : https://joubel.com/

About

H5PP is a port of H5P by Joubel to the Python language and the web framework Django.

License:GNU General Public License v2.0


Languages

Language:JavaScript 50.5%Language:Python 32.5%Language:CSS 11.5%Language:HTML 5.3%Language:Ruby 0.1%