load drf from different location

2015-08-31 Thread Prabath Peiris

Hi 

This is the problem I am trying to solve. I have a VM which has all the 
django + other required packages are installed (including the 
rest_framework). I usually ssh to the VM and then run the following command 

PYTHONPATH=/all/the/paths runserver 127.0.0.1:8000

Now I want to mount the rest_framework to my local machine and and put some 
debug code to understand how to framework is working. what I like to do is 
this, I installed the rest_framework module in to my local directory (in 
VM) and I would like to load the rest_framework from the local install 
instead from the systemwide install ( I do not want to edit the systemwide 
install). 

How can I tell the django or pythonpath to load only rest_framework from 
somewhere else. 

Thank You 
Prabath 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f9b2b2f8-bc67-4e4d-a634-c4850abf840e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: DRF without login

2015-08-14 Thread Prabath Peiris
I set this in my setting.py file and it worked 

REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': [],
'DEFAULT_PERMISSION_CLASSES': [],
}

Thank You 
Prabath 


On Thursday, August 13, 2015 at 5:11:35 PM UTC-4, Xavier Ordoquy wrote:
>
>
> Le 13 août 2015 à 23:06, Prabath Peiris  > a écrit :
>
> Hi 
>
>
> Hi
>
> I am trying to implement a DRF in existing django project. I installed the 
> drf and set up APiView (class based) and add the get() to the class. When I 
> call this get method I get an error  as "Exception Value: no such table: 
> auth_user" and also create a db.sqlite3 database. how can I just simply 
> have a api (without models or without any authentications)
>
>
> You probably want to turn off the DRF authentication / permissions system (
> http://www.django-rest-framework.org/api-guide/authentication/#setting-the-authentication-scheme
>  and 
> http://www.django-rest-framework.org/api-guide/permissions/#setting-the-permission-policy
> ).
>
> Thanks 
> Prabath 
>
>
> Regards,
> Xavier,
> Linovia.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/703dde50-11da-4da9-a39c-e21bbbf5491d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


DRF without login

2015-08-13 Thread Prabath Peiris
Hi 

I am trying to implement a DRF in existing django project. I installed the 
drf and set up APiView (class based) and add the get() to the class. When I 
call this get method I get an error  as "Exception Value: no such table: 
auth_user" and also create a db.sqlite3 database. how can I just simply 
have a api (without models or without any authentications)

Thanks 
Prabath 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c9c07b7b-daf4-40bb-bf0e-0978d0593a59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Console Routes With Django ??

2015-08-12 Thread Prabath Peiris
Looks like there is room for some new development.


On Tuesday, August 11, 2015 at 3:29:55 PM UTC-4, Prabath Peiris wrote:
>
> Hi 
>
> I am new to (kind of) Django framework and just finish the 
> Django-REST-framework tutorials and it looks really cool. I am a big fan of 
> ZendFramework2.0 (with Apigility) and trying to make parallels between 
> these two frameworks. My primary question is about console routes. In ZF2 
> you can define console routes very easily and execute same controllers as 
> web API requests. What is the best way to accomplish this in Django 
> (specially using REST framework). 
>
> ZF2 console routes : 
> http://framework.zend.com/manual/current/en/modules/zend.console.routes.html
>
>
> Thanks
> Prabath 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/41a45b4f-5836-46c9-b06d-60a87735fe74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Console Routes With Django ??

2015-08-11 Thread Prabath Peiris
Hi 

I am new to (kind of) Django framework and just finish the 
Django-REST-framework tutorials and it looks really cool. I am a big fan of 
ZendFramework2.0 (with Apigility) and trying to make parallels between 
these two frameworks. My primary question is about console routes. In ZF2 
you can define console routes very easily and execute same controllers as 
web API requests. What is the best way to accomplish this in Django 
(specially using REST framework). 

ZF2 console routes 
: http://framework.zend.com/manual/current/en/modules/zend.console.routes.html


Thanks
Prabath 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/192c3d1d-3bb1-4052-9e50-189c265efdeb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: New to Django

2015-08-02 Thread Prabath Peiris

Hi Lachlan 


Thank you for pointing to the right direction. I know this is a long shot, 
but it will be worth the time 

Thank you 
Prabath 


On Sunday, August 2, 2015 at 7:01:51 PM UTC-4, Lachlan Musicman wrote:
>
> Hi Prabath,
>
> The best place to get started if you would like to contribute is the "low 
> hanging fruit" part of the Django codebase:
>
> https://code.djangoproject.com/query?status=!closed&easy=1
>
> and the Django Developers email list if you want to ask for some help
>
>
> https://docs.djangoproject.com/en/dev/internals/mailing-lists/#django-developers
>
> cheers
> L.
>
> --
> The most dangerous phrase in the language is, "We've always done it this 
> way."
>
> - Grace Hopper
>
> On 3 August 2015 at 00:13, Prabath Peiris  > wrote:
>
>> Hi 
>>
>> I am new to Django. I just complete the tutorial session and it looks 
>> awesome. I am a Zend Framework 2 + Apigility user. I have contribute to the 
>> Apigility codebase and looking to switch to Django. I always like (try) to 
>> contribute to the codebase as a learning process. Hope to do this for 
>> Django as well. I know it will take little bit more time to get up that 
>> speed, but I hope this community will be a help. 
>>
>> Thanks
>> Prabath Peiris
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/2d6857e2-a1fa-4d54-8784-e41d4d9c98b4%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/2d6857e2-a1fa-4d54-8784-e41d4d9c98b4%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cb125a22-e820-437f-bfad-ea0174cb5fcf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


New to Django

2015-08-02 Thread Prabath Peiris
Hi 

I am new to Django. I just complete the tutorial session and it looks 
awesome. I am a Zend Framework 2 + Apigility user. I have contribute to the 
Apigility codebase and looking to switch to Django. I always like (try) to 
contribute to the codebase as a learning process. Hope to do this for 
Django as well. I know it will take little bit more time to get up that 
speed, but I hope this community will be a help. 

Thanks
Prabath Peiris

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2d6857e2-a1fa-4d54-8784-e41d4d9c98b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.