[Answer]-The pages aren't found for an app

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.

👤tcooc

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’),

?

Leave a comment