For future reference, this mailing list is for the development of Django 
itself, not for support. Use the django-users mailing list for that, or IRC 
#django on freenode, or a site like Stack Overflow.

On Monday, April 23, 2018 at 9:18:11 AM UTC-4, Avitab Ayan Sarmah wrote:
>
> Thank you :)
>
> On Mon 23 Apr, 2018, 5:02 PM krazysoccerboy, <[email protected] 
> <javascript:>> wrote:
>
>> add /polls at the end of your url or if you want this to be executed in 
>> home page then in mysite/urls.py remove 'polls/' in url and just leave with 
>> those quotation
>>
>> On Sunday, April 22, 2018 at 11:00:27 PM UTC+5:45, Avitab Ayan Sarmah 
>> wrote:
>>>
>>> polls/views.py
>>>
>>> from django.http import HttpResponse
>>>
>>> def index(request):
>>>     return HttpResponse("Hello, world. You're at the polls index.")
>>>
>>>
>>> polls/urls.py
>>>
>>> from django.urls import path
>>> from . import views
>>> urlpatterns = [
>>>     path('', views.index, name='index'),]
>>>
>>>
>>> mysite/urls.py
>>>
>>> from django.contrib import adminfrom django.urls import include, path
>>> urlpatterns = [
>>>     path('polls/', include('polls.urls')),
>>>     path('admin/', admin.site.urls),]
>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/django-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-developers/f361ec8a-c24e-4a51-8084-61f3821d2267%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-developers/f361ec8a-c24e-4a51-8084-61f3821d2267%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/1d03bad8-1c9f-4df3-a020-6f7174432e23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to