Merci les gars, j'ai resout le probleme!
En fait j'utilisais deja la solution de @abdouKarimKandji en demarrant mon
serveur avec python manage.py 192.168.1.XX:8080 mais ca marchait pas je me
suis rendu compte que c'etait un probleme avec le CORS(cross-origin
resource sharing) donc jai override la class Resource au niveau de mon API
pour permettre les "Access-Control-Allow-Origin" et autres!




Le 8 novembre 2013 09:16, Hassane Moustapha <[email protected]> a
écrit :

> Salam
>
>
> Assure toi ( côté serveur ) que tu acceptes des "Origin" autres que que
> ton domaine .
>
> Best regards,
> Hassane Moustapha
> ****************************************************************
> (+222) 44 92 41 15
> (+221) 77 366 77 92
> (+221) 33 820 65 43
>
> *Skype :* hassane.moustapha
> http://twitter.com/hassanemoustaph
> http://www.linkedin.com/in/hassanemoustapha
> ****************************************************************
>
>
> Le 8 novembre 2013 08:54, abdou karim kandji <[email protected]> a
> écrit :
>
>>
>> Salut, tu dois faire écouter ton serveur web django sur ton @ IP,
>> actuellement il n'est accessible qu'a partir de ta machine en localhost. Il
>> faut démarrer Django comme suit: python manage.py runserver
>> 192.168.1.XXX:8080 où 192.168.1.XXX est ton @IP.
>>
>> *BEST REGARDS,*
>> *KANDJI Abdou Karim,*
>>
>>
>> ------------------------------
>> Date: Thu, 7 Nov 2013 16:54:07 +0000
>> From: [email protected]
>> To: [email protected]
>> Subject: [DakarLUG] Django-tastypie API CORS
>>
>> Salut!
>> J'ai developpé une api avec django-tastypie et j'aimerais acceder aux
>> données!
>> En local jarrive a acceder aux données sans problemes mais a partir d'une
>> autre machine jy arrive pas!
>> Voici une portion de code que j'utilise pour recuperer les données
>>
>>     $.ajax({
>>                 url : 'http://127.0.0.1:8000/api/v1/actors/',
>>                 dataType : 'jsonp',
>>                 type : 'GET',
>>                 data : { format: 'jsonp' },
>>                 success : function(data) {
>>                 },
>>                 error: function(){
>>                 }
>>          });
>>
>>
>> --
>> Best regards
>> www.nmtsylla.co
>> www.twitter.com/niamato
>> www.facebook.com/niamatosylla <http://www.facebook.com/booba.sylla>
>>
>> -- Ce message a �t� envoy� � la liste [email protected] Gestion de
>> votre abonnement : http://dakarlug.org/liste Archives :
>> http://news.gmane.org/gmane.org.user-groups.linux.dakarlug Le site du
>> DakarLUG : http://dakarlug.org
>>
>>
>> --
>> Ce message a été envoyé à la liste [email protected]
>>
>> Gestion de votre abonnement : http://dakarlug.org/liste
>> Archives : http://news.gmane.org/gmane.org.user-groups.linux.dakarlug
>> Le site du DakarLUG : http://dakarlug.org
>>
>
>
>
> --
> Ce message a été envoyé à la liste [email protected]
> Gestion de votre abonnement : http://dakarlug.org/liste
> Archives : http://news.gmane.org/gmane.org.user-groups.linux.dakarlug
> Le site du DakarLUG : http://dakarlug.org
>



-- 
Best regards
www.nmtsylla.co
www.twitter.com/niamato
www.facebook.com/niamatosylla <http://www.facebook.com/booba.sylla>
--
Ce message a été envoyé à la liste [email protected]
Gestion de votre abonnement : http://dakarlug.org/liste
Archives : http://news.gmane.org/gmane.org.user-groups.linux.dakarlug
Le site du DakarLUG : http://dakarlug.org

Répondre à