Formulaire & carte pour recenser les aspirant-e-s connecté-e-s à un réseau radio.

jocelyn 13147b414b Merge branch 'django' of Bertrand/wifi-with-me into django il y a 9 ans
contrib b460080d5d Update wifiwithme.yml il y a 10 ans
json e6d546b8f7 added placeholder in json folder to avoid nonexistant folder error il y a 10 ans
requirements 44304af3e6 adding PyYAML requirements (needed by django/core/serializers/pyyaml.py) il y a 9 ans
var f15f21d91e Bootstrap Django skeleton il y a 9 ans
wifiwithme 95d15ed11a Merge remote-tracking branch 'capslock/issue-11' into django il y a 9 ans
.gitignore 843e58be8d Ignoring venv and .idea folders il y a 9 ans
LICENSE 0b4ffe0b21 Create LICENSE il y a 10 ans
README.md a0b9be0e16 Fix README missing points for Django il y a 9 ans
TODO.md 6c79c9a09e Todo: captcha or honeypot. il y a 10 ans
backend.py 5ccc500851 Replaced current time querystring on GeoJSON path by the JSON mtime fixes #13 il y a 9 ans
manage.py f15f21d91e Bootstrap Django skeleton il y a 9 ans

README.md

Dependencies

In order to facilitate dependency management, you can use a pip and a virtual environment (like virtualenv).

Install packages:

 # apt-get install python3-pip python3-virtualenv

Create and activate the virtualenv with:

 $ virtualenv -p $(which python3) venv
 $ source venv/bin/activate

We use django framework. Install it from requirements with pip:

 $ pip install -r requirements/base.txt

For development, install dev.txt requirements too:

 $ pip install -r requirements/base.txt -r requirements/dev.txt

Set up configuration

Create and edit configuration file wifiwithme/settings/local.py following this example:

NOTIFICATION_EMAILS=['admin@example.tld']

DEFAULT_FROM_EMAIL='notifier@example.tld'

SITE_URL="http://example.tld"

But theses are optional settings for testing. That needs to be set only if someone wants to receive notifications on each new contrib.

Run development server

It is required to initialize database first:

$ ./manage.py migrate

Then launch service with:

$ ./manage.py runserver

You can visit your browser at http://127.0.0.1:8000/map/contribute

Run production server

To be done

Drop the database

$ rm db.sqlite3

What else ?