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 (#345)

* [FIXES #344] Real Cause of 'rest_framework namespace is not Unique' is not fixed

* added a comment

* removed rest_framework.urls
  • Loading branch information
asgharsir authored Jul 21, 2021
1 parent efe854e commit dec3adf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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()
3 changes: 1 addition & 2 deletions mapstore2_adapter/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@
router.register(r'resources', views.MapStoreResourceViewSet, basename="resources")

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

0 comments on commit dec3adf

Please sign in to comment.