Skip to content

Commit

Permalink
[FIXES #344] rest_framework namespace and duplicate URLs (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
asgharsir authored Jul 21, 2021
1 parent 89a51d0 commit 5b5814c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion geonode_mapstore_client/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#########################################################################
from django.apps import AppConfig as BaseAppConfig
from django.utils.translation import ugettext_lazy as _
from django.apps import apps


def run_setup_hooks(*args, **kwargs):
Expand All @@ -28,5 +29,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()
1 change: 0 additions & 1 deletion mapstore2_adapter/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@

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

0 comments on commit 5b5814c

Please sign in to comment.