- url(r'^form/$', views.paypal_form, name='paypal_form'),
- url(r'^app-form/$', views.paypal_form, kwargs={'app': True}, name='paypal_api_form'),
- url(r'^return/$', views.paypal_return, name='paypal_return'),
- url(r'^app-return/$', views.paypal_return, kwargs={'app': True}, name='paypal_api_return'),
- url(r'^cancel/$', views.paypal_cancel, name='paypal_cancel'),
+ path('form/', RedirectView.as_view(url='/towarzystwo/dolacz/')),
+ path('app-form/', RedirectView.as_view(url='/towarzystwo/dolacz/app/')),
+
+ path('return/', views.paypal_return, name='paypal_return'),
+ path('app-return/', views.paypal_return, kwargs={'app': True}, name='paypal_app_return'),
+ path('cancel/', views.paypal_cancel, name='paypal_cancel'),