from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

admin.autodiscover()


urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^', include('django_netjsonconfig.controller.urls', namespace='controller')),
]

urlpatterns += staticfiles_urlpatterns()

from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

admin.autodiscover()
admin.site.site_url = None


urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^', include('django_netjsonconfig.controller.urls', namespace='controller')),
]

urlpatterns += staticfiles_urlpatterns()

Hide "view site" link in admin
Hide "view site" link in admin

  from django.conf.urls import include, url
  from django.contrib import admin
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  
  admin.autodiscover()
+ admin.site.site_url = None
  
  
  urlpatterns = [
      url(r'^admin/', include(admin.site.urls)),
      url(r'^', include('django_netjsonconfig.controller.urls', namespace='controller')),
  ]
  
  urlpatterns += staticfiles_urlpatterns()
  
Hide "view site" link in admin
## Code Before:
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

admin.autodiscover()


urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^', include('django_netjsonconfig.controller.urls', namespace='controller')),
]

urlpatterns += staticfiles_urlpatterns()

## Instruction:
Hide "view site" link in admin
## Code After:
from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

admin.autodiscover()
admin.site.site_url = None


urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^', include('django_netjsonconfig.controller.urls', namespace='controller')),
]

urlpatterns += staticfiles_urlpatterns()
