diff --git a/myproject1/myproject/urls.py b/myproject1/myproject/urls.py index 3f5b0e64cfc62cdbf0893dc5250c61eb3d135afd..166021f39010c66c5f5b54b5e4c462ba680ed6f2 100644 --- a/myproject1/myproject/urls.py +++ b/myproject1/myproject/urls.py @@ -14,7 +14,7 @@ urlpatterns = [ url(r'^accounts/', include('accounts.urls')), url(r'contact/$',contact,name="contact"), url(r'^about/$', views.about,name="about"), - url(r'^$', article_views.article_list, name="home"), + url(r'^$', views.homepage, name="home"), ] urlpatterns += staticfiles_urlpatterns() diff --git a/myproject1/templates/homepage.html b/myproject1/templates/homepage.html index 63b1119b71a5187f6ceb7f04654983ad5519e05f..ccef6305776dc9e77ad24c2687e8b8bfb6bfd415 100644 --- a/myproject1/templates/homepage.html +++ b/myproject1/templates/homepage.html @@ -1,3 +1,4 @@ +<!-- <!DOCTYPE html> <html lang="en"> <head> @@ -8,4 +9,7 @@ <h1>This is Homepage</h1> <p>Welcome to Django</p> </body> -</html> \ No newline at end of file +</html>--> +<script> + window.location.replace("./articles/") +</script> \ No newline at end of file