Jump to content

mabass

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by mabass

  1. Awesome. Seems to work fine. I'm now running into pathing issue, probably due my inexperience with .wsgi and server/web admin in general: One app dynamically creates img src links, the images are within the /static/ folder hierarchy. The paths are created here https://github.com/Wolfenswan/flask-sandbox/blob/master/projects/adx_abctrainer/adx_abctrainer.py#L10 As the tags are injected into existing html I can't use Jinja templates. Locally and on pythonanywhere I can provide the relative path to the static folder with '/static/adx_abctrainer/img/'. However on HelioHost this 404s, as it assumes 'https://mabass.heliohost.org' as root rather than 'https://mabass.heliohost.org/flask'/. Using '../static/adx_abctrainer/img/' is a functional workaround, but I feel I'm probably missing a best practice.
  2. Thanks. I did indeed miss the error log. The application fails at this import statement: from flask_wtf import FlaskFormFlask-wtf on the server is 0.14.2, which tries to import a deprecated werkzeug-function. This has been fixed in 0.14.3 As per modules: As far as I can tell I only need pdfrw==0.4. idna==2.9 isn't on module-list but should be a default python module iirc. A few more modules on the server are out of date, though I have yet to see if they break anything. beautifulsoup4flaskflask-wtfjinja2soupsieveurllib3wtforms Heh, I forgot how lenient Python actually is. I was wondering why no one had complained about their flask app not working despite following the tutorial.
  3. Thanks for the thorough reply! I think I'll just cancel the contract with my current .de provider and consider buying a domain from a provider that's guaranteed to work. Do you by chance have an affiliation-programm with a provider for the Euro-region, i.e. .de or .eu? I'd be happy to support you that way.
  4. Hi, figured it's better to ask here before going straight to customer service. If I'm mistaken and both questions are better directed towards them let me know. i'm currently trying to migrate my flask sandbox (intended to provide python scripts to others as simple web apps) to HelioHost and a few questions have cropped up. Fyi, I'm decent enough in Python (though not a computer scientist by profession) but woefully inexperienced when it comes to server and web administration. 1. Is there a decent way to debug the online-version of flask without relying too heavily on the CRON-jobs? Setting the debug-flag in app.run() to True does not seem to work, I assume it's globally disabled? 2. What's the proper way to request python modules? My flask app is currently missing at least one specific module to run properly. Thanks! PS: The Flask-Tutorial on the wiki (https://wiki.helionet.org/tutorials/flask) has an erroneous ";" in the flask.wsgi code, line 4.
  5. Hi, I'm currently trying to point my other domains towards my HelioHost account. While my .tk address, registered via freenom, accepted the nameservers without issues (and is now in que), my .de address failed. The non-descriptive error my domain provider (STRATO) gave was simply "The provided nameserver is not responsible for this domain." [my translation; in German: "Der angegebene Nameserver ist nicht für diese Domain zuständig."] Strato's customer service simply stated that this issue isn't on their end and I'd have to contact you. Given that the .tk domain worked without issue and Strato has a bit of a s...poor reputation I'm somewhat suspicious but figured I might as well ask you: Any idea, why registering the nameservers via Strato fails, while .tk worked fine? For the record: I tried parking the .de domain in cpanel, which - as expected - failed due to "the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver." Thanks!
×
×
  • Create New...