Commits

Anonymous committed 122fc9c

Fixed typo
Cleaned up from pylint

  • Participants
  • Parent commits 974295f

Comments (0)

Files changed (4)

File gnocchi/cms/management/commands/dump_templates.py

-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
 from optparse import make_option
 from gnocchi.cms.models import Template
 import os

File gnocchi/cms/management/commands/load_templates.py

-from django.core.management.base import BaseCommand, CommandError
+from django.core.management.base import BaseCommand
 from optparse import make_option
 from gnocchi.cms.models import Template
 import os

File gnocchi/cms/middleware.py

             request.site = Site.objects.get(domain=hostname)
         except Site.DoesNotExist:
             # If this site doesn't exist, revert to our SITE_ID
-            requset.site = Site.objects.get_current()
+            request.site = Site.objects.get_current()
 
         return None

File gnocchi/cms/urls.py

-from django.conf.urls.defaults import *
+from django.conf.urls.defaults import patterns
 
 urlpatterns = patterns('gnocchi.cms.views',
     (r'^css/(?P<name>.*)\.css$', 'style_sheet',),