higlass / higlass/higlass-server

Django does not display CSS, JS, or images

Open
#70 6 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
22
Forks
22
PR merge metrics
No merged PRs in 30d

Description

I'm trying to follow your steps to get higlass-server running. Could I ask if you have any advice to get this working correctly? I think I'm almost there, but something is missing because the assets like JS and CSS are not loading.

I installed like this:

```bash
mkdir -p ~/work/github.com/hms-dbmi
cd ~/work/github.com/hms-dbmi

git clone git@github.com:hms-dbmi/higlass-server.git

cd higlass-server

conda create -n higlass-server python=3

conda install cython numpy

pip install --upgrade -r ./requirements.txt
pip install --upgrade -r ./requirements-secondary.txt
```

Then I tried running:

```bash
COOLER=dixon2012-h1hesc-hindiii-allreps-filtered.1000kb.multires.cool

wget -P data/ https://s3.amazonaws.com/pkerp/public/$COOLER

python manage.py ingest_tileset --filename data/$COOLER --filetype cooler --datatype matrix --uid cooler-demo

python manage.py runserver
```

```
Performing system checks...

/medpop/srlab/slowikow/miniconda2/envs/higlass-server/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
System check identified no issues (0 silenced).
March 07, 2018 - 02:09:51
Django version 2.0, using settings 'higlass_server.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
```

At this point I start a tunnel from my laptop to the server:

```
ssh -N -L 8000:localhost:8000 server
```

But now the page does not load correctly in my browser on my laptop. I get this in my console when I visit http://localhost:8000/admin

```
GET http://localhost:8000/hgs-static/admin/css/responsive.css net::ERR_ABORTED
localhost/:6 GET http://localhost:8000/hgs-static/admin/css/base.css net::ERR_ABORTED
localhost/:7 GET http://localhost:8000/hgs-static/admin/css/dashboard.css net::ERR_ABORTED
```

I can login to the admin console and see some of the HTML, but it is missing all of the assets like CSS.

![select_tileset_to_change___django_site_admin](https://user-images.githubusercontent.com/209714/37069952-90be2926-2183-11e8-9551-51616c58f914.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.