Closed alsoicode closed 14 years ago
Maybe try to replace the last line by this : url(r'^$', include('zinnia.urls.entries')),
Ok fixed, configuration error.
Hello, i have the same problem like author of this topic. What i must to to defeat this?
Hello, can you paste me your project's urls.py ?
from django.conf.urls.defaults import * from django.contrib import admin from django.conf import settings
admin.autodiscover()
admin.site.root_path = "/admin/" # there is probably a bug in django...
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
(r'^jsi18n/(?P<packages>\S+?)/$', 'django.views.i18n.javascript_catalog'),
(r'^categories/', include('categories.urls')),
# just for testing - native way to sampleapp urls
(r'^sampleapp-native/', include('sampleapp.urls')),
url(r'^weblog/', include('zinnia.urls')),
url(r'^comments/', include('django.contrib.comments.urls')),
)
if settings.DEBUG:
urlpatterns+= patterns('',
url(r'^media/(?P
urlpatterns += patterns('', url(r'^', include('cms.urls')), )
Hum it seems weird... Are you sure that all the previous urls, are working ? Comment all the urls before zinnia's urls and tell me if it work.
I had this exact issue. I was running zinnia on a sub domain, and had a custom urlconf file that loaded zinnia.urls. Everything worked on site, but the admin exploded when I attempted to do anything with entries (the admin runs off the main url, while the site runs off the subdomain "blog").
To fix this, I had to add the following to the main sites urls.py file: url(r'^zinnia/', include('zinnia.urls')),
After adding a new entry in admin, I get an exception:
TemplateSyntaxError at /admin/zinnia/entry/ Caught an exception while rendering: Reverse for 'zinnia_entry_detail' with arguments '()' and keyword arguments '{'year': '2010', 'slug': u'test-entry', 'day': '11', 'month': '05'}' not found.
My base urls.py for zinnia patterns is:
urlpatterns += patterns('', url(r'^comments/', include('django.contrib.comments.urls')), url(r'^feeds/', include('zinnia.urls.feeds')), url(r'^authors/', include('zinnia.urls.authors')), url(r'^categories/', include('zinnia.urls.categories')), url(r'^search/', include('zinnia.urls.search')), (r'^$', include('zinnia.urls')), )
Thoughts?