diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-05 21:47:22 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-05 21:47:22 +0200 |
commit | 3b07340901f89df7a86d64aab1e64277830ca3cb (patch) | |
tree | d218224751e9c5198bbfb5ab1fdbe6e4447491e6 | |
parent | Updated translations. (diff) | |
download | newspipe-3b07340901f89df7a86d64aab1e64277830ca3cb.tar.gz newspipe-3b07340901f89df7a86d64aab1e64277830ca3cb.tar.bz2 newspipe-3b07340901f89df7a86d64aab1e64277830ca3cb.zip |
About page is accessible when disconnected.
-rw-r--r-- | README.rst | 2 | ||||
-rw-r--r-- | db_create.py | 2 | ||||
-rw-r--r-- | pyaggr3g470r/templates/layout.html | 2 | ||||
-rw-r--r-- | pyaggr3g470r/views.py | 1 |
4 files changed, 4 insertions, 3 deletions
@@ -29,7 +29,7 @@ Deployment This application can be deployed on Heroku or on a traditional server. -After installation, you will be able to connect with the email *root@pyAggr3g470r.localhost* and the password *root_password*. +After installation, you will be able to connect with the email *root@pyAggr3g470r.localhost* and the password *password*. Deploying the application on Heroku diff --git a/db_create.py b/db_create.py index 7cdd6411..5e803fc5 100644 --- a/db_create.py +++ b/db_create.py @@ -69,7 +69,7 @@ role_user = Role(name="user") user1 = User(firstname="admin", lastname="admin", email="root@pyAggr3g470r.localhost", - pwdhash=generate_password_hash("root_password")) + pwdhash=generate_password_hash("password")) user1.roles.extend([role_admin, role_user]) db.session.add(user1) diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html index 8ed66d89..d0656d32 100644 --- a/pyaggr3g470r/templates/layout.html +++ b/pyaggr3g470r/templates/layout.html @@ -78,6 +78,8 @@ </li> </ul> </li> + {% else %} + <li><a href="/about/">{{ _('About') }}</a></li> {% endif %} </ul> </div><!-- /.navbar-collapse --> diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index c8e268bc..3a6cd9ad 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -223,7 +223,6 @@ def fetch(feed_id=None): return redirect(redirect_url()) @app.route('/about/', methods=['GET']) -@login_required def about(): """ 'About' page. |