Follow django-chickpea rename to django-leaflet-storage

This commit is contained in:
Yohan Boniface 2012-12-22 20:32:11 +01:00
parent ef3b7ed150
commit 40c7fdf085
15 changed files with 21 additions and 21 deletions

View file

@ -5,7 +5,7 @@ About
-----
YouMap let you create map with OpenStreetMap layers in a minute and embed them in your site.
*Be cause we think that the more OSM will be used, the more OSM will be ''cured''.*
It uses `django-chickpea <https://github.com/yohanboniface/django-chickpea>`_, built on top of Django and Leaflet.
It uses `django-leaflet-storage <https://github.com/yohanboniface/django-leaflet-storage>`_, built on top of Django and Leaflet.
Quickstart

View file

@ -7,7 +7,7 @@
django==1.4.2
#south==0.7.6
git+git://github.com/petry/django-foundation.git
git+git://github.com/yohanboniface/django-chickpea.git
git+git://github.com/yohanboniface/django-leaflet-storage.git
git+git://github.com/frankban/django-endless-pagination.git
hg+https://bitbucket.org/liberation/sesql
django_compressor

View file

@ -34,7 +34,7 @@ CHARSET = "utf-8"
from sesql.fields import *
from sesql.sources import *
from django.db.models import Q
from chickpea import models
from leaflet_storage import models
#
# Select the ORM to use

View file

@ -25,7 +25,7 @@ LANGUAGES = (
SECRET_KEY = 'j6fly6aomgo6!3_$v#9kvhw-%wgs1@1l6x+4nr73tmn40=&amp;_@&amp;'
INSTALLED_APPS = (
'chickpea',
'leaflet_storage',
'foundation',
'endless_pagination',
'youmap',

View file

@ -21,7 +21,7 @@
<div class="twelve columns">
<div class="row map_list">
{% if maps %}
{% include "chickpea/map_list.html" %}
{% include "leaflet_storage/map_list.html" %}
{% else %}
<div class="twelve mobile-six columns">
{{ current_user }} has not map yet.

View file

@ -1,20 +1,20 @@
{% extends "base.html" %}
{% load chickpea_tags compress %}
{% load leaflet_storage_tags compress %}
{% block title %}{{ map.name }}{% endblock %}
{% block body_class %}map_detail{% endblock %}
{% block extra_head %}
{% compress css %}
{% chickpea_css %}
{% leaflet_storage_css %}
<link rel="stylesheet" href="{{ STATIC_URL }}storage/contrib/css/storage.ui.default.css">
{% endcompress %}
{% compress js %}
{% chickpea_js %}
{% leaflet_storage_js %}
{% endcompress %}
{% endblock %}
{% block content %}
{% block map_init %}
{% include "chickpea/map_init.html" %}
{% include "leaflet_storage/map_init.html" %}
{% endblock %}
{% endblock %}

View file

@ -1,4 +1,4 @@
{% load chickpea_tags endless %}
{% load leaflet_storage_tags endless %}
{% paginate 5 maps %}

View file

@ -1,4 +1,4 @@
{% load chickpea_tags %}
{% load leaflet_storage_tags %}
<h3>Choose your tilelayer</h3>
<form action="{% url map_update_tilelayers map.pk %}" method="post" id="map_edit">
{% csrf_token %}

View file

@ -1,13 +1,13 @@
{% extends "base.html" %}
{% load chickpea_tags compress %}
{% load leaflet_storage_tags compress %}
{% block extra_head %}
{% compress css %}
{% chickpea_css %}
{% leaflet_storage_css %}
{% endcompress css %}
{% compress js %}
{% chickpea_js %}
{% leaflet_storage_js %}
{% endcompress js %}
{% endblock %}
@ -90,7 +90,7 @@
<div class="row">
<div class="twelve columns">
<div class="row map_list">
{% include "chickpea/map_list.html" %}
{% include "leaflet_storage/map_list.html" %}
</div>
</div>
</div>

View file

@ -21,7 +21,7 @@
<div class="twelve columns">
<div class="row map_list">
{% if maps %}
{% include "chickpea/map_list.html" %}
{% include "leaflet_storage/map_list.html" %}
{% else %}
<div class="twelve mobile-six columns">
Not map found.

View file

@ -16,7 +16,7 @@ urlpatterns = patterns('',
url(r'^$', views.home, name="home"),
url(r'^search/$', views.search, name="search"),
url(r'^user/(?P<username>[-_\w]+)/$', views.user_maps, name='user_maps'),
(r'', include('chickpea.urls')),
(r'', include('leaflet_storage.urls')),
)
if settings.DEBUG and settings.MEDIA_ROOT:

View file

@ -5,12 +5,12 @@ from django.db.models import Q
from sesql.shortquery import shortquery
from chickpea.models import Map
from leaflet_storage.models import Map
class Home(TemplateView):
template_name = "youmap/home.html"
list_template_name = "chickpea/map_list.html"
list_template_name = "leaflet_storage/map_list.html"
def get_context_data(self, **kwargs):
maps = Map.objects.order_by('-modified_at')[:100]
@ -36,7 +36,7 @@ class UserMaps(DetailView):
model = User
slug_url_kwarg = 'username'
slug_field = 'username'
list_template_name = "chickpea/map_list.html"
list_template_name = "leaflet_storage/map_list.html"
context_object_name = "current_user"
def get_context_data(self, **kwargs):
@ -60,7 +60,7 @@ user_maps = UserMaps.as_view()
class Search(TemplateView):
template_name = "youmap/search.html"
list_template_name = "chickpea/map_list.html"
list_template_name = "leaflet_storage/map_list.html"
def get_context_data(self, **kwargs):
q = self.request.GET['q']