gci/views.py: Update path of static/
Update href of elements from static/ to ../static
Closes #216
Travis tests have failed
Hey @bhawesh96, Please read the following log in order to understand the failure reason. It'll be awesome if you fix what's wrong and commit the changes.
1st Build
./.ci/build.sh
+rm db.sqlite3
rm: cannot remove ‘db.sqlite3’: No such file or directory
+true
+rm -rf private _site public
+mkdir private _site public
+META_REVIEW_DATA=meta_review.json
+EXPORTED_DATA='static/tasks.yaml static/instances.yaml static/meta_review.json'
+ISSUES_JSON=issues.json
+python manage.py fetch_deployed_data --allow-failure _site static/tasks.yaml static/instances.yaml static/meta_review.json
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
+[[ -n '' ]]
+python manage.py fetch_deployed_data _site issues.json --repo-name gh-board --hoster github
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
Giving up get_response(...) after 1 tries (RuntimeError: ('{"message":"API rate limit exceeded for 35.232.158.140. (But here\'s the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}', 403))
+python manage.py migrate
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
Operations to perform:
Apply all migrations: contenttypes, data, gamification, gci, gsoc, meta_review, openhub
Running migrations:
Applying contenttypes.0001_initial... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying data.0001_initial... OK
Applying data.0002_auto_20180704_1130... OK
Applying data.0003_auto_20180801_0456... OK
Applying data.0004_auto_20180809_2229... OK
Applying gamification.0001_initial... OK
Applying gci.0001_initial... OK
Applying gsoc.0001_initial... OK
Applying meta_review.0001_initial... OK
Applying meta_review.0002_auto_20180707_0305... OK
Applying openhub.0001_initial... OK
+python manage.py import_contributors_data
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
Something went wrong saving this contributor testuser1: 'issues'
+python manage.py import_issues_data
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
Something went wrong saving this issue 2: NOT NULL constraint failed: data_issue.repo_id
+python manage.py import_merge_requests_data
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
Something went wrong saving this mr 1626: NOT NULL constraint failed: data_mergerequest.ci_status
+python manage.py create_config_data
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
+python manage.py create_participants
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
+python manage.py update_participants_data
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Merge request: https://github.com/coala/coala-eclipse/pull/29 has no labels.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Merge request: https://github.com/coala/coala-atom/pull/85 has no labels.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Merge request: https://github.com/coala/documentation/pull/86 has no labels.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue matching query does not exist.
Issue: https://github.com/coala/projects/issues/508 has no labels.
Issue: https://github.com/coala/projects/issues/601 has no labels.
Issue: https://github.com/coala/coala/issues/2825 has no labels.
Issue: https://github.com/coala/gh-board/issues/10 has no labels.
Issue: https://github.com/coala/coala-quickstart/issues/54 has no labels.
Issue: https://github.com/coala/coala-bears/issues/910 has no labels.
Issue: https://github.com/coala/coala-bears/issues/1499 has no labels.
Issue: https://github.com/coala/coala-bears/issues/781 has no labels.
Issue: https://gitlab.com/coala/cobot/issues/24 has no labels.
Issue: https://gitlab.com/coala/package_manager/issues/158 has no labels.
Issue: https://gitlab.com/coala/mobans/issues/33 has no labels.
+[[ -f _site/meta_review.json ]]
+echo 'File meta_review.json exists.'
File meta_review.json exists.
+python manage.py loaddata _site/meta_review.json
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
Installed 1785 object(s) from 1 fixture(s)
+python manage.py run_meta_review_system
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
+rm _site/issues.json
+python manage.py dumpdata meta_review
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
+python manage.py collectstatic --noinput
3 static files copied to '/home/travis/build/coala/community/_site'.
+python manage.py distill-local public --force
OH_TOKEN can not be obtained: 'Please put your OH API key at .OH_API_KEY.'
You have requested to create a static version of
this site into the output path directory:
Source static path: _site/
Distill output path: /home/travis/build/coala/community/public
Distill output directory exists, clean up?
This will delete and recreate all files in the output dir
Recreating output directory...
Generating static site into directory: /home/travis/build/coala/community/public
Loading site URLs
CommandError: Failed to render view:
TravisBuddy Request Identifier: ed3413b0-e716-11e8-87c2-ebfa2f2e9d99
Hi @bhawesh96 , did you tried to deploy the website on netlify or run it locally? and Was logo appearing when you open that gci page? because making these changes in views.py is not making logo visible on page
@KVGarg I couldn't deploy it successfully on netlify as deploy failed with following error-
File "/opt/build/repo/community/git.py", line 75, in get_repo_slug
return url.owner + '/' + url.name
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Can you please help me with it?
I was also coming up with this same error while I tried to deploy on netlify. After spending few hours on debugging the code I found that the value of pathname in url is empty with name and owner set to none, due to which that error is being raised. Maybe there is some fault/error in API or in code that I haven't checked yet or in environment varibales. While parsing the url it has to extract the information from the url that who is owner etc. like information but no idea why it isn't extracting the information for forked repositories. :disappointed:
Actually I was also trying to solve this problem from morning due to which I have to debug the code and due to this only I asked you that whether the logo was visible or not.
This is a newcomer issue so I didn't do the rebase for you. See if you can rebase it using git command line.
@bhawesh96 The CI is red. Please can you take a look so that the reviewers can check the preview of the changes that you have made. Also, need rebase.
@KVGarg Can you please take a look into it yourself. I don't have access to PC.
Well I can help you out. But the issue is assigned to you it will leave a bad response to other developers that I’m looking over it. I hope you understand. It’s ok that you can’t currently work on it due to non-availability of pc. Just drop a message at the PR that when you will be available!! So that the work goes in a flow. 😇
@bhawesh96 I have tested your changes on the live website by adding .. to the path of favicon and image it's working fine. But the image is coming too large. Probably you need to add some css for it.
@bhawesh96 If you have access to your laptop, can you please look after the changes by adding some css and re-basing your fork