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

Bertrand e40408dd03 Actualize README for Django startup 9 years ago
contrib b460080d5d Update wifiwithme.yml 10 years ago
json e6d546b8f7 added placeholder in json folder to avoid nonexistant folder error 10 years ago
requirements aaf68d0ca9 Migrate date field to a propper datetime field 9 years ago
var f15f21d91e Bootstrap Django skeleton 9 years ago
wifiwithme 57682f9bc7 Use email console backend in dev settings 9 years ago
.gitignore f15f21d91e Bootstrap Django skeleton 9 years ago
LICENSE 0b4ffe0b21 Create LICENSE 10 years ago
README.md e40408dd03 Actualize README for Django startup 9 years ago
TODO.md 6c79c9a09e Todo: captcha or honeypot. 10 years ago
backend.py 5ccc500851 Replaced current time querystring on GeoJSON path by the JSON mtime fixes #13 9 years ago
manage.py f15f21d91e Bootstrap Django skeleton 9 years ago

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

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.

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 ?

Customizing appearance

Wether you like or not balloons, you may want to override some templates and/or static files.

You can mention a CUSTOMIZATION_DIR as environ variable. In that dir, you can create assets and views subdirs, containing files with the name of the original files you want to override from default assets and views.

For example to override only main.css and base.tpl, you would set CUSTOMIZATION_DIR=/home/alice/my-fancy-isp-theme and use the following directory layout :

/home/alice/my-fancy-isp-theme/
├── assets
│   └── main.css
└── views
    └── base.tpl