<commit_before>'''This package has the url encodings for the main app.'''
from django.conf.urls import patterns, include, url
from django.contrib import admin

from personnel.sitemap import LabPersonnelSitemap
from papers.sitemap import LabPublicationsSitemap

#this dictionary lists sitemap files which will be generated.
sitemaps = {
    'personnel': LabPersonnelSitemap,
    'papers': LabPublicationsSitemap
    }

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^communication/', include('communication.urls')), 
    url(r'^papers/', include('papers.urls')),
    (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.index', {'sitemaps': sitemaps}),
    (r'^sitemap-(?P<section>.+)\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),
    )   
<commit_msg>Included admin autodiscover in main urls.py<commit_after>'''This package has the url encodings for the main app.'''
from django.conf.urls import patterns, include, url
from django.contrib import admin

from personnel.sitemap import LabPersonnelSitemap
from papers.sitemap import LabPublicationsSitemap

#this dictionary lists sitemap files which will be generated.
sitemaps = {
    'personnel': LabPersonnelSitemap,
    'papers': LabPublicationsSitemap
    }

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

admin.autodiscover()

urlpatterns = patterns('',
    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^communication/', include('communication.urls')), 
    url(r'^papers/', include('papers.urls')),
    (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.index', {'sitemaps': sitemaps}),
    (r'^sitemap-(?P<section>.+)\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}),
    )   

{'fraction_non_alphanumeric': 0.14833005893909626, 'fraction_numerical': 0.0, 'mean_word_length': 4.991176470588235, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '724599', 'n_tokens_mistral': 682, 'n_tokens_neox': 661, 'n_words': 154}