Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3877454
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:29:59+00:00 2026-05-19T22:29:59+00:00

I have a root urls.py and an app urls.py. In my root I have

  • 0

I have a root urls.py and an app urls.py. In my root I have this:

from django.conf.urls.defaults import *
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
    (r'^$', include('realestate.properties.urls')),
    (r'^admin/', include(admin.site.urls)),
)

In my app urls I have the following

from django.conf.urls.defaults import *

urlpatterns = patterns('realestate.properties.views',
    url(r'^$', 'property_list', {'template_name': 'properties/property_list.html'}, name='property_list'),
    url(r'^(?P<slug>[-\w]+)/$', 'property_detail', { 'template': 'property_detail.html' }, name='property_details'),
)

now in my template I have a link to the details view, which looks like this:

{% url property_details property.slug %}

Everytime I render this page i get the error:

*Caught NoReverseMatch while rendering: Reverse for ‘property_details’ with arguments ‘(u’111-front-st’,)’ and keyword arguments ‘{}’ not found.*

No matter what I do, I get that error. I tried capturing just the id and nothing is working, i am not sure why, I have used url’s many times before so I am really confused if I am missing something obvious. Any see anything wrong here?

Thanks

Jeff

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:29:59+00:00Added an answer on May 19, 2026 at 10:29 pm

    I think you need to drop the $ from your urlconf, where you include the app’s urls. Probably you can remove the ^ too.

    urlpatterns = patterns('',
        (r'^', include('realestate.properties.urls')),
        (r'^admin/', include(admin.site.urls)),
    )
    

    http://docs.djangoproject.com/en/1.2/topics/http/urls/#including-other-urlconfs

    Note that the regular expressions in
    this example don’t have a $
    (end-of-string match character) but do
    include a trailing slash. Whenever
    Django encounters include(), it chops
    off whatever part of the URL matched
    up to that point and sends the
    remaining string to the included
    URLconf for further processing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Django project with one app called subscribe . In root urls.py
In my project I have one app which have its own urls.py like this
I have these URLs in my project .urls: urlpatterns = patterns('', (r'^categories/', include('category.urls')), )
I have a root view controller with no nib file, I tried adding this
I have string like \LESSING\root\cimv2:Win32_UserAccount.Domain=LESSING,Name=Admin How to convert it to LESSING\Admin using Framework?
I have android device with root and i try to implement some small app.
I use Django 1.3. I have a clean project with: settings.py import os, sys
I have a config.ru for Rails 3.0.5 app like this : require ::File.expand_path('../config/environment', __FILE__)
I have an app, which I want to be the root of the website.
I have a simple Rack app hosted on Heroku. config.ru: use Rack::Static, :urls =>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.