I'm a novice and not a nativespeaker. Please teach me in a easy way. Thanks.
First, I write a little site with Vue on Heruko. Nonetheless, I found it returns "404 not found" when I refresh it like the picture.
the false picture
Then, because Heruko canceled its free plan, I deploy my site on Render. To my surprise, I find it provides a function which can rewrite website like the picture, and solve the problem.
rewrite function
However, I can't find similar function on Heruko and still want to know how to solve this problem on Heruko. Maybe achieve it through code? I found some text about HTTP 301/302, while I have no idea accomplishing it.
Thank you for read this text.
Related
From my search I know what causes this. My question is that I have a website which is "grandfathered" as I understand it. The issue is that I see this problem when I am working on the site and run from localhost for testing.
I am wondering what the recommended way to deal with is... should nI get a key and use it, then replace the code in the file I compile?
Just not sure the correct approach.
So for anyone looking I got no responses and ended up getting a key for development and will just publish without the key script. Seems to work, just not sure if this is really the best method.
Here is current workflow:
In django admin someone adds data to model/form.
That starts
python code which runs completely in background and can take up to
5min to finish. Without console access they can't see what's going
on.
They have to wait and refresh site to see results.
I am thinking about something like displaying "progress"(done this, done that, error here) via bootstrap's notifications (js).
Have hard time wrapping my head around how to get data from python to JS(first time doing this) would appreciate any pointers or useful links.
Edit: I found this video: https://www.youtube.com/watch?v=PsorlkAF83s explains it great detail if anyone will be interested in the same thing.
If you could mention how far you achieve then it will be easy to figure out the answer... Anyway my answer is general at all...
First you have to use signal for tracking the database if any new entry it will activate and trigger your python code...
Secondly the best way to communicate with frontend is websockets and recent Mozilla Support for Django promise websocket into the core.
follow this guide for more info about the django channels
First off, go easy on me. While I have been doing extremely basic coding since I was a child, it's only been over the last few months that I started getting into the real stuff like Java, Javascript, PHP/MySQL, etc. So please bear with me if I use wrong terminology or write something that sounds completely wrong. I'd love to get some insight from all you tireless helpers here.
Here is what I need:
I have a website at myserver.com.
I want to use the API at randomsite.com to automate a process.
If I manually go to the URL randomsite.com?do=this, my process will be triggered.
What I want to be able to do is write an app on myserver.com that will trigger randomsite.com?do=this. Obviously I can have a link on my page, but the user will see that they have been directed to randomsite.com.
I do not need to capture anything about the randomsite.com link having been triggered. I don't care who clicked it, etc. All I want is to simulate the effects of going to randomsite.com?do=this but without actually opening that site on the front end.
Thank you so much for your help!
Consider using AJAX for doing stuff behind the scenes...
https://api.jquery.com/jQuery.ajax/
EDIT: You would need to use JSONP for cross domain.
I want to create something similar to fiximate but the thing I want to do different is filter by venue instead of FIX version.
Having downloaded the FIXImate for offline use to get an idea of the design. It seems as though the developers used a tool which parses the FIX XML and spits out html pages based on field tag and body.
Does anyone have access to such a tool? Is there another way to design something similar which is less complicated?
Thanks
What you are asking about is not trivial. It is telling that there is a commercial product for this: https://fixspec.com/
I'm sorry if the title is confusing.
I'm trying to scrape my job's website to updates on my schedule. I'm using Ruby with Mechanize. I've successfully logged into my job's website, though, once logged in, all of the links going forward are JavaScript links, which Mechanize doesn't play well with.
After doing some research, I saw some suggestions for similar problems; Instead of clicking the link, I can emulate the request the link is making, though I'm not sure at all how I could do this.
The code behind the link is:
My Work Schedule
How might I tackle this in Ruby? Any suggestions?
When the link is clicked, it submits a form.
To accomplish the same thing with mechanize:
page.form(:id => 'schedForm').submit
As far I know, Mechanize can't make JavaScript calls. If you need to interact with JavaScript, I would recommend Watir.