medeopolis / tendenci-scripts Goto Github PK
View Code? Open in Web Editor NEWScripts which relate to Tendenci but aren't Python so don't necessarily live in a package.
License: GNU General Public License v2.0
Scripts which relate to Tendenci but aren't Python so don't necessarily live in a package.
License: GNU General Public License v2.0
Repository to store scripts which relate to tendenci but aren't python so don't necesarily live in a package.
Tendenci has a very clear warning at the botom of settings.py:
# ---------------------------------------------------------------------------- #
# These lines must remain at the end of this file
# ---------------------------------------------------------------------------- #
from tendenci.apps.registry.utils import update_addons # noqa: E402
INSTALLED_APPS = update_addons(INSTALLED_APPS, SITE_ADDONS_PATH)
Unfortunately this script appends its new configs below that line, risking some behavioural oddities.
SECRET_KEY is happy with a generator, SITE_SETTINGS_KEY isn't - presumably because the copied DB already has things encoded with that key.
Decide if this is a problem and fix it if we think it is
sed -i -e "s/^SECRET_KEY.*/SECRET_KEY='$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 64 | head -n 1)'/" $website_path_dev/conf/settings.py
# FIXME Can't seem to get dynamically generating this to stick. We'll keep productions.
# sed -i -e "s/^SITE_SETTINGS_KEY.*/SITE_SETTINGS_KEY='$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 64 | head -n 1)'/" $website_path_dev/conf/settings.py
Removing this library will disable memcache, potentially a useful thing in a dev/test environment.
Ideally site configuration would be moved to separate file which is then sourced, allowing the full file to be tracked with greater ease.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.