Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Determining Web Address In Django


urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('blog.urls'))
]
#What Comes After http://127.0.0.1:8000?
#now, all the stuff in the blog folder(e.g. urls) will show up after 127.0.0.1:8000
#online tutorials usually teach you to go  http://127.0.0.1:8000/blog
#but the above setting will work since instead of 'blog/' we have to set to ''
 
PREVIOUS NEXT
Tagged: #Determining #Web #Address #In #Django
ADD COMMENT
Topic
Name
1+5 =