
from django.conf.urls import url,include
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    url(r'^api/', include('api.urls',namespace="api")),
    url(r'^admin/', admin.site.urls),
    url(r'^', include('restaurants.urls')),
]
if settings.DEBUG:
	urlpatterns+= static(settings.STATIC_URL, document_root= settings.STATIC_ROOT)
	urlpatterns+= static(settings.MEDIA_URL, document_root= settings.MEDIA_ROOT)