diff --git a/.travis.yml b/.travis.yml index d79e109..6d8b256 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,10 @@ env: install: - pip install -r dev/requirements.txt --use-mirrors script: - - pep8 --exclude=IPy.py --ignore=E501 vrtManager accounts computes console create instances interfaces networks secrets storages - - pyflakes vrtManager accounts computes console create instances interfaces networks secrets storages + - pep8 --exclude=IPy.py --ignore=E501 vrtManager accounts computes \ + console create instances interfaces \ + networks secrets storages + - pyflakes vrtManager accounts computes console create instances interfaces \ + networks secrets storages - python manage.py migrate - python manage.py test --settings=webvirtcloud.settings-dev diff --git a/accounts/migrations/0002_auto_20150325_0846.py b/accounts/migrations/0002_auto_20150325_0846.py index 27500d5..c5ad87f 100644 --- a/accounts/migrations/0002_auto_20150325_0846.py +++ b/accounts/migrations/0002_auto_20150325_0846.py @@ -5,9 +5,10 @@ from django.db import migrations def add_useradmin(apps, schema_editor): - from django.contrib.auth.models import User + # from django.contrib.auth.models import User # Broken in Django 1.8 - #User.objects.create_superuser("admin", None, "admin") + # User.objects.create_superuser("admin", None, "admin") + pass class Migration(migrations.Migration): diff --git a/accounts/urls.py b/accounts/urls.py index 408d219..f8c4a41 100644 --- a/accounts/urls.py +++ b/accounts/urls.py @@ -1,9 +1,11 @@ from django.conf.urls import url from . import views -urlpatterns =[ - url(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'login.html'}, name='login'), - url(r'^logout/$', 'django.contrib.auth.views.logout', {'template_name': 'logout.html'}, name='logout'), +urlpatterns = [ + url(r'^login/$', 'django.contrib.auth.views.login', + {'template_name': 'login.html'}, name='login'), + url(r'^logout/$', 'django.contrib.auth.views.logout', + {'template_name': 'logout.html'}, name='logout'), url(r'^profile/$', views.profile, name='profile'), url(r'^$', views.accounts, name='accounts'), url(r'^profile/(?P[0-9]+)/$', views.account, name='account'), diff --git a/computes/templates/overview.html b/computes/templates/overview.html index e156c1c..abdb2cd 100644 --- a/computes/templates/overview.html +++ b/computes/templates/overview.html @@ -1,5 +1,6 @@ {% extends "base.html" %} {% load i18n %} +{% load staticfiles %} {% block title %}{% trans "Overview" %} - {{ compute.name }}{% endblock %} {% block content %} @@ -81,7 +82,7 @@ {% endblock %} {% block script %} - + - + + + {% endblock %} \ No newline at end of file diff --git a/logs/migrations/0002_auto_20150316_1420.py b/logs/migrations/0002_auto_20150316_1420.py index eb8cc13..9b742d8 100644 --- a/logs/migrations/0002_auto_20150316_1420.py +++ b/logs/migrations/0002_auto_20150316_1420.py @@ -2,9 +2,7 @@ from __future__ import unicode_literals from django.db import models, migrations -import datetime from django.conf import settings -from django.utils.timezone import utc class Migration(migrations.Migration): diff --git a/networks/templates/network.html b/networks/templates/network.html index 16e84bc..7d922b1 100644 --- a/networks/templates/network.html +++ b/networks/templates/network.html @@ -147,41 +147,41 @@ {% endif %} {% endblock %} {% block script %} - + }); + {% endblock %} \ No newline at end of file diff --git a/secrets/templates/secrets.html b/secrets/templates/secrets.html index 509ff92..10a6b60 100644 --- a/secrets/templates/secrets.html +++ b/secrets/templates/secrets.html @@ -1,8 +1,9 @@ {% extends "base.html" %} {% load i18n %} +{% load staticfiles %} {% block title %}{% trans "Secrets" %} - {{ compute.name }}{% endblock %} {% block style %} - + {% endblock %} {% block content %} @@ -117,5 +118,5 @@ {% endblock %} {% block script %} - + {% endblock %} \ No newline at end of file diff --git a/storages/templates/storage.html b/storages/templates/storage.html index 791ebce..9f61253 100644 --- a/storages/templates/storage.html +++ b/storages/templates/storage.html @@ -1,8 +1,9 @@ {% extends "base.html" %} {% load i18n %} +{% load staticfiles %} {% block title %}{% trans "Storage" %} - {{ pool }}{% endblock %} {% block style %} - + {% endblock %} {% block content %} @@ -186,7 +187,7 @@ {% endblock %} {% block script %} - +