Re: Django 1.5 & Python 2.7.3 - Not able to view pages

2013-03-19 Thread Kamalakannan Srinivasan
Thanks.

On Tuesday, March 19, 2013 9:05:12 PM UTC+5:30, Kamalakannan Srinivasan 
wrote:

> Hi,
>  
> I have just started learning Django 1.5 and am reading The Django Book 
> Chapter 3: Views and URL Confs.
>  
> I set up the Views.py with the following code:
>  
> *from django.http import HttpResponse
>
> def hello(request):
> return HttpResponse("Hello world")*
>  
> Then I created the urls file with the following code:
>  
> *from django.conf.urls.defaults import *
> from mysite.views import hello
>
> urlpatterns = patterns('',
> ('^hello/$', hello),
> )*
> ** 
> After running the server, when I try to access *
> http://127.0.0.1:8000/hello/* *,* the hello 
> word page does not display.
>  
> What could be the issue? Please advise.
>  
> Thanks and regards,
> Kamal
>  
> * *
> *
>
> *
>
>

-- 
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+unsubscr...@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.




Re: Django 1.5 & Python 2.7.3 - Not able to view pages

2013-03-19 Thread Joel Goldstick
On Tue, Mar 19, 2013 at 11:35 AM, Kamalakannan Srinivasan <
kamalakannan.sriniva...@gmail.com> wrote:

> Hi,
>
> I have just started learning Django 1.5 and am reading The Django Book
> Chapter 3: Views and URL Confs.
>
> I set up the Views.py with the following code:
>
> *from django.http import HttpResponse
>
> def hello(request):
> return HttpResponse("Hello world")*
>
> Then I created the urls file with the following code:
>
> *from django.conf.urls.defaults import *
> from mysite.views import hello
>
> urlpatterns = patterns('',
> ('^hello/$', hello),
> )*
> **
> After running the server, when I try to access *
> http://127.0.0.1:8000/hello/* *,* the hello
> word page does not display.
>

The django book is for an earlier version and there may be some issue
between that and 1.5.  I suggest you go to djangoproject.com and go through
the tutorial.  Its good, and only takes an hour or three.

>
> What could be the issue? Please advise.
>
> Thanks and regards,
> Kamal
>
> * *
> *
>
> *
>
>  --
> 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+unsubscr...@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.
>
>
>



-- 
Joel Goldstick
http://joelgoldstick.com

-- 
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+unsubscr...@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.




Django 1.5 & Python 2.7.3 - Not able to view pages

2013-03-19 Thread Kamalakannan Srinivasan
Hi,
 
I have just started learning Django 1.5 and am reading The Django Book 
Chapter 3: Views and URL Confs.
 
I set up the Views.py with the following code:
 
*from django.http import HttpResponse

def hello(request):
return HttpResponse("Hello world")*
 
Then I created the urls file with the following code:
 
*from django.conf.urls.defaults import *
from mysite.views import hello

urlpatterns = patterns('',
('^hello/$', hello),
)*
** 
After running the server, when I try to access *http://127.0.0.1:8000/hello/
* *,* the hello word page does not display.
 
What could be the issue? Please advise.
 
Thanks and regards,
Kamal
 
* *
*

*

-- 
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+unsubscr...@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.