
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()

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

- 
  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 = {
+ #feeds = {
-     'announcements': AnnouncementsFeed,
+ #    'announcements': AnnouncementsFeed,
- }
+ #}
  
- handler500 = 'cronos.login.views.server_error'
+ handler500 = 'apps.login.views.server_error'
  
  urlpatterns = patterns('',
-     (r'^$', 'cronos.accounts.views.index'),
+     (r'^$', 'apps.accounts.views.index'),
-     (r'^about/', 'cronos.accounts.views.about'),
+     (r'^about/', 'apps.accounts.views.about'),
-     (r'^announcements/', 'cronos.announcements.views.announcements'),
+ #    (r'^announcements/', 'apps.announcements.views.announcements'),
-     (r'^dionysos/', 'cronos.dionysos.views.dionysos'),
+     (r'^dionysos/', 'apps.dionysos.views.dionysos'),
-     (r'^eclass/', 'cronos.eclass.views.eclass'),
+     (r'^eclass/', 'apps.eclass.views.eclass'),
-     (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
+ #    (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
-     (r'^library/', 'cronos.library.views.library'),
+     (r'^library/', 'apps.library.views.library'),
-     (r'^login/', 'cronos.login.views.cronos_login'),
+     (r'^login/', 'apps.login.views.cronos_login'),
      (r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/login'}),
-     (r'^preferences/', 'cronos.accounts.views.accounts_settings'),
+     (r'^preferences/', 'apps.accounts.views.accounts_settings'),
-     (r'^refrigerators/', 'cronos.refrigerators.views.refrigerators'),
+     (r'^refrigerators/', 'apps.refrigerators.views.refrigerators'),
-     (r'^teachers/', 'cronos.teachers.views.teachers'),
+     (r'^teachers/', 'apps.teachers.views.teachers'),
  )
  
  urlpatterns += staticfiles_urlpatterns()
  
Disable feeds/announcements temporarily, it should be back alive now
## Code Before:

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()

## Instruction:
Disable feeds/announcements temporarily, it should be back alive now
## Code After:
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()
