from django.conf.urls import patterns, include, url
from django.contrib.flatpages import urls
from search.views import CustomSearchView
from haystack.views import search_view_factory
from django.conf import settings

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url('', include('lobbyingph.urls')),
    url(r'^api/', include('api.urls')),
    url(r'^search/', search_view_factory(
        view_class=CustomSearchView,
        ), name='haystack_search'),
    url(r'^about/', include(urls.urlpatterns)),
    url(r'^admin/', include(admin.site.urls)),
)

if not settings.DEBUG:
    urlpatterns += patterns('',
        url(r'^static/fonts/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
    )
from django.conf.urls import patterns, include, url
from django.contrib.flatpages import urls
from search.views import CustomSearchView
from haystack.views import search_view_factory
from django.conf import settings

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url('', include('lobbyingph.urls')),
    url(r'^api/', include('api.urls')),
    url(r'^search/', search_view_factory(
        view_class=CustomSearchView,
        ), name='haystack_search'),
    url(r'^about/', include(urls.urlpatterns)),
    url(r'^admin/', include(admin.site.urls)),
)
Remove font serving from app
Remove font serving from app

  from django.conf.urls import patterns, include, url
  from django.contrib.flatpages import urls
  from search.views import CustomSearchView
  from haystack.views import search_view_factory
  from django.conf import settings
  
  from django.contrib import admin
  admin.autodiscover()
  
  urlpatterns = patterns('',
      url('', include('lobbyingph.urls')),
      url(r'^api/', include('api.urls')),
      url(r'^search/', search_view_factory(
          view_class=CustomSearchView,
          ), name='haystack_search'),
      url(r'^about/', include(urls.urlpatterns)),
      url(r'^admin/', include(admin.site.urls)),
  )
- 
- if not settings.DEBUG:
-     urlpatterns += patterns('',
-         url(r'^static/fonts/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
-     )
Remove font serving from app
## Code Before:
from django.conf.urls import patterns, include, url
from django.contrib.flatpages import urls
from search.views import CustomSearchView
from haystack.views import search_view_factory
from django.conf import settings

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url('', include('lobbyingph.urls')),
    url(r'^api/', include('api.urls')),
    url(r'^search/', search_view_factory(
        view_class=CustomSearchView,
        ), name='haystack_search'),
    url(r'^about/', include(urls.urlpatterns)),
    url(r'^admin/', include(admin.site.urls)),
)

if not settings.DEBUG:
    urlpatterns += patterns('',
        url(r'^static/fonts/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
    )
## Instruction:
Remove font serving from app
## Code After:
from django.conf.urls import patterns, include, url
from django.contrib.flatpages import urls
from search.views import CustomSearchView
from haystack.views import search_view_factory
from django.conf import settings

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    url('', include('lobbyingph.urls')),
    url(r'^api/', include('api.urls')),
    url(r'^search/', search_view_factory(
        view_class=CustomSearchView,
        ), name='haystack_search'),
    url(r'^about/', include(urls.urlpatterns)),
    url(r'^admin/', include(admin.site.urls)),
)