diff --git a/demo/moulinrouge/__init__.py b/demo/moulinrouge/__init__.py
index fff61cb..790f291 100644
--- a/demo/moulinrouge/__init__.py
+++ b/demo/moulinrouge/__init__.py
@@ -16,14 +16,19 @@
#
# You should have received a copy of the GNU Lesser General Public License
# along with pygal. If not, see .
-from flask import Flask, render_template, url_for
-from moulinrouge.data import labels, series
+from flask import Flask, render_template
from logging import getLogger, INFO, DEBUG
import pygal
from pygal.config import Config
-from pygal.style import styles
+from pygal.util import cut
+from pygal.style import styles, DefaultStyle
+from pygal.serie import Serie
+from base64 import (
+ urlsafe_b64encode as b64encode,
+ urlsafe_b64decode as b64decode)
import string
import random
+import pickle
def random_label():
@@ -54,26 +59,24 @@ def create_app():
getLogger('pygal').addHandler(handler)
getLogger('pygal').setLevel(DEBUG)
- @app.route("/")
- def index():
- return render_template('index.jinja2')
+ def _random(data, order):
+ max = 10 ** order
+ min = 10 ** random.randrange(0, order)
- @app.route("/all--