Re: Proble understanding DetailView url doesn't match the slug

2015-02-19 Thread
What is the specific error Django printed out ? We can narrow down the cause by checking the errors maybe. *Best Regards!* *Chao Yan--About me : http://about.me/chao_yan * *My twitter: @yanchao727 * *My Weibo: http://weibo.co

Re: Writing your first Django app, part 5 Testing

2015-02-21 Thread
I think the purpose here is to test reverse() function. As long as you got code 200, it's ok whatever html it returns. Is it right ? *Best Regards!* *Chao Yan--About me : http://about.me/chao_yan * *My twitter: @yanchao727 *

Re: template_dir , template_loader missing in settings.py

2015-02-25 Thread
TEMPLATE_DIRS = ( join(BASE_DIR, 'templates'), ) As a beginner, I would recommend using cookiecutter-django to initiate a project and take look. *Best Regards!* *Chao Yan--About me : http://about.me/chao_yan

Re: template_dir , template_loader missing in settings.py

2015-02-25 Thread
Weibo: http://weibo.com/herewearenow <http://weibo.com/herewearenow>* *--* 2015-02-25 20:54 GMT+08:00 严超 : > TEMPLATE_DIRS = ( > join(BASE_DIR, 'templates'), > ) > As a beginner, I would recommend using cookiecutter-django > <https://github.com/pyda