christian 6 лет назад
Родитель
Сommit
ac3da881b3
4 измененных файлов: 6 добавлений и 4 удалений
  1. +3
    -1
      bloomhunt/urls.py
  2. +1
    -1
      mobile/templates/mobile/index.html
  3. +1
    -1
      mobile/templates/mobile/scanned.html
  4. +1
    -1
      mobile/templates/mobile/thankyou.html

+ 3
- 1
bloomhunt/urls.py Просмотреть файл

@@ -16,9 +16,11 @@ Including another URLconf
from django.conf.urls import url from django.conf.urls import url
from django.contrib import admin from django.contrib import admin
from django.urls import include, path from django.urls import include, path
from django.views.generic import RedirectView


urlpatterns = [ urlpatterns = [
url(r'^admin/', admin.site.urls), url(r'^admin/', admin.site.urls),
url(r'^mobile/', include('mobile.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))
] ]

+ 1
- 1
mobile/templates/mobile/index.html Просмотреть файл

@@ -6,5 +6,5 @@


<p>Hunt blooming trees in your area.</p> <p>Hunt blooming trees in your area.</p>


<a class="btn btn-default" id="btn_scan" href="/mobile/scan">Scan a blooming tree</a>
<a class="btn btn-default" id="btn_scan" href="{% url 'mobile:scan' %}">Scan a blooming tree</a>
{% endblock %} {% endblock %}

+ 1
- 1
mobile/templates/mobile/scanned.html Просмотреть файл

@@ -7,7 +7,7 @@ tree is blooming.<p>


<p>You may give it a name now</p> <p>You may give it a name now</p>


<form action="/mobile/addtree/" method="post">
<form action="{% url 'mobile:addtree' %}" method="post">
{% csrf_token %} {% csrf_token %}
<input type="text" name="name"> <input type="text" name="name">
<input type="hidden" name="tree" value="{{ tree.name }}"> <input type="hidden" name="tree" value="{{ tree.name }}">


+ 1
- 1
mobile/templates/mobile/thankyou.html Просмотреть файл

@@ -7,6 +7,6 @@
<p>Does that feel great? It should! You really achieved something in <p>Does that feel great? It should! You really achieved something in
your life!</p> your life!</p>


<a class="btn btn-default" href="/mobile">Back to hunting</a>
<a class="btn btn-default" href="{% url 'mobile:index' %}">Back to hunting</a>


{% endblock %} {% endblock %}

Загрузка…
Отмена
Сохранить