From 891cd28c5dddbddec50d0c1492ae0f0d5737073f Mon Sep 17 00:00:00 2001 From: Muhammad Ali <muhammad.ali@stud.th-deg.de> Date: Wed, 26 Jun 2019 09:47:28 +0200 Subject: [PATCH] Homepage Tagging --- myproject1/myproject/urls.py | 2 +- myproject1/templates/homepage.html | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/myproject1/myproject/urls.py b/myproject1/myproject/urls.py index 3f5b0e6..166021f 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 63b1119..ccef630 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 -- GitLab