# Path: website/jdpages/views.py
# class OccuranceJDView(OccurrenceView):
# 
#     def get_context_data(self, **kwargs):
#         context = super().get_context_data(**kwargs)
#         context['page_for_sidebars'] = HomePage.objects.all().first()
#         return context


from django.conf.urls import patterns, include, url
from django.conf.urls.i18n import i18n_patterns
from django.contrib import admin
from django.views.defaults import page_not_found
from website.jdpages.views import OccuranceJDView


admin.autodiscover()

# Add the urlpatterns for any custom Django applications here.
# You can also change the ``home`` view to add your own functionality
# to the project's homepage.

urlpatterns = i18n_patterns(
    "",
    # Change the admin prefix here to use an alternate URL for the
    # admin interface, which would be marginally more secure.
    ("^admin/", include(admin.site.urls)),
)

urlpatterns += patterns('',
                        url(r'^captcha/', include('captcha.urls')),
                        )

urlpatterns += patterns('',
                        url("^nieuwsbrief/", include('hemres.urls')),
                        )

# Disable commenting functionality by redirecting all comment
# submissions to a page_not_found (i.e. a 404 page).
urlpatterns += patterns('',
                        url(r'^comment/', page_not_found),
                        )

# Enable robots.txt file generation

# Path: website/jdpages/views.py
# class OccuranceJDView(OccurrenceView):
# 
#     def get_context_data(self, **kwargs):
#         context = super().get_context_data(**kwargs)
#         context['page_for_sidebars'] = HomePage.objects.all().first()
#         return context


# Path: website/urls.py
from django.conf.urls import patterns, include, url
from django.conf.urls.i18n import i18n_patterns
from django.contrib import admin
from django.views.defaults import page_not_found
from website.jdpages.views import OccuranceJDView



admin.autodiscover()

# Add the urlpatterns for any custom Django applications here.
# You can also change the ``home`` view to add your own functionality
# to the project's homepage.

urlpatterns = i18n_patterns(
    "",
    # Change the admin prefix here to use an alternate URL for the
    # admin interface, which would be marginally more secure.
    ("^admin/", include(admin.site.urls)),
)

urlpatterns += patterns('',
                        url(r'^captcha/', include('captcha.urls')),
                        )

urlpatterns += patterns('',
                        url("^nieuwsbrief/", include('hemres.urls')),
                        )

# Disable commenting functionality by redirecting all comment
# submissions to a page_not_found (i.e. a 404 page).
urlpatterns += patterns('',
                        url(r'^comment/', page_not_found),
                        )

# Enable robots.txt file generation

urlpatterns += patterns('',