On Sat, May 21, 2011 at 2:14 PM, Mateusz Marzantowicz < mmarzantow...@gmail.com> wrote:
> On Sat, May 21, 2011 at 4:50 AM, Dagon <pyt...@dagon.us> wrote: > >> I am a newbie to both Python and Django. >> Why does urlpatterns = patterns('', (r'^People/$', >> 'iFriends.People.views.index') get me the following error message: >> >> Using the URLconf defined in iFriends.urls, Django tried these URL >> patterns, in this order: >> ^People/$ >> >> The current URL, , didn't match any of these. >> >> If I use the pattern (r'^$', 'iFriends.People.views.index') I get the >> desired results. >> >> Charles >> >> > Please provide some more information about the layout of your > project/application. > As far as I can see from your mail you have project named iFriends and > People application inside. > For that assumption > Sorry for that incomplete mail. Below goes the rest of it: In your project settings.py file inside urlpatterns() place the line that looks similar to this one below: (r'^People/', include('iFriends.People.urls')), Than create file urls.py inside your People application that do the magic. It might look something like: (r'^$', 'some.view.function'), Of course that are only snippets of code and you must place them in the right place. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.