Wagtail + Django problem - page is redirecting to wagtail although the url is not for the wagtail page

Viewed 395
url(r'^$', views.HomePage.as_view(), name='homepage'),

class HomePage(RedirectView):
    def get(self, request, *args, **kwargs):
        print('check')
        return render(request, url)

And this is the html:

<a href="{% url 'public_portal:homepage' %}">

although, I get a page with full design of wagtail Page model I have. Anyone knows why is it happening?

1 Answers
Related