Re: View not working / how can I test it in the shell?

2013-10-13 Thread Mario R. Osorio
Thanks Kelvin Dtb/Gby === Mario R. Osorio "... Begin with the end in mind ..." http://www.google.com/profiles/nimbiotics On Sun, Oct 13, 2013 at 12:34 AM, Kelvin Wong wrote: > You need to understand what ALLOWED_HOSTS does if you want to ever deploy > your app. Please

Re: View not working / how can I test it in the shell?

2013-10-12 Thread Kelvin Wong
You need to understand what ALLOWED_HOSTS does if you want to ever deploy your app. Please read it. https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts Check your settings in the shell >>> from django.conf import settings as s >>> s.DEBUG True >>> s.ALLOWED_HOSTS ['.example.com',

Re: View not working / how can I test it in the shell?

2013-10-11 Thread Mario R. Osorio
>From the server; I am getting the page I need but the block where the data from the view in question is supposed to be comes out empty. >From the django.test.client's Client() response.status.code is 200. I am indeed geting the ALLOWED_HOSTS warning, which I don't fully understand and don't

Re: View not working / how can I test it in the shell?

2013-10-11 Thread Kelvin Wong
In the shell: >>> from django.test import Client >>> c = Client() >>> r = c.get('/about') >>> r.context https://docs.djangoproject.com/en/1.5/topics/testing/overview/#module-django.test.client K On Friday, October 11, 2013 3:14:38 PM UTC-7, Mario Osorio wrote: > > You are right, I fixed that

Re: View not working / how can I test it in the shell?

2013-10-11 Thread Mario Osorio
You are right, I fixed that after posting as someone else point it out to me, but this is not working out for me nonetheless On Friday, October 11, 2013 6:11:54 PM UTC-4, donarb wrote: > > On Friday, October 11, 2013 2:48:13 PM UTC-7, Mario Osorio wrote: >> >> Hello all, working with mezzanine,

Re: View not working / how can I test it in the shell?

2013-10-11 Thread donarb
On Friday, October 11, 2013 2:48:13 PM UTC-7, Mario Osorio wrote: > > Hello all, working with mezzanine, I created in an app (newsroom) folder, > a views.py http://dpaste.com/1413587/. This view is an addition to the > blog app in site-packages. I then I put a section in my blog_post_list.html

View not working / how can I test it in the shell?

2013-10-11 Thread Mario Osorio
Hello all, working with mezzanine, I created in an app (newsroom) folder, a views.py http://dpaste.com/1413587/. This view is an addition to the blog app in site-packages. I then I put a section in my blog_post_list.html template file to (supposedly) show the data from that view