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

from django.views.generic.edit import CreateView
from django.contrib.auth.forms import UserCreationForm
from core.views import HelpView, RegisterView
from choropleths.views import GalleryView
from choropleths.feeds import ChoroplethFeed
from cartograms.views import cartogram_csv_template

urlpatterns = patterns('',
    url(r'^$', GalleryView.as_view(), name="gallery"),
    url(r'^help/$', HelpView.as_view(), name="help"),
    url(r'^datasets/', include('datasets.urls', namespace="datasets")),
    url(r'^choropleths/', include('choropleths.urls', namespace="choropleths")),
    url(r'^cartogram-template/(?P<pk>[0-9]+)/$', cartogram_csv_template, name="csv-template"),
    url(r'^login/$', 'django.contrib.auth.views.login', name='login'),
    url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='logout'),
    url(r'^feed/$', ChoroplethFeed()),
    # url(r'^register/$', CreateView.as_view(
    #     template_name='registration/register.html',
    #     form_class=UserCreationForm,
    #     success_url='/login'
    #     ), name='register'
    url(r'^register/$', RegisterView.as_view(), name='register'),
)

# Serve Media
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)<commit_msg>Updated urls.py to reference core module.<commit_after>from django.conf.urls import patterns, include, url
from django.conf import settings
from django.conf.urls.static import static

from core import views as core_views
from choropleths.views import GalleryView
from choropleths.feeds import ChoroplethFeed
from cartograms.views import cartogram_csv_template

urlpatterns = patterns('',
    url(r'^$', GalleryView.as_view(), name="gallery"),
    url(r'^help/$', core_views.HelpView.as_view(), name="help"),
    url(r'^datasets/', include('datasets.urls', namespace="datasets")),
    url(r'^choropleths/', include('choropleths.urls', namespace="choropleths")),
    url(r'^cartogram-template/(?P<pk>[0-9]+)/$', cartogram_csv_template, name="csv-template"),
    url(r'^login/$', 'django.contrib.auth.views.login', name='login'),
    url(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/'}, name='logout'),
    url(r'^feed/$', ChoroplethFeed()),
    url(r'^register/$', core_views.RegisterView.as_view(), name='register'),
)

# Serve Media
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
{'fraction_non_alphanumeric': 0.16861370716510904, 'fraction_numerical': 0.001557632398753894, 'mean_word_length': 5.70757180156658, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3790933', 'n_tokens_mistral': 849, 'n_tokens_neox': 811, 'n_words': 153}