Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37857381
en ru br
ALT Linux repos
S:0.1.5-alt3.1

Group :: Development/Python3
RPM: python3-module-django-facebook-comments

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: porting-on-python3.patch
Download


diff --git a/facebook_comments/tests.py b/facebook_comments/tests.py
index f6a5568..d867c43 100644
--- a/facebook_comments/tests.py
+++ b/facebook_comments/tests.py
@@ -1,7 +1,7 @@
-from django.utils import unittest
+import unittest
 from django.template import Context, Template
 from django.http import HttpRequest
-from models import FacebookCommentCache
+from .models import FacebookCommentCache
 from views import recache
 import os
 
diff --git a/facebook_comments/urls.py b/facebook_comments/urls.py
index fd3dfc9..cff4f79 100644
--- a/facebook_comments/urls.py
+++ b/facebook_comments/urls.py
@@ -1,7 +1,7 @@
-from django.conf.urls.defaults import patterns, url, include
+from django.conf.urls import url, include
 
 
-urlpatterns = patterns('',
-	url(r'^recache/', 'facebook_comments.views.recache', name="facebook_comments_recache"),
-	url(r'^channel/', 'facebook_comments.views.channel', name="facebook_comments_channel"),
+urlpatterns = ('',
+	url(r'^recache/', include('facebook_comments.views.recache'), name="facebook_comments_recache"),
+	url(r'^channel/', include('facebook_comments.views.channel'), name="facebook_comments_channel"),
 )
-- 
2.24.1
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin