mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
Ensure bad URL within layerindex app returns 404
The recently added global redirect was also redirecting incorrect URLs within the application to the front page rather than showing 404, which is not desirable. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
a5f6ecb914
commit
ee9176a8c5
|
@ -6,6 +6,7 @@
|
|||
|
||||
from django.conf.urls.defaults import *
|
||||
from django.views.generic import TemplateView, DetailView, ListView
|
||||
from django.views.defaults import page_not_found
|
||||
from layerindex.models import LayerItem, Recipe
|
||||
from layerindex.views import LayerListView, LayerReviewListView, LayerReviewDetailView, RecipeSearchView, MachineSearchView, PlainTextListView, LayerDetailView, edit_layer_view, delete_layer_view, edit_layernote_view, delete_layernote_view, switch_branch_view
|
||||
|
||||
|
@ -70,4 +71,5 @@ urlpatterns = patterns('',
|
|||
TemplateView.as_view(
|
||||
template_name='layerindex/about.html'),
|
||||
name="about"),
|
||||
url(r'.*', page_not_found)
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user