# -*- coding: utf-8 -*-

from django.conf.urls.defaults import patterns, include, url
from django.conf import settings
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from cronos.announcements.feeds import AnnouncementsFeed

feeds = {
    'announcements': AnnouncementsFeed,
}

handler500 = 'cronos.login.views.server_error'

urlpatterns = patterns('',
    (r'^$', 'cronos.accounts.views.index'),
    (r'^about/', 'cronos.accounts.views.about'),
    (r'^announcements/', 'cronos.announcements.views.announcements'),
    (r'^dionysos/', 'cronos.dionysos.views.dionysos'),
    (r'^eclass/', 'cronos.eclass.views.eclass'),
    (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
    (r'^library/', 'cronos.library.views.library'),
    (r'^login/', 'cronos.login.views.cronos_login'),
    (r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/login'}),
    (r'^preferences/', 'cronos.accounts.views.accounts_settings'),
    (r'^refrigerators/', 'cronos.refrigerators.views.refrigerators'),
    (r'^teachers/', 'cronos.teachers.views.teachers'),
)

urlpatterns += staticfiles_urlpatterns()

# -*- coding: utf-8 -*-

#from apps.announcements.feeds import AnnouncementsFeed
from django.conf.urls.defaults import patterns, include, url
from django.conf import settings
from django.contrib.staticfiles.urls import staticfiles_urlpatterns

#feeds = {
#    'announcements': AnnouncementsFeed,
#}

handler500 = 'apps.login.views.server_error'

urlpatterns = patterns('',
    (r'^$', 'apps.accounts.views.index'),
    (r'^about/', 'apps.accounts.views.about'),
#    (r'^announcements/', 'apps.announcements.views.announcements'),
    (r'^dionysos/', 'apps.dionysos.views.dionysos'),
    (r'^eclass/', 'apps.eclass.views.eclass'),
#    (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
    (r'^library/', 'apps.library.views.library'),
    (r'^login/', 'apps.login.views.cronos_login'),
    (r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/login'}),
    (r'^preferences/', 'apps.accounts.views.accounts_settings'),
    (r'^refrigerators/', 'apps.refrigerators.views.refrigerators'),
    (r'^teachers/', 'apps.teachers.views.teachers'),
)

urlpatterns += staticfiles_urlpatterns()

Disable feeds/announcements temporarily, it should be back alive now
Disable feeds/announcements temporarily, it should be back alive now
