Coder Social home page Coder Social logo

tendenci-scripts's Introduction

Repository to store scripts which relate to tendenci but aren't python so don't
necesarily live in a package.

tendenci-scripts's People

Contributors

goetzk avatar

Watchers

James Cloos avatar  avatar

tendenci-scripts's Issues

clone-tendenci-instance incorrectly appends configuration items

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.

SITE_SETTINGS_KEY can't be autogenerated

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

Consider removing pymc

Removing this library will disable memcache, potentially a useful thing in a dev/test environment.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.