diff --git a/bloomhunt/urls.py b/bloomhunt/urls.py index 113d477..64afebc 100644 --- a/bloomhunt/urls.py +++ b/bloomhunt/urls.py @@ -16,9 +16,11 @@ Including another URLconf from django.conf.urls import url from django.contrib import admin from django.urls import include, path +from django.views.generic import RedirectView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^mobile/', include('mobile.urls')), - url(r'^map/', include('map.urls')) + url(r'^map/', include('map.urls'), name='map'), + url(r'', RedirectView.as_view(url='/map/', permanent=False)) ] diff --git a/mobile/templates/mobile/index.html b/mobile/templates/mobile/index.html index 283002d..088c96d 100644 --- a/mobile/templates/mobile/index.html +++ b/mobile/templates/mobile/index.html @@ -6,5 +6,5 @@

Hunt blooming trees in your area.

-Scan a blooming tree +Scan a blooming tree {% endblock %} diff --git a/mobile/templates/mobile/scanned.html b/mobile/templates/mobile/scanned.html index 954522c..a021c9c 100644 --- a/mobile/templates/mobile/scanned.html +++ b/mobile/templates/mobile/scanned.html @@ -7,7 +7,7 @@ tree is blooming.

You may give it a name now

-
+ {% csrf_token %} diff --git a/mobile/templates/mobile/thankyou.html b/mobile/templates/mobile/thankyou.html index 0f69b97..91fd4b7 100644 --- a/mobile/templates/mobile/thankyou.html +++ b/mobile/templates/mobile/thankyou.html @@ -7,6 +7,6 @@

Does that feel great? It should! You really achieved something in your life!

-Back to hunting +Back to hunting {% endblock %}