<commit_before>from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
                       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'),
                       # Examples:
                       # url(r'^$', 'pyment.views.home', name='home'),
                       # url(r'^pyment/', include('pyment.foo.urls')),

                       url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

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

handler404 = 'pyment.views.file_not_found_404'<commit_msg>Added debug-mode support for media files.<commit_after>from django.conf import settings
from django.conf.urls.static import static
from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
                       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'),
                       # Examples:
                       # url(r'^$', 'pyment.views.home', name='home'),
                       # url(r'^pyment/', include('pyment.foo.urls')),

                       url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

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

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

handler404 = 'pyment.views.file_not_found_404'
{'fraction_non_alphanumeric': 0.16966580976863754, 'fraction_numerical': 0.005141388174807198, 'mean_word_length': 1.9006211180124224, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3571760', 'n_tokens_mistral': 708, 'n_tokens_neox': 660, 'n_words': 97}