Commit Graph

15 Commits

Author SHA1 Message Date
Lephe aa75ff09a1
forum: implement forum tree generation
This commit adds a forum tree YAML file (URL-based rather than an
actual tree...) and the 'forums' and 'create-forums' commands for
the master script.

A page /admin/forums is also used to currently display the forum
tree, although this will probably be turned into a full table with
forum descriptions, and a form with edition capabilities.
2019-09-09 08:11:37 +02:00
Darks 15a4d38ea0
Ajout des notifications 2019-09-01 12:30:41 +02:00
Lephe 11b19af199 forum: provide suitable migrations for the database
First migrate without the foreign key to create the tables, then add the
foreign key in a second migration.

Also removed unneeded imports that caused dependency cycles.

Minor "style" edits with the ambiguous use of super and unnecessary
db.Model inheritance.
2019-08-21 16:50:23 +02:00
Darks 201e961ba2
Ajout des stats sur la durée de chargement 2019-08-20 18:07:16 +02:00
Darks 1d638689c6
Modifications on trophies and titles #10 (and more)
- remove `title` attribute
- do the migration of db
- add initialization routine in `master.py`
- add default trophies and titles in `data/trophies.yaml`
- add `add_trophy` method in `Member` class
- add `update_trophies` method in `Member` class
- add form in admin panel to give a trophy to a member
- same to remove a trophy
- change `if request.method == "POST"` to `if form.submit.data`
2019-06-11 00:15:23 +02:00
Darks 79e3189f4b
First draw for trophies 2019-06-06 23:24:14 +02:00
Darks d6e8f7d4d8
Split routes to folders 2019-06-06 02:13:28 +02:00
Darks d3980fd131
Added some comments 2019-06-06 01:06:46 +02:00
Lephe 8211183b5c templates: add a pluralize filter 2019-02-11 13:16:46 +01:00
Dark-Storm 584b1188d8
Grosses modifs sur le design. Ajout des routes /user 2019-02-05 23:21:46 +01:00
lephe 21e0679557 admin: start a panel with a database filler 2019-02-04 16:41:29 +01:00
Dark-Storm 46ac8fcd1f
Redefinition des formulaires 2019-02-03 16:52:42 +01:00
Dark-Storm 2f702ba97e
Redefinition des routes 2019-02-03 16:20:05 +01:00
lephe 0299354a02 db: Move to PostgreSQL to support migrations 2019-02-02 17:34:41 +01:00
Dark-Storm 16d846a4df
Django est mort, vive Flask ! 2018-02-23 23:34:06 +01:00