wooey / Wooey

A Django app that creates automatic web UIs for Python scripts.
http://wooey.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.12k stars 182 forks source link

Can I replace front page image of wooey? #249

Closed partrita closed 6 years ago

partrita commented 6 years ago

Hi, I am new at wooey. I tried to replace front page image of wooey which is dashboard of python script. But could not found template files, please tell me how to do that. Thanks,

Chris7 commented 6 years ago

Here is information on that: https://github.com/wooey/Wooey/issues/223

partrita commented 6 years ago

I am confused, where can I found WOOEY_SITE_NAME and WOOEY_SITE_TAG. Here is my project directory,

$ tree .
.
├── celerybeat-schedule.bak
├── celerybeat-schedule.dat
├── celerybeat-schedule.dir
├── firstwooey
│   ├── db.sqlite3
│   ├── __init__.py
│   ├── middleware.py
│   ├── __pycache__
│   │   ├── __init__.cpython-36.pyc
│   │   ├── middleware.cpython-36.pyc
│   │   ├── wooey_celery_app.cpython-36.pyc
│   │   └── wsgi.cpython-36.pyc
│   ├── requirements.txt
│   ├── settings
│   │   ├── django_settings.py
│   │   ├── __init__.py
│   │   ├── __pycache__
│   │   │   ├── django_settings.cpython-36.pyc
│   │   │   ├── __init__.cpython-36.pyc
│   │   │   ├── user_settings.cpython-36.pyc
│   │   │   └── wooey_settings.cpython-36.pyc
│   │   ├── user_settings.py
│   │   └── wooey_settings.py
│   ├── static
│   │   ├── admin
│   │   │   ├── css
│   │   │   │   ├── base.css
│   │   │   │   ├── changelists.css
│   │   │   │   ├── dashboard.css
│   │   │   │   ├── fonts.css
│   │   │   │   ├── forms.css
│   │   │   │   ├── login.css
│   │   │   │   ├── rtl.css
│   │   │   │   └── widgets.css
│   │   │   ├── fonts
│   │   │   │   ├── LICENSE.txt
│   │   │   │   ├── README.txt
│   │   │   │   ├── Roboto-Bold-webfont.woff
│   │   │   │   ├── Roboto-Light-webfont.woff
│   │   │   │   └── Roboto-Regular-webfont.woff
│   │   │   ├── img
│   │   │   │   ├── calendar-icons.svg
│   │   │   │   ├── gis
│   │   │   │   │   ├── move_vertex_off.svg
│   │   │   │   │   └── move_vertex_on.svg
│   │   │   │   ├── icon-addlink.svg
│   │   │   │   ├── icon-alert.svg
│   │   │   │   ├── icon-calendar.svg
│   │   │   │   ├── icon-changelink.svg
│   │   │   │   ├── icon-clock.svg
│   │   │   │   ├── icon-deletelink.svg
│   │   │   │   ├── icon-no.svg
│   │   │   │   ├── icon-unknown-alt.svg
│   │   │   │   ├── icon-unknown.svg
│   │   │   │   ├── icon-yes.svg
│   │   │   │   ├── inline-delete.svg
│   │   │   │   ├── LICENSE
│   │   │   │   ├── README.txt
│   │   │   │   ├── search.svg
│   │   │   │   ├── selector-icons.svg
│   │   │   │   ├── sorting-icons.svg
│   │   │   │   ├── tooltag-add.svg
│   │   │   │   └── tooltag-arrowright.svg
│   │   │   └── js
│   │   │       ├── actions.js
│   │   │       ├── actions.min.js
│   │   │       ├── admin
│   │   │       │   ├── DateTimeShortcuts.js
│   │   │       │   └── RelatedObjectLookups.js
│   │   │       ├── calendar.js
│   │   │       ├── cancel.js
│   │   │       ├── change_form.js
│   │   │       ├── collapse.js
│   │   │       ├── collapse.min.js
│   │   │       ├── core.js
│   │   │       ├── inlines.js
│   │   │       ├── inlines.min.js
│   │   │       ├── jquery.init.js
│   │   │       ├── popup_response.js
│   │   │       ├── prepopulate_init.js
│   │   │       ├── prepopulate.js
│   │   │       ├── prepopulate.min.js
│   │   │       ├── SelectBox.js
│   │   │       ├── SelectFilter2.js
│   │   │       ├── timeparse.js
│   │   │       ├── urlify.js
│   │   │       └── vendor
│   │   │           ├── jquery
│   │   │           │   ├── jquery.js
│   │   │           │   ├── jquery.min.js
│   │   │           │   └── LICENSE-JQUERY.txt
│   │   │           └── xregexp
│   │   │               ├── LICENSE-XREGEXP.txt
│   │   │               ├── xregexp.js
│   │   │               └── xregexp.min.js
│   │   └── wooey
│   │       ├── css
│   │       │   ├── base.css
│   │       │   ├── bootstrap.vertical-tabs.css
│   │       │   └── simple-sidebar.css
│   │       ├── images
│   │       │   └── pinstripe.png
│   │       └── js
│   │           └── admin
│   │               └── script.js
│   ├── urls
│   │   ├── django_urls.py
│   │   ├── __init__.py
│   │   ├── __pycache__
│   │   │   ├── django_urls.cpython-36.pyc
│   │   │   ├── __init__.cpython-36.pyc
│   │   │   ├── user_urls.cpython-36.pyc
│   │   │   └── wooey_urls.cpython-36.pyc
│   │   ├── user_urls.py
│   │   └── wooey_urls.py
│   ├── user_uploads
│   │   ├── wooey_files
│   │   └── wooey_scripts
│   │       └── sum.py
│   ├── wooey_celery_app.py
│   └── wsgi.py
└── manage.py

could you please be more specific?.

partrita commented 6 years ago

I just got it. I need to edit Wooey source files in ./lib/python3.6/site-packages (0.10.0) There is settings.py which has WOOEY_SITE_NAME and WOOEY_SITE_TAG. I hope there is better solutions for this in future release. By the way, thank you for your efforts :+1:

Chris7 commented 6 years ago

Thanks. I want to point out that where you replaced the templates is not a permanent solution as you've edited the source code of a library (that can change if you upgrade, etc.). The reason this isn't specified in the Wooey docs is because it is a general Django problem, with solutions like this: https://stackoverflow.com/questions/3967801/django-overriding-and-extending-an-app-template

Chris7 commented 6 years ago

Also, i never knew about the tree command -- I like it!