15 Commits 1f65cad593 ... f2891375eb

Author SHA1 Message Date
  jocelyn f2891375eb Merge branch 'sileht/req' of sileht/wifi-with-me into master 8 years ago
  Mehdi Abaakouk ddcd5b6f33 requirements: accept bug-fixes/security releases 8 years ago
  Jocelyn Delalande a903943aae Offer default values for new ISP settings 8 years ago
  Jocelyn Delalande 5b4253e7ba Put the welcome_speech template at the right place. 8 years ago
  Jocelyn Delalande 481578596a Mention that the `ISP` setting is mandatory 8 years ago
  jocelyn 8595bafbb0 Merge branch 'sileht/address-example' of sileht/wifi-with-me into master 8 years ago
  jocelyn 7650fb000d Merge branch 'sileht/welcome-page' of sileht/wifi-with-me into master 8 years ago
  Jocelyn Delalande 46e2a31317 Fix admin page of contributions. 8 years ago
  Mehdi Abaakouk dc0aae5c54 Allow to configure address example 8 years ago
  Mehdi Abaakouk 1f65cad593 Allow to configure address example 8 years ago
  Mehdi Abaakouk 6d71186985 Allow customize title 8 years ago
  Mehdi Abaakouk fc057149d5 Allow customize title 8 years ago
  Mehdi Abaakouk 6b6167ec27 Move welcome speech into a template 8 years ago
  Mehdi Abaakouk 3bb1bf67fd Move welcome speech into a template 8 years ago
  Mehdi Abaakouk 929faa4baf requirements: accept bug-fixes/security releases 8 years ago

+ 34 - 26
README.md

@@ -24,34 +24,13 @@ For development, install `dev.txt` instead:
 Set up configuration
 ====================
 
-You may want to create and edit configuration file
-`wifiwithme/settings/local.py` (no setting is mandatory at the
-moment):
+Then create and edit a `wifiwithme/settings/local.py` configuration file
+`wifiwithme/settings/local.py`.
 
-URL Prefix
-----------
+Mandatory settings
+------------------
 
-Optionaly, you can define an url prefix (ex: `/foo/`) so that wifi-with-me is
-accessible under *http://example.com/foo/* :
-
-    URL_PREFIX='foo/'
-
-Notifications
--------------
-
-If you to receive notifications on each new contrib, customize those :
-
-List of notification recipients:
-
-    NOTIFICATION_EMAILS=['admin@example.tld']
-
-Notification sender address:
-
-    DEFAULT_FROM_EMAIL='notifier@example.tld'
-
-The wifi-with-me website URL (for links included in emails :)
-
-    SITE_URL="http://example.tld"
+You **must** Define some details about your ISP in the ISP variable, eg:
 
     ISP={
         'NAME':'FAIMAISON',
@@ -70,6 +49,35 @@ The wifi-with-me website URL (for links included in emails :)
         }
     }
 
+Optional settings
+-----------------
+
+### Website URL
+
+The wifi-with-me website URL (for links included in emails :)
+
+    SITE_URL="http://example.tld"
+
+
+## URL Prefix
+
+Optionaly, you can define an url prefix (ex: `/foo/`) so that wifi-with-me is
+accessible under *http://example.com/foo/* :
+
+    URL_PREFIX='foo/'
+
+### Notifications
+
+If you to receive notifications on each new contrib, customize those :
+
+List of notification recipients:
+
+    NOTIFICATION_EMAILS=['admin@example.tld']
+
+Notification sender address:
+
+    DEFAULT_FROM_EMAIL='notifier@example.tld'
+
 Migrate from bottle version (optional)
 ======================================
 

+ 2 - 2
requirements/base.txt

@@ -1,4 +1,4 @@
-Django>=1.9.3<1.10
-PyYAML>=3.11<4.0
+Django>=1.9.3,<1.10
+PyYAML>=3.11,<4.0
 pytz
 sqlparse

+ 0 - 4
wifiwithme/apps/contribmap/admin.py

@@ -26,10 +26,6 @@ class ContribAdmin(admin.ModelAdmin):
                 ('floor', 'floor_total'),
                 'orientations', 'roof']
         }],
-        ['Raccordement au réseau', {
-            'fields': ['connect_type'],
-            'classes': ['collapse'],
-        }],
         ['Partage de connexion', {
             'fields': ['access_type'],
             'classes': ['collapse'],

+ 1 - 1
wifiwithme/apps/contribmap/templates/base.html

@@ -30,7 +30,7 @@
     <div class="container">
     <h1>
     {% block title %}
-    <a href="{% url 'home' %}">{{ isp.TITLE }}</a>
+    <a href="{% url 'home' %}">{{ isp.TITLE|default:"Réseau wifi expérimental" }}</a>
     {% endblock %}
     </h1>
     </div>

+ 2 - 2
wifiwithme/apps/contribmap/templates/contribmap/wifi-form.html

@@ -11,7 +11,7 @@
 
   <header class="jumbotron">
     <div class="container">
-        {% include "welcome_speech.html" %}
+        {% include "core/welcome_speech.html" %}
     </div>
   </header>
 
@@ -82,7 +82,7 @@
       <div class="form-group col-sm-6">
         <div class="form-group form-group-lg form-inline">
           <input type="text" name="search"
-                 id="search" placeholder="{{ isp.ADDRESS_EXAMPLE }}" class="form-control" />
+                 id="search" placeholder="{{ isp.ADDRESS_EXAMPLE|default:"rue du calvaire, nantes" }}" class="form-control" />
           <span id="search-btn" class="btn btn-default btn-lg" data-loading-text="...">Recherche</span>
 
           <div id="search-results" class=""></div>

+ 1 - 1
wifiwithme/apps/pages/templates/pages/home.html

@@ -6,7 +6,7 @@
 
   <header class="jumbotron">
     <div class="container">
-      {% include "welcome_speech.html" %}
+      {% include "core/welcome_speech.html" %}
 
       <p style="text-align:center">
         <a href="{% url 'add_contrib' %}" class="btn btn-lg btn-primary btn-default">

wifiwithme/templates/welcome_speech.html → wifiwithme/core/templates/core/welcome_speech.html