Thanks again :)
That was it.
On Monday, October 30, 2017 at 10:56:34 AM UTC+13, cjacq...@gmail.com wrote:
>
> Did you try http://127.0.0.1:8000/hello/ ?
>
> Le dimanche 29 octobre 2017 21:39:12 UTC+1, Andre Basel a écrit :
>>
>> I am totally new to Django, and worki
n urls.py file like this:
>
>
> from django.conf.urls import url
> from django.contrib import admin
>
> from yourapp.views import *hello* # <<<<<<
>
> urlpatterns = [
> url(r'^admin/', admin.site.urls),
> url(r'^hello/$', hello),
> ]
I am totally new to Django, and working through the following tutorial
https://djangobook.com/views-urlconfs/
Ihavecreatddf the following view in views.py
from django.http import HttpResponse
def hello(request):
return HttpResponse("Hello world")
And then as per the tutorial updated urls
3 matches
Mail list logo