I am building a webapp, where the app structure is such that the front-end and back-end are completely separated, the back-end is essential an api sitting on a django project. I wondering if I could serve the front-end as a wix site, if I do so I would want use my own authentication system, is there a way I could override wix’s authentication system and implement my own.
To elaborate, I want the back-end to send authentication tokens, these credentials are to be used by the client to sign all requests which will be send to the wix front-end and then to my back-end, or a work around, if there is one.
Thankyou in advance
Hey, did you have any progress in this? I’m facing the exact same problem - have a Django backend that provides data to our mobile App but I also want to integrate our Wix website to the server.
Thanks!
Hi,
If it’s a REST API it is possible to use wixFetch method.
For more information:
Roi.
Hi WIX :),
Been here for 2 yrs and I can’t use the subscription much because I am a Django backend developer and the integration just doesn’t work well. I am thinking if I should renew at all. The workarounds offered above needs you to know lots of front end stuff, JS included. The point of WIX for me was to eliminate that need so I can focus on the back end. I always end up reverting back to website templates out there and it gives much better editing and integration flexibility. They don’t look as good but it’s much easier and my customers accept them. But I want to use WIX. I am wondering if there is any plan to provide better support to Django users? For example, is it possible to have a package/connector of sort to just manage interactions with Django without drama? or perhaps a step by step article for “Django” developers, not a cookie cutter answer. Perhaps for the authentications, forms and online stores. I am sure a lot of users would really appreciate your help there.
Thanks!
You can interface with external APIs using the wix-fetch API . Read about how to access 3rd party services in the article Velo: How to Access 3rd-Party Services with the Fetch API .
A nice simple example to start with is Create a Weather Widget . Also, take a look at the Advanced examples , many of them access 3rd party services. A couple of good examples to start with are: Example: Using the Places API from Google Maps services and Example: Send email with the SendGrid REST interface .
you might also want to consider moving the other side (the Django stuff) over to Wix for a fully integrated and seamless environment.