Tuesday, April 30, 2013

Re: noob "hello world" problem with URLconf

^ is only start with hello. it may be your issues in urls.py



Karl

Programmer at Olivet Institute of Technology
http://oit.olivetuniversity.edu/

在 2013年4月30日星期二UTC-4下午1时25分41秒,lev...@gmail.com写道:
what´s up everyone. I just installed Django for the first time, leaving php in the closet for a while. 

My problem is concerning the url patterns. I´ve pasted the example "Hello world" code directly from the django book to urls.py and views.py so I´ll leave out all extra code since it has something to do with my configuration.



This works:
url(r'hello/$', hello),

This doesn´t:
url(r'^hello/$', hello),

Hopefully someone can help.

N

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment