First attemp on Template and Bootstrap UI support #36
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I am trying to add WEB UI support for the Scrapyd service.
This is a first attemp, so I think this shouldn't be merge as it is. I want to explain first the things I am trying to do, and also ask what to do next.
website.py
to populate the pages on thescrapyd
service, so I am trying to useJinja2
to better use templates (like django) to create separate html files for those pages.static/
folder, so we can use that css framework. I think this could also be achieved directly pointing to thecss
anjs
files on an external server, so please let me know what could be the best approach here.templates/
has been created, there should be all the html files for the website, likehome
,jobs
,available projects
, etc. Now I have there the home.jinja file, that is intended to show the welcome page when you go tohttp://localhost:6800/
QUESTION: Could someone help me on how to upload or add
static
when you installscrapyd
?So my intention is that every installation should contain its own
templates/
andstatic/
folder. I read that it should be done on theMANIFEST.in
file, but I am really lost there.It shouldn't be so difficult, could someone maybe share what lines should go there? or maybe somewhere else?
EDIT:
Thank you.