From a08f05e2039a473153f2b29d94496d1463632459 Mon Sep 17 00:00:00 2001 From: Bryce Nesbitt Date: Wed, 27 May 2015 22:02:48 -0700 Subject: [PATCH] Found some errors when trying to install uMap --- .gitignore | 3 ++- README.rst | 18 ++++++++++++------ umap/templates/auth/user_detail.html | 2 +- 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 50321a5d..e88576f4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ umap/settings/local.py umap/settings/local/* docs/_build -umap/remote_static \ No newline at end of file +umap/remote_static +.idea diff --git a/README.rst b/README.rst index 38e5f82d..c67b3609 100644 --- a/README.rst +++ b/README.rst @@ -13,14 +13,15 @@ Quickstart Create a geo aware database. See `Geodjango doc `_ for backend installation. -Create a virtualenv:: +Create a virtual environment:: - mkvirtualenv umap + virtualenv umap + source umap/bin/activate Install dependencies and project:: - cd path/to/umap/repository - git checkout 0.7.6 + cd YOUR_SOURCE_DIR + git clone git clone https://bitbucket.org/yohanboniface/umap.git pip install -r requirements.txt pip install -e . @@ -72,14 +73,19 @@ Collect and compress the statics:: python manage.py collectstatic python manage.py compress +Add a site object:: + python manage.py shell + from django.contrib.sites.models import Site + Site.objects.create(name='example.com', domain='example.com') + Start the server:: python manage.py runserver 0.0.0.0:8000 Go to the admin (http://localhost:8000/admin/) and add: -- almost one license -- almost one tilelayer +- at least one license +- at least one tile layer Translating ----------- diff --git a/umap/templates/auth/user_detail.html b/umap/templates/auth/user_detail.html index 1d697a53..5f7aa5b7 100644 --- a/umap/templates/auth/user_detail.html +++ b/umap/templates/auth/user_detail.html @@ -12,7 +12,7 @@ {% include "leaflet_storage/map_list.html" %} {% else %}
- {{ current_user }} has not map yet. + {{ current_user }} has no maps.
{% endif %}