-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,430 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
env/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*,cover | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# django CMS project | ||
/manage.py | ||
/media/ | ||
/mysite/ | ||
/project.db | ||
/static/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Revision history for Django app djangocms-genome-browser | ||
|
||
0.1.0 2015-04-25 | ||
|
||
- A Django app for incorporating a Dalliance genome browser into a Django site with django CMS-specific features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Copyright (c) 2015, Michael F. Covington | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
* Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
* Neither the name of djangocms-genome-browser nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
include CHANGELOG | ||
include LICENSE | ||
include README.md | ||
recursive-include cms_genome_browser/static * | ||
recursive-include cms_genome_browser/templates * | ||
recursive-include docs * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Dalliance Genome Browser + Django | ||
|
||
CMS Genome Browser is A Django app for incorporating a [Dalliance genome browser(https://github.com/dasmoth/dalliance) into a Django site with django CMS-specific features. | ||
|
||
<!-- Detailed documentation is in the "docs" directory. --> | ||
|
||
## Quick start | ||
|
||
- Edit the project's `settings.py` file. | ||
|
||
- Add `cms_genome_browser` and its dependencies to your `INSTALLED_APPS` setting: | ||
|
||
```python | ||
INSTALLED_APPS = ( | ||
... | ||
'cms_genome_browser', | ||
'easy_thumbnails', | ||
'filer', | ||
'mptt', | ||
) | ||
``` | ||
|
||
- Specify your media settings, if not already specified: | ||
|
||
```python | ||
MEDIA_URL = '/media/' | ||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media') | ||
``` | ||
|
||
- Add `filer` and `easy_thumbnail` settings: | ||
|
||
```python | ||
# For filer's Django 1.7 compatibility | ||
MIGRATION_MODULES = { | ||
... | ||
'filer': 'filer.migrations_django', | ||
} | ||
|
||
# For easy_thumbnails to support retina displays (recent MacBooks, iOS) | ||
THUMBNAIL_HIGH_RESOLUTION = True | ||
THUMBNAIL_QUALITY = 95 | ||
THUMBNAIL_PROCESSORS = ( | ||
'easy_thumbnails.processors.colorspace', | ||
'easy_thumbnails.processors.autocrop', | ||
'filer.thumbnail_processors.scale_and_crop_with_subject_location', | ||
'easy_thumbnails.processors.filters', | ||
) | ||
THUMBNAIL_PRESERVE_EXTENSIONS = ('png', 'gif') | ||
THUMBNAIL_SUBDIR = 'versions' | ||
``` | ||
|
||
- Include URL configurations for `cms_genome_browser` in your project's `urls.py` file: | ||
|
||
```python | ||
urlpatterns = patterns('', | ||
... | ||
url(r'^genome_browser/', include('cms_genome_browser.urls', namespace='cms_genome_browser')), | ||
... | ||
) | ||
``` | ||
|
||
- Run `python manage.py makemigrations cms_genome_browser` to create the cms_genome_browser migrations. | ||
|
||
- Run `python manage.py migrate` to create the cms_genome_browser models. | ||
|
||
- Start the development server (`python manage.py runserver`) and visit http://127.0.0.1:8000/ | ||
|
||
- Create a CMS page and attach the `Genome Browser App` under `Advanced Settings` for the page. | ||
|
||
*Version 0.1.0* |
Empty file.
Oops, something went wrong.