1👍
✅
You are matching '^$'
, which is an empty string, so your other urls are not called.
Try:
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^', include('myapp.urls'))
)
Note that I changed the ordering. This is so that myapp
will never override other, more specific urls like admin
.
0👍
r’^url1$’
^ means start here;
$ means end here.
so, it is an empty string. it does not make sense to put anything between like you did ^ … $.
how about to try: r’^$’, ‘views.url1’),
?
- [Answer]-Changing label in auth.User model field
- [Answer]-How to deploy static files with Django
- [Answer]-How to show subclass model in Django-admin inline form?
- [Answer]-Django cache everything but a piece
- [Answer]-Nodejs wont allow non local connections
Source:stackexchange.com