|
|
@@ -3,19 +3,21 @@ from counter.rss import SeumFeed
|
|
3
|
3
|
from django.contrib.auth import views as auth_views
|
|
4
|
4
|
from django.views.generic.base import RedirectView
|
|
5
|
5
|
|
|
6
|
|
-from .views import views, hashtag, counter, user
|
|
|
6
|
+from .views import counter, hashtag, home, reset, user
|
|
7
|
7
|
|
|
8
|
8
|
urlpatterns = [
|
|
9
|
|
- url(r'^$', views.home, name='home'),
|
|
|
9
|
+ url(r'^$', home.index, name='home'),
|
|
|
10
|
+ url(r'^toggle-notif/$', home.toggleEmailNotifications,
|
|
|
11
|
+ name='toggle_email_notifications'),
|
|
|
12
|
+ url(r'^toggle-sort-score/$', home.toggleScoreSorting,
|
|
|
13
|
+ name='toggle_sort_score'),
|
|
|
14
|
+
|
|
10
|
15
|
url(r'^reset-counter/$', counter.reset_counter, name='reset-counter'),
|
|
11
|
16
|
url(r'^counter/(?P<id_counter>\d+)/$', counter.get, name='counter'),
|
|
|
17
|
+
|
|
12
|
18
|
url(r'^hashtag/(?P<keyword>.+)/$', hashtag.get, name='hashtag'),
|
|
13
|
19
|
|
|
14
|
|
- url(r'^like/$', views.like, name='like'),
|
|
15
|
|
- url(r'^toggle-notif/$', views.toggleEmailNotifications,
|
|
16
|
|
- name='toggle_email_notifications'),
|
|
17
|
|
- url(r'^toggle-sort-score/$', views.toggleScoreSorting,
|
|
18
|
|
- name='toggle_sort_score'),
|
|
|
20
|
+ url(r'^like/$', reset.like, name='like'),
|
|
19
|
21
|
|
|
20
|
22
|
url(r'^create_user/$', user.create, name='create_user'),
|
|
21
|
23
|
|