from django.conf.urls import url

from . import views

app_name = 'finder'
urlpatterns = [
	# ex: / or /finder/
	url(r'^$', views.IndexView.as_view(), name='index'),
	# ex: /finder/about/
	url(r'^about/$', views.AboutView.as_view(), name='about'),
	# ex: /finder/contact/
	url(r'^contact/$', views.ContactView.as_view(), name='contact'),
	# ex: /finder/embassy/
	url(r'^embassy/', views.EmbassyListView.as_view(), name='embassy_list'),
	# ex: /finder/country/
	url(r'^country/', views.CountryListView.as_view(), name='country_list'),
	# ex: /finder/5/
	url(r'^(?P<pk>[0-9]+)/$', views.EmbassyView.as_view(), name='embassy_info'),
	# ex: /finder/ABC/
	url(r'^(?P<pk>[A-Z]{2})/$', views.CountryView.as_view(), name='country_info'),
	# ex: /finder/find/ABC/DEF/
	url(r'^find/(?P<government_code>[A-Z]{3})/(?P<location_code>[A-Z]{3})/$', views.results, name='results'),
	# ex: /finder/find/ABC/DEF/
	url(r'^search/', views.search, name='search'),
]
from django.conf.urls import url

from . import views

app_name = 'finder'
urlpatterns = [
	# ex: / or /finder/
	url(r'^$', views.IndexView.as_view(), name='index'),
	# ex: /finder/about/
	url(r'^about/$', views.AboutView.as_view(), name='about'),
	# ex: /finder/contact/
	url(r'^contact/$', views.ContactView.as_view(), name='contact'),
	# ex: /finder/embassy/
	url(r'^embassy/', views.EmbassyListView.as_view(), name='embassy_list'),
	# ex: /finder/country/
	url(r'^country/', views.CountryListView.as_view(), name='country_list'),
	# ex: /finder/5/
	url(r'^(?P<pk>[0-9]+)/$', views.EmbassyView.as_view(), name='embassy_info'),
	# ex: /finder/ABC/
	url(r'^(?P<pk>[A-Z]{2})/$', views.CountryView.as_view(), name='country_info'),
	# ex: /finder/find/ABC/DEF/
	url(r'^find/(?P<government_code>[A-Z]{2})/(?P<location_code>[A-Z]{2})/$', views.results, name='results'),
	# ex: /finder/find/ABC/DEF/
	url(r'^search/', views.search, name='search'),
]
Fix search