Q:

NoReverseMatch on Django even when kwargs are provided

The Django cant resovle the url, even though the expected kwarg is provided. 
Here is root urls.py:
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^media/(?P<path>.*)$','django.views.static.serve',{'document_root': settings.MEDIA_ROOT}),
    url(r'^ckeditor/', include('ckeditor_uploader.urls')),
    url(r'^static/(?P<path>.*)$','django.views.static.serve',{'document_root': settings.STATIC_ROOT}),
    url(r'^(?P<domain>\w+)', include('frontend.urls')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

Here is frontend urls.py:
from django.conf.urls import include,patterns,url
from . import views
from .views import MyprofileView
from .views import SuccessView
from .views import CompanyView
from .views import SubscriptionView

from django.views.decorators.csrf import csrf_exempt

urlpatterns = patterns('',
    url(r'/success(/?)$', SuccessView.as_view(), name='success'),
    url(r'/subscribe(/?)$', SubscriptionView.as_view(), name='subscribe'),
    url(r'^(/?)$', MyprofileView.as_view(), name='home'),
    url(r'/api/v1/', include('cpprofile.api.urls')),
    url(r'/product', include('product_information.urls')),
    url(r'/corporations/(?P<company>\d+)$', CompanyView.as_view(), name='company_page'),
    url(r'^/(?P<subscription>\w+)/product/pay/return/(?P<amount>\d+)/(?P<currency>\w+)/(?P<id>\d+)?$',
        views.payment_return, name='subscription_product_payment_return'),
)

And here is how I am trying to reverse call it in view.py MyprofileView: 
context['subscribe_url'] = redirect('subscribe', kwargs={'domain': 'up'})

What could be wrong here?
Thanks

UPDATE 1
Here is the error I am getting:
django.core.urlresolvers.NoReverseMatch
NoReverseMatch: Reverse for 'subscribe' with arguments '()' and keyword arguments '{'domain': 'up'}' not found. 1 pattern(s) tried: ['(?P<domain>\\w+)/subscribe(/?)$']

A:

You have to unpack the kwargs.
Solution:
kwargs = {'domain': 'up'}
redirect('app_name:subscribe', **kwargs)

EDIT: This will work, no need to change the url.
EDIT2: Prepend app's name and a colon to url name. This finds the url in the app namespace.
Ref: Redirect in Django

