Skip to content

Tag: reactjs

How to manage CORS in Django

Im trying to connect React.js[axios] and Django [hosting in Heroku] and every time I get this. On my localhosts everything works fine I get all the object except images, but all works fine. Ive allowed my host to connect but it doesn’t work and here is react.js connection part [GitHub – Front-End][2] [2]: [GitHub – Back-End][3] [3]: Answer I

Regex finding entire line from paragraph

I need to find the actual line from the paragraph, the paragraph drawing by the markdown editor you can add a checkbox, radio, textbox, and paragraph through the editor. The actual str is something like this, Do all question types have to start with ?[sometext], so I can use this regex radio -> [?] ?[([0-9a-z_].?)]({(?:[^{}]|?)})? ?[?(.?)]? ?[=] ?() ?({[0-9,]+})?([^]?)(nn|^n) checkbox