Fix: APPEND_SLASH = True funguje
Problémem byl záznam v urls.py pro flatpages, který přijal všechno a nedovolil tak druhý pokus s lomítkem na konci. Pro flatpages ale stačí FlatpageFallbackMiddleware v MIDDLEWARE_CLASSES, který odchytává teprve 404.
This commit is contained in:
		
							parent
							
								
									3400c7a347
								
							
						
					
					
						commit
						6d37b5e8ec
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		|  | @ -19,8 +19,6 @@ urlpatterns = patterns('', | ||||||
|     url(r'^comments_dj/', include('django_comments.urls')), |     url(r'^comments_dj/', include('django_comments.urls')), | ||||||
|     url(r'^comments_fl/', include('fluent_comments.urls')), |     url(r'^comments_fl/', include('fluent_comments.urls')), | ||||||
| 
 | 
 | ||||||
|     # Obsah - flatpages |  | ||||||
|     url(r'^', include('django.contrib.flatpages.urls')), # Pozor: musi byt posledni |  | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| # This is only needed when using runserver. | # This is only needed when using runserver. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Matěj Kocián
						Matěj Kocián