title: Django,DRF, get another app's view name for a reverse
body: <p>I'm trying to create a link for another app in my serializer using the solution provided here:</p>
  
  <p><a href="https://stackoverflow.com/a/45850334/12177026">https://stackoverflow.com/a/45850334/12177026</a></p>
  
  <p>I'm trying to match the view's name but every way I try I get this error:</p>
  
  <pre><code>Reverse for 'KnownLocationView' not found. 'KnownLocationView' is not a valid view function or pattern name.
  </code></pre>
  
  <p>serializers:</p>
  
  <pre class="lang-py prettyprint-override"><code>class MissionSerializer(HyperlinkedModelSerializer):
      gdt = ChoiceField(choices=lazy(get_locations, tuple)())
      location = SerializerMethodField(label='Open Location')
  
      def get_location(self, obj):
          request = self.context.get('request')
          return request.build_absolute_uri(reverse('KnownLocationView', kwargs={'Name': obj.gdt}))
  
      class Meta:
          model = Mission
          fields = ('MissionName', 'UavLatitude', 'UavLongitude', 'UavElevation', 'Area',
                    'gdt', 'location')
  </code></pre>
  
  <p>KnownLoction/urls.py</p>
  
  <pre class="lang-py prettyprint-override"><code>from django.urls import path, include
  from rest_framework.routers import DefaultRouter
  
  from .views import KnownLocationView
  
  app_name = 'KnownLocation'
  router = DefaultRouter()
  router.register(r'knownlocations', KnownLocationView)
  
  urlpatterns = [
      path('', include(router.urls)),
  ]
  </code></pre>
  
  <p>I tried replacing view_name with either of the following:</p>
  
  <pre><code>'knownlocations'
  'KnownLocation:knownlocations'
  'KnownLocation:KnownLocationView'
  </code></pre>
  
  <p>But get the same error</p>
  
  <p>even tried to reorder the installed apps.</p>
  
  <p>api/urls.py:</p>
  
  <pre class="lang-py prettyprint-override"><code>
  urlpatterns = [
                    path('admin/', admin.site.urls),
                    path('accounts/', include('django.contrib.auth.urls')),
                    path('', include('landingpage.urls')),  # API Landing Page
                    path('', include('ThreeLocations.urls')),  # Triangulation between two Known GDTs and uav location.
                    path('', include('SecondGDT.urls')),  # Options For Second GDT Positioning.
                    path('', include('KnownLocation.urls', namespace='knownlocations')),
                    # Add Known Location To the map.
                ] + staticfiles_urlpatterns()
  </code></pre>
  
  <p>KnownLocation/views.py</p>
  
  <pre class="lang-py prettyprint-override"><code>from rest_framework.renderers import AdminRenderer
  from rest_framework.viewsets import ModelViewSet
  
  from .models import KnownLocation
  from .serializers import KnownLocationSerializer
  
  
  class KnownLocationView(ModelViewSet):
      """
      List of Known Locations In which we can place one of our ground positions.
  
      press create to add a new location.
  
      """
      serializer_class = KnownLocationSerializer
      queryset = KnownLocation.objects.all()
  
      def get_serializer_context(self):
          data = KnownLocationSerializer(self.queryset, many=True, context={'request': self.request})
          return data
  
      renderer_classes = [AdminRenderer]
  </code></pre>