aboutsummaryrefslogtreecommitdiffstats
path: root/settings.py
AgeCommit message (Collapse)Author
2016-11-16Record and display update logsPaul Eggleton
At the moment it's a bit difficult to get update logs out of the environment in which the update script is being run. In order to make the logs more accessible, create a LayerUpdate model to record the output of update_layer.py separately for each layerbranch and tie the created LayerUpdates together with a single Update model per session. We provide two ways to look at this - a Tools->Updates page for logged-in users, and there's also an "Updates" tab on each layer that is accessible to anyone; which one is useful depends on whether you are looking at the index as a whole or an individual layer. Update records older than 30 days are deleted automatically by default. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-09-20Drop south migrationsPaul Eggleton
These cannot be used with Django 1.8 and thus we need to remove them. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-06-12Upgrade to Django 1.6+Paul Eggleton
I'd like to be upgrading to 1.8 but that causes problems with South, and we're not quite ready to dispense with our existing migrations yet. Part of the implementation for [YOCTO #9620]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2014-09-24adding CORS policy for the APIAlexandru DAMIAN
We add the corsheaders application in order to enable the CORS policy for the read-only REST API. This is needed to allow AJAX queries to the layerindex application from a browser environment. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2014-09-24expose REST API for layerindexAlexandru DAMIAN
This patch enables a read-only REST API for the layerindex application using Django REST Framework. The objects of types Branch, LayerBranch and LayerItem are exposed to queries so that the layerindex application can function as a Layer Source in Toaster. The library dependencies are documented in the requirements.txt file. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
2013-09-05Add support for importing OE-Classic recipesPaul Eggleton
Add a script for doing a one-time import of OE-Classic recipe information, so comparisons against OE-Core can be performed; this is stored using a new ClassicRecipe model supporting additional fields for tracking migration status. The migration status fields can be updated as well as viewed and summarised in graph format. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-08-11Enable messages framework and use it to display "layer saved" messagePaul Eggleton
The Django messages framework is the proper way to handle these kinds of messages. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-06-03Enable south and add initial migrationsPaul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-28settings: Use example.com in DEFAULT_FROM_EMAILPaul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-28Add DEFAULT_FROM_EMAIL to settingsPaul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-06update.py: avoid writing bitbake.lock/cache to current directoryPaul Eggleton
Create a temporary directory for these files. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-06Move all templates to a templates directoryPaul Eggleton
This should allow the templates to be found and swapped out more easily. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-03-05Add support for handling multiple branchesPaul Eggleton
Change the data structure to support multiple branches. At the top level there is a set list of Branch objects, and then a LayerBranch object between each layer and the maintainers, dependencies, recipes and machines, so that the set of each can be different per branch. The branch is a session option, and can be selected via a drop-down that is shown for all pages. Additionally, with this change we avoid the need to run the update script within a build environment set up with oe-init-build-env - since we need a specific version of BitBake per branch we now use our own copy of BitBake which is fetched by the script itself. The update script will need to be called multiple times however - once per branch. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-28Add CAPTCHA to submission formPaul Eggleton
This should prevent spamming even though this is less likely with this kind of site. The CAPTCHA does not show when editing, only submitting, and is also not shown for authenticated users. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-26Enable clickjacking protection in default settings filePaul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-19Clear SECRET_KEY valuePaul Eggleton
This should be set when the application is deployed, not set to some default value out of the box. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-19Improve pagination for recipe listPaul Eggleton
Use a Django snippet to make pagination display a bit nicer (compressed form instead of showing all page numbers). In order to interact properly with GET requests, an additional snippet was required to add parameters to the URL (why doesn't Django provide this out of the box?). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-14Enable auditing using django-reversion and django-reversion-comparePaul Eggleton
Collect history for changes, and allow browsing / reverting / comparison within the admin interface. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-02-13Initial commit of layerindex-webPaul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>