jsocol / django-adminplus

Easily add custom views to the Django admin.
BSD 3-Clause "New" or "Revised" License
592 stars 79 forks source link

Can't hit url pattern of custom view #32

Open joeestes86 opened 9 years ago

joeestes86 commented 9 years ago

I'm using the latest django 1.8 My urls.py looks this:

from django.contrib import admin from adminplus.sites import AdminSitePlus from django.conf.urls import include, url

admin.site = AdminSitePlus() admin.autodiscover()

urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^chaining/', include('smart_selects.urls')), ]

My view looks like this:

def my_view(request, _args, *_kwargs): pass admin.site.register_view('somepath', view=my_view)

When i go to

mysite.com/admin/somepath I get a 404. Do you know what I'm doing wrong?

jsocol commented 9 years ago

Can you try with the latest (v0.4, which is out now) and see if it still fails? Make sure to follow the installation instructions for Django >=1.7.