--- /dev/null
+{% extends "base_mil.html" %}
+{% load i18n %}
+
+{% block title %}{% trans "Page not found" %}{% endblock %}
+
+{% block body %}
+
+<h1>{% trans "Page not found" %}</h1>
+
+<p class="notice">
+ {% trans "The page you were looking for doesn't exist." %}
+</p>
+
+{% endblock %}
import os.path
from django.conf import settings
from django.views.generic import TemplateView
+from django.views.defaults import page_not_found
from pybb.views import ProfileEditView
from .forms import AvatarlessEditProfileForm
class MILHomeView(TemplateView):
template_name = 'base_mil.html'
+def mil_404_view(request):
+ return page_not_found(request, '404_mil.html')
class AvatarlessProfileEditView(ProfileEditView):
form_class = AvatarlessEditProfileForm