Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

765
Vistas
No patterns or invalid patterns

Here are my files:

urls.py

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^prediction/', include('prediction.urls'))
]

prediction/urls.py

urlPatterns = [
    url(r'^$', views.post_list, name='post_list')
]

View.py

def post_list(request):
    return HttpResponse('Hello')

I'm receving an error saying that prediction/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. I've cross checked multiple sources and documentations. I know this is a basic question, but I just can't seem to spot any syntax or possibly regex mistake that's producing this error.

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

urlPatterns = [

Looks like your P is capitalized when it shouldn't be.

over 4 years ago · Santiago Trujillo Denunciar

0

change urlPatterns in your prediction/urls.py to urlpatterns

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda