Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't hit url pattern of custom view #32

Open
joeestes86 opened this issue Sep 17, 2015 · 1 comment
Open

Can't hit url pattern of custom view #32

joeestes86 opened this issue Sep 17, 2015 · 1 comment

Comments

@joeestes86
Copy link

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
Copy link
Owner

jsocol commented Oct 14, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants