Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

763
Views
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 answers
Answer question

0

urlPatterns = [

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

over 4 years ago · Santiago Trujillo Report

0

change urlPatterns in your prediction/urls.py to urlpatterns

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!