Skip to content

Commit

Permalink
[FIXES #344] Real Cause of 'rest_framework namespace is not Unique' i…
Browse files Browse the repository at this point in the history
…s not Fixed
  • Loading branch information
afabiani committed Jul 21, 2021
1 parent 5a36821 commit 13be151
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 3 additions & 2 deletions geonode_mapstore_client/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#
#########################################################################
import os
from django.apps import AppConfig as BaseAppConfig
from django.apps import apps, AppConfig as BaseAppConfig
from django.views.generic import TemplateView

def run_setup_hooks(*args, **kwargs):
Expand All @@ -33,5 +33,6 @@ class AppConfig(BaseAppConfig):
label = "geonode_mapstore_client"

def ready(self):
run_setup_hooks()
if not apps.ready:
run_setup_hooks()
super(AppConfig, self).ready()
5 changes: 1 addition & 4 deletions mapstore2_adapter/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
#
#########################################################################

from django.conf.urls import url, include
from rest_framework import routers
from . import views

router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet)

urlpatterns = [
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
]
urlpatterns = []

0 comments on commit 13be151

Please sign in to comment.