diff --git a/game/manage.py b/game/manage.py index 0aae13818b..27c23ee145 100755 --- a/game/manage.py +++ b/game/manage.py @@ -134,5 +134,5 @@ if __name__ == "__main__": nothing about MUDs). Instead, just start Evennia with the webserver component active (this is the default). """ - from django.core.management import execute_manager - execute_manager(settings) + from django.core.management import execute_from_command_line + execute_from_command_line(sys.argv) diff --git a/src/web/news/views.py b/src/web/news/views.py index a5034b9338..54f2caabab 100755 --- a/src/web/news/views.py +++ b/src/web/news/views.py @@ -5,7 +5,7 @@ like news-categories/topics and searchable archives. """ -import django.views.generic.list_detail as gv_list_detail +from django.views.generic import ListView from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.conf import settings @@ -66,8 +66,9 @@ def news_archive(request): "browse_url": "/news/archive", "sidebar": sidebar } - - return gv_list_detail.object_list(request, news_entries, template_name='news/archive.html', extra_context=pagevars, paginate_by=entries_per_page) + view = ListView.as_view(queryset=news_entries) + return view(request, template_name='news/archive.html', \ + extra_context=pagevars, paginate_by=entries_per_page) def search_form(request): """ @@ -124,5 +125,5 @@ def search_results(request): "browse_url": "/news/search/results", "sidebar": sidebar } - - return gv_list_detail.object_list(request, news_entries, template_name='news/archive.html', extra_context=pagevars, paginate_by=entries_per_page) + view = ListView.as_view(queryset=news_entries) + return view(request, news_entries, template_name='news/archive.html', extra_context=pagevars, paginate_by=entries_per_page) diff --git a/src/web/templates/admin/index.html b/src/web/templates/admin/index.html index d22920b15e..c9c52dafe4 100644 --- a/src/web/templates/admin/index.html +++ b/src/web/templates/admin/index.html @@ -1,7 +1,7 @@ {% extends "admin/base_site.html" %} -{% load i18n %} +{% load i18n admin_static %} -{% block extrastyle %}{{ block.super }}{% endblock %} +{% block extrastyle %}{{ block.super }}{% endblock %} {% block coltype %}colMS{% endblock %} diff --git a/src/web/templates/admin/players/change_form.html b/src/web/templates/admin/players/change_form.html index 4db01138dd..405f73b916 100644 --- a/src/web/templates/admin/players/change_form.html +++ b/src/web/templates/admin/players/change_form.html @@ -1,6 +1,5 @@ {% extends "admin/base_site.html" %} -{% load i18n admin_modify adminmedia %} -{% load url from future %} +{% load i18n admin_modify admin_static %} {% block extrahead %}{{ block.super }} {% url 'admin:jsi18n' as jsi18nurl %} @@ -8,7 +7,7 @@ {{ media }} {% endblock %} -{% block extrastyle %}{{ block.super }}{% endblock %} +{% block extrastyle %}{{ block.super }}{% endblock %} {% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %} diff --git a/src/web/templates/admin/players/change_list.html b/src/web/templates/admin/players/change_list.html index 33b5201665..15c655089a 100644 --- a/src/web/templates/admin/players/change_list.html +++ b/src/web/templates/admin/players/change_list.html @@ -1,11 +1,10 @@ {% extends "admin/base_site.html" %} -{% load adminmedia admin_list i18n %} -{% load url from future %} +{% load admin_static admin_list i18n %} {% block extrastyle %} {{ block.super }} - + {% if cl.formset %} - + {% endif %} {% if cl.formset or action_form %} {% url 'admin:jsi18n' as jsi18nurl %} diff --git a/src/web/templates/admin/players/stacked.html b/src/web/templates/admin/players/stacked.html index 891341f91a..617ca9987e 100644 --- a/src/web/templates/admin/players/stacked.html +++ b/src/web/templates/admin/players/stacked.html @@ -1,4 +1,4 @@ -{% load i18n adminmedia %} +{% load i18n admin_static %}