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

urlpatterns = [
    url(r'^', include('meadery.urls')),
    url(r'^cart/', include('cart.urls')),
    url(r'^checkout/', include('checkout.urls')),
    url(r'^accounts/', include('accounts.urls')),
    # url(r'^accounts/', include('django.contrib.auth.urls')),
    url(r'^search/', include('search.urls')),

    # (r'^inventory/$', 'inventory.views.home'),
    # (r'^brewery/$', 'meadery.views.home'),

    url(r'^admin/', include(admin.site.urls)),
]

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

handler404 = 'pyment.views.file_not_found_404'
