local config file

Bug #355718 reported by Carl Karsten
2
Affects Status Importance Assigned to Milestone
web2-Conf
New
Wishlist
Unassigned

Bug Description

"For local use, set DEV_TEST=True (in applications/register/models/0.py), remove routes.py ..."

That means you have to remember to update those files as the move between dev and production, which is annoying when you get it right and probably really bad if you mess up.

There are many was to solve this - here is my current fav:

DEV_TEST=True
try:
    from local_settings import *
except ImportError:
    pass

local_settings.py contains DEV_TEST=False and is excluded from the source control. because it is excluded, it can contain sensitive information.

Carl Karsten (carlfk)
Changed in web2conf:
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.