hi all,

I'm new to django and python. I have a small question about
urlpatterns and it may sound silly to some so please bear with me.

I noticed a bit of difference between a urlpatterns callback function
of an admin site from that of an app. The callback function for an app
requires single quotes while that admin callback function does not.
Removing the single quotes around the callback function name in an app
would result in an error -AND- adding single quotes around the
callback function of the admin site would result in an error.

example,
...
urlpatterns = patterns('',
         (r'^admin/(.*)', admin.site.root),
         (r'^testapp/', 'testproject.testapp.views.index'),
)
...

So, what is the difference between a callback function that is
enclosed on single quotes from that which is not?

Thanks in advance... django is FUN!

-- 
There are seven words in this sentence.

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to