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

Mathieu 531b2d7220 Move venv and db.sqlite3 outside git repo 8 months ago
requirements dfc4e7a7d0 Rollback requirement for django-debug-toolbar 9 months ago
var f15f21d91e Bootstrap Django skeleton 3 years ago
wifiwithme 531b2d7220 Move venv and db.sqlite3 outside git repo 8 months ago
.gitignore 531b2d7220 Move venv and db.sqlite3 outside git repo 8 months ago
LICENSE 0b4ffe0b21 Create LICENSE 4 years ago 531b2d7220 Move venv and db.sqlite3 outside git repo 8 months ago f15f21d91e Bootstrap Django skeleton 3 years ago


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

Install packages:

sudo apt-get install python3-pip python3-virtualenv virtualenv libyaml-dev

Retrieve the repository:

# Create the base directory:
mkdir wwm
# Clone the repo:
git clone

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 wifi-with-me/requirements/base.txt

For development, install dev.txt instead:

pip install -r wifi-with-me/requirements/dev.txt

Set up configuration

Then create and edit the configuration file wifi-with-me/wifiwithme/settings/ according to following instructions:

Mandatory settings

You must Define some details about your ISP in the ISP variable, eg:

    'TITLE':'Réseau wifi expérimental',
    'EMAIL':'bureau (at)',
    'ZONE':'Nantes et environs',
    'ADDRESS_EXAMPLE': 'rue du calvaire, nantes',

The wifi-with-me website URL (for links included in emails) defaults to http://localhost:8000, so it must be customized:


List of domain name(s) under wich the website is accessible:

# Or, for several domains:

Optional settings

Website URL

Optionaly, you can define an url prefix (ex: /foo/) so that wifi-with-me is accessible under



If you want to receive notifications on each new contrib, customize those:

List of notification recipients:


Notification sender address:


Data expiration

The data gets deleted after one year, if the contributing user does not give its explicit consent to keep it one more year.

Reminders are sent to the contribution author when expiration date gets close. By default we send two notifications :

    30,  # 1 month before
    7,   # 1 week before

You can tweak it to your will or decide to send no reminder (with value []).

Migrate from bottle version (optional)

If you used the (old) bottle version of wifi-with-me and want to migrate your data follow this extra step :

./wifi-with-me/ migrate auth
./wifi-with-me/ migrate contribmap 0001 --fake

Run development server

NOTE: For prod environment, replace ./wifi-with-me/ with ./wifi-with-me/

It is required to initialize database first:

./wifi-with-me/ migrate

Create an admin:

./wifi-with-me/ createsuperuser

Then launch service with:

./wifi-with-me/ runserver

You can visit with your browser at

Drop the database

If you want to reset all your data.

rm db.sqlite3

Run production server

(Pretty rough instructions. Feel free to submit patches)

  1. Deploy it like any django site
  2. Customize mandatory and optional settings
  3. Customize SECRET_KEY to something really random. Hint:
python -c "import string,random; uni=string.ascii_letters+string.digits+string.punctuation; print(repr(''.join([random.SystemRandom().choice(uni) for i in range(random.randint(45,50))])))"
  1. Set daily crons for the two commands that take care of data expiration handling (run them with --help for more information):
./wifi-with-me/ delete_expired_contribs
./wifi-with-me/ send_expiration_reminders