Erro ao rodar
ImproperlyConfigured at / The included urlconf '<module 'usuario.urls' from '/home/sandroni/django/socialconnect/usuario/urls.py'>' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import. Request Method: GET Request URL: http://localhost:8000/ Django Version: 1.7.4 Exception Type: ImproperlyConfigured Exception Value:The included urlconf '<module 'usuario.urls' from '/home/sandroni/django/socialconnect/usuario/urls.py'>' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import. Exception Location: /usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py in url_patterns, line 381 Python Executable: /usr/bin/python Python Version: 2.7.15 Python Path:['/home/sandroni/django/socialconnect', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/gtk-2.0'] Server time: Wed, 29 Aug 2018 00:16:57 +0000
Abaixo o código que informar estar o problema
from django.conf.urls import patterns, url from usuario.views import RegistraUsuario
urlsPattern = patterns('', url(r'^registrar/$',RegistraUsuario.as_view(),name='registrar') )