Comments (4)
Posted by Antoine Nguyen on 2010-05-05T17:51:16Z
Actually, It seems that we cannot modify the settings module at runtime... A partial solution has been found (using a new table in the database). Unfortunately, custom templatetags are not usable if the corresponding module name is not present inside the INSTALLED_APPS parameter...
How to bypass this mechanism?
from modoboa.
Posted by Antoine Nguyen on 2010-05-25T16:31:47Z
add_to_builtins is one possible way. Maybe not the best...
Done in [5b477f95613a]
from modoboa.
Posted by Antoine Nguyen on 2010-05-26T13:17:18Z
[A traduire plus tard]
Je vais repousser cette fonctionnalité car Django n'est vraiment pas prévu pour ca. Je n'ai pas réussi à trouver un moyen de mettre à jour la table d'urls systématiquement. Il y a pas mal de cas ou cela plante.
Autre méthode proposée par Alex: laisser toutes les extensions dans INSTALLED_APPS et faire un middleware pour contrôler les accès. Les problèmes avec cette méthode sont nombreux (modules omportés quoiqu'il arrive, dépendances obligatoires, modèles pris en compte par syncdb).
Bref, c'est le bordel, on reporte à plus tard!!
[/A traduire plus tard]
Django is not designed to support this.
from modoboa.
Posted by Antoine Nguyen on 2010-10-25T12:54:41Z
Finally, [9e127305fff1] is the answer!
What I've done:
- all extensions are now listed in INSTALLED_APPS (like normal django applications),
- a new table is used to wrap plugins states (on/off),
- a new middleware controls accesses to extensions.
This is working pretty well like that.
from modoboa.
Related Issues (20)
- Unable to delete Identity HOT 1
- manage.py migrate fails with 2.2.2 HOT 2
- migrate from 2.1.2 to 2.2.2 fails HOT 2
- Amavis error after clean setup modoboa HOT 5
- Error: Group matching query does not exist. when i try to create new mailbox simple user HOT 6
- Internal Server Error HOT 10
- .
- ,
- Cannot enable DKIM on new domains. HOT 2
- Alias API : Validation should make the address lowercase
- New Install 'AttributeError at /accounts/login/' HOT 3
- Error on fresh install without CalmAV HOT 2
- [Bug] Two-Factor authentication Not working HOT 2
- Upgrade from 2.2.2 to 2.2.3 failed HOT 1
- AttributeError 'NoneType' object has no attribute 'parameters' HOT 9
- Adding SCRAM authentication support HOT 1
- [Feature request] Configure external smtp relay from within web gui HOT 1
- New Install 'AttributeError at /accounts/login/' HOT 1
- dns check should be made against a domain authoritative server HOT 1
- Cannot log in as admin user on first login
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modoboa.