Hi,
recently I needed to use @condition decorator from Django on my DRF
ViewSets. It didn't work and I didn't find some package that would
(correctly) solve it. So I created new one, you can find it here:
https://github.com/jozo/django-rest-framework-condition
I'm wonder
gt;>
>> On Mon, Mar 11, 2019 at 10:32 PM mohamed fazil
>> wrote:
>>
>>> I am using Django rest framework. I had a rest URL when i call that URL
>>> at a time from various 3, 4 streaming client, I got a response from only
>>> one client remaining clie
10:32 PM mohamed fazil
>> wrote:
>>
>>> I am using Django rest framework. I had a rest URL when i call that URL
>>> at a time from various 3, 4 streaming client, I got a response from only
>>> one client remaining client not responding me for that purpose only I
; Fazil
> Skits Private Ltd.
>
>
> On Tue, Mar 12, 2019 at 8:38 PM Mark Phillips
> wrote:
>
>> Have you looked at celery and redis?
>>
>> Mark
>>
>> On Mon, Mar 11, 2019 at 10:32 PM mohamed fazil
>> wrote:
>>
>>> I am using Django r
n, Mar 11, 2019 at 10:32 PM mohamed fazil
> wrote:
>
>> I am using Django rest framework. I had a rest URL when i call that URL
>> at a time from various 3, 4 streaming client, I got a response from only
>> one client remaining client not responding me for that pu
Have you looked at celery and redis?
Mark
On Mon, Mar 11, 2019 at 10:32 PM mohamed fazil
wrote:
> I am using Django rest framework. I had a rest URL when i call that URL at
> a time from various 3, 4 streaming client, I got a response from only one
> client remaining client not resp
I am using Django rest framework. I had a rest URL when i call that URL at
a time from various 3, 4 streaming client, I got a response from only one
client remaining client not responding me for that purpose only I want to
know how to use multithreading in Django rest framework? how to resolve
I'm using Django Rest Framework 3.7.7.
What I want to do is test all my list_route and detail_route methods on the
view to achieve 100% with coverage but:
1. I couldn't get to pass values when trying to test a detail_route. I got
to call the method, using .post but on the view
I'm trying to add a new record into Mongo DB using Django REST Framework:
def post(self, request, *args, **kwargs):
data = request.data
serializer = self.serializer_class(data=data)
serializer.is_valid(raise_exception=True)
During data serialization I've got an error: `
r doesn't exist." error.
If is not a problem, I ask you another question: my final target is to
verify a JWT without the username information. I'm documenting about
"Django REST framework JWT" and I think that it only expects to receive a
JWT with username (it has the user che
ope this help.
Regards
—
Arthur
On January 28, 2019 at 3:29:47 PM, El_merendero (carlopole...@gmail.com)
wrote:
Hi all,
I'm developing a Django application for Windows with Pyhton 2.7.15. I need
to implement an authentication mechanism with Django REST Framework JWT
<https://getblimp.githu
Hi all,
I'm developing a Django application for Windows with Pyhton 2.7.15. I need
to implement an authentication mechanism with Django REST Framework JWT
<https://getblimp.github.io/django-rest-framework-jwt/> where I simply need
to verify a token (and not to generate it). The toke
:13, ankit mahajan need help to retain my existing data.
> The database i am using is mysql.
> can any one suggest me some solutions or guide me to resolve this problem.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framew
, 2018, 21:13 ankit mahajan need help to retain my existing data.
> The database i am using is mysql.
> can any one suggest me some solutions or guide me to resolve this problem.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST
need help to retain my existing data.
The database i am using is mysql.
can any one suggest me some solutions or guide me to resolve this problem.
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this
shed some light on how this should work and if there is any sample
code I can look at, that would be great. Thanks.
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from i
the entity( like task here) and associating it
with another model (like consumer here).
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
t
DRF is sessionauthentication.
Anyone have any clues what might be going wrong here?
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-
to The autoogrnerated API docs(From the core of Django Rest
> framework).
> For generation I use generics, viewsets, mixins.
> Simple example:
> users/ - Displayed in documentation
> users/{id} - Displayed in documentation
> users/personal-profile - Not displayed in
> I have developed a tool for which generates an inventory and documentation
> for your Django REST Framework URL endpoints based on your code and your
> docstring comments. Link to the repo is below. Contributions are most
> welcome!
> https://github.com/marcgibbons/django-rest-framew
advance rest client post data to my sql table without use html page use
form submission disable csrf_token
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from i
;
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Looking forward to your reply.
Best Regards,
Thanos
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop rece
sign :)
Greetings from Mexico,
Alberto
On Monday, March 5, 2018 at 1:46:56 PM UTC-6, Athanasios Garyfalos wrote:
>
> Hello again,
>
> I guess this is a very common question on new Api(s) with Django Rest
> Framework.
>
> After spending 9 hours (just today the rest of the
onday, 30 April 2018 19:49:06 UTC+1, Prasanna Balaraman wrote:
>
> Follow the steps mentioned in this blog and you should be able to
> accomplish it.
>
> https://blog.vivekshukla.xyz/uploading-file-using-api-django-rest-framework/
>
> Thanks,
>
> [image: freshworks
Follow the steps mentioned in this blog and you should be able to
accomplish it.
https://blog.vivekshukla.xyz/uploading-file-using-api-django-rest-framework/
Thanks,
[image: freshworks-dew.png]
Prasanna Balaraman
Team Enabler
p : +91-9940112996
e : prasanna.balara...@freshworks.com
w
cts.all()
def get_queryset(self, *args, **kwargs):
qs = super(FileUploaderViewSet, self).get_queryset(*args, **kwargs)
# qs = qs.filter(owner=self.request.user)
return qs
--
You received this message because you are subscribed to the Google Groups
"
utorials-and-resources/
> https://realpython.com/django-rest-framework-quick-start/
>
> https://codeburst.io/building-an-api-with-django-rest-framework-and-class-based-views-75b369b30396
>
> https://blog.apptension.com/2017/09/13/simple-nested-api-using-django-rest-framework/
>
&g
Check out these links:
http://www.django-rest-framework.org/topics/tutorials-and-resources/
https://realpython.com/django-rest-framework-quick-start/
https://codeburst.io/building-an-api-with-django-rest-framework-and-class-based-views-75b369b30396
https://blog.apptension.com/2017/09/13/simple
Hello,
I'm happy to announce the availability of the version 0.2.1 of
django-rest-framework-datatables:
https://pypi.org/project/djangorestframework-datatables/
Django-rest-framework-datatables is a third party app that provides
seamless integration between Django Rest Framewor
I am new to Django and Django rest framework. I wanted to learn more deeply
please suggest some best sources to learn Django rest framework.
>From there documentation i had learned basics but for my project i need
some more flexibility and learning tutuorial.
I am trying to build Back
Hello again,
I guess this is a very common question on new Api(s) with Django Rest
Framework.
After spending 9 hours (just today the rest of the days do not count) I
finally managed to fixed it.
I followed the solution from here (django rest-framework : can't get static
files
&
Hello everyone,
I am new to Django Rest Framework and to REST in general.
I followed the really nice REST-Tutorials
<http://www.django-rest-framework.org/tutorial/1-serialization/> and I
managed to make an API that on my local host is working perfectly.
My problem is when I am deploying
jango REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I am running a web application using Django and Django Rest Framework on
Heroku with a postgresql and redis datastore. I am on the free postgresql
tier which is limited to 20 connections.
This hasn't been an issue in the past, but recently I started using django
channels 2. &
t; Hi,
>
> I don’t think it ever had. What are you referring to ?
>
> Regards,
> Xavier.
>
> Le 30 janv. 2018 à 11:03, Cynthia Simiyu > a écrit :
>
> compat.py missing def set_many in version 3.7.7, why?
>
> --
> You received this message because you are subs
Indeed. The latest version supports Django 1.10, 1.11, and 2.0.
You'll need to either upgrade Django or downgrade REST framework.
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop r
r.
>
>> Le 30 janv. 2018 à 11:03, Cynthia Simiyu > <mailto:cynthia.sim...@financeplan.biz>> a écrit :
>>
>> compat.py missing def set_many in version 3.7.7, why?
>>
>> --
>> You received this message because you are subscribed to the Google G
roups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-rest-framework+unsubscr...@googlegroups.com
> <mailto:django-rest-framework+unsubscr...@googlegroups.com>.
> For more options
compat.py missing def set_many in version 3.7.7, why?
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framewor
e which api end point used to login
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
e helpe me.
>
There is a trailing "/" on the url which your are not requesting.
Cheers,
Rodrigo
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hello everyone
I have a problem, with my code please, I doing crud useradmin django rest
framework.
this is my urls.py
urlpatterns = [
url(r'^$', views.ProfileList.as_view()),
url(r'^users/$', views.UserList.as_view()),
url(r'^users/(?P[0-9]+)/$
LogSerializer(serializers.ModelSerializer):
> group = GroupSerializer()
> class Meta:
> model = Log
> fields = ('group', 'created')
>
>
> The post responese:
>
> {
> "group": {
> "non_field_errors&quo
onary, but got group."
]
}}
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It's all go today!
Django REST Framework v 3.7.2 introduced an `AppRegistryNotReady` error
importing the contrib.auth views.
This is was speedily reported and resolved.
v3.7.3 is no available on PyPI.
Enjoy.
Kind Regards,
Carlton
--
You received this message because you are subsc
Hi All.
Django REST Framework v3.7.2 is available now.
https://github.com/encode/django-rest-framework/releases
Enjoy.
Kind Regards,
Carlton
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this
to create a login api (or use an existing one if it is already
>> pre-bundled) using django rest framework. However, I'm completely at a loss.
>> Whenever I send a post request to the django rest framework "login" url, it
>> just sends back the browsable api temp
Can you list some code? What your returning in your method?
пятница, 3 ноября 2017 г., 2:28:43 UTC+3 пользователь sakkhar saha написал:
>
> I want to create a login api (or use an existing one if it is already
> pre-bundled) using django rest framework. However, I'm completel
I want to create a login api (or use an existing one if it is already
pre-bundled) using django rest framework. However, I'm completely at a
loss. Whenever I send a post request to the django rest framework "login"
url, it just sends back the browsable api template page.
--
Yo
I want to update a field in my model whenever an object link is called
through the api. I'm using Django Rest Framework to handle the creation of
api.
The link to a single object is
example.com/api/pk/ where pk is the object id.
In the model viewset, I wrote a partial update meth
quot;xx",
"prdline": 2,
"comment": "dd"
}
But I can not update the project through the above json,you must use:
{
"id": 10,
"name": "e",
"prdline": {
son > wrote:
>
>> We currently are using Django 1.11 and DRF 3.
>>
>> Can anyone recommend a good visualization library that works well with
>> Django Rest Framework? For charts, graphs, etc... that pulls the data from
>> the DRF.
>>
>> I'd
well with
> Django Rest Framework? For charts, graphs, etc... that pulls the data from
> the DRF.
>
> I'd prefer a python library, if possible. But I'm open to any suggestions.
>
> Thank you!
>
> --
> You received this message because you are subscribed to the
We currently are using Django 1.11 and DRF 3.
Can anyone recommend a good visualization library that works well with
Django Rest Framework? For charts, graphs, etc... that pulls the data from
the DRF.
I'd prefer a python library, if possible. But I'm open to any suggestions.
I used to The autoogrnerated API docs(From the core of Django Rest framework).
For generation I use generics, viewsets, mixins.
Simple example:
users/ - Displayed in documentation
users/{id} - Displayed in documentation
users/personal-profile - Not displayed in documentation
class
self.data_twt = get_twitter_person(fb_id)
> # Here I tried to modify data, but data is read
> only
> # data['twitter_name'] = self.data_twt['name']
> except:
> rais
Hi,
You will need to loop on the items and use a serializer on each of them.
Regards,
Xavier Ordoquy,
Linovia.
> Le 14 mai 2017 à 07:19, Gaurav Pant a écrit :
>
>
> 0
> down vote
> <>favorite
>
> <http://stackoverflow.com/questions/43960378/django-rest-fra
except:
raise serializers.ValidationError('Id not in
Twitter')
return data
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
0down votefavorite
<http://stackoverflow.com/questions/43960378/django-rest-framework-nested-serializer-retrieve-valid-records-of-nested-ser#>
I am retrieving multiple client records at a time using
"RegistrationSystemSerializer" serialize here.
class Client
Hi,
Looks like your code that calls POST data is incorrect. As you see in
printout for some reason included data is strangely wrapped as an object
to toplevel item_id.
On 10.03.2017 15:27, Sandesh Naroju wrote:
I just want to try simple Django rest framework code, I used APIVIEW
and posted
I just want to try simple Django rest framework code, I used APIVIEW and
posted data through browser.
CODE:
class GetData(APIView):
def post(self, request, format=None):
if request.method == 'POST':
item_id = request.data.ge
1600/api-docs.gif>
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups.com.
For more
I am running an API built with Django Rest Framework(DRF). I am using
AngularJs for my front-end, mainly for sending the requests to the API.
However, I am facing a weird issue:
If I am logged in using the admin panel, and I send the POST request, I get
this error from my API:
CSRF token
sic regex, but if I use it, any Team object is reachable via my
> serialized Rest API.
>
> How to can I get a url like as: /api/teams/Name.F.C. in my serialized Team
> model?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> &q
erialized Rest API.
How to can I get a url like as: /api/teams/Name.F.C. in my serialized Team
model?
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
>
> Database:
>
> <https://lh3.googleusercontent.com/-T0vWDvxz4o0/WGrQ7VkFUXI/AlM/N66JCp7aDx0uipzPiY2o6vud0eM0ff8eACLcB/s1600/U4tl7.png>
>
> Current API:
>
> <https://lh3.googleusercontent.com/-alR7rpm_vc4/WGrREkQNZ7I/AlQ/vfkQcNAl7Q0BWMJ0qI0FNZl-_Y7l
IntegerField()
>>>>>
>>>>> class Meta:
>>>>> ordering = ['measurementTime']
>>>>>
>>>>> def __unicode__(self):
>>>>> return str(self.id)
>>>>>
>>>>>
>>>
tent.com/-alR7rpm_vc4/WGrREkQNZ7I/AlQ/vfkQcNAl7Q0BWMJ0qI0FNZl-_Y7lSyHIACLcB/s1600/wRbUN.png>
>
> Thanks in advance.
>
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe
.id)
>>>
>>>
>>>
>>> Database:
>>>
>>> <https://lh3.googleusercontent.com/-T0vWDvxz4o0/WGrQ7VkFUXI/AlM/N66JCp7aDx0uipzPiY2o6vud0eM0ff8eACLcB/s1600/U4tl7.png>
>>>
>>> Current API:
>>>
>>> <https://lh
abase:
>>
>> <https://lh3.googleusercontent.com/-T0vWDvxz4o0/WGrQ7VkFUXI/AlM/N66JCp7aDx0uipzPiY2o6vud0eM0ff8eACLcB/s1600/U4tl7.png>
>>
>> Current API:
>>
>> <https://lh3.googleusercontent.com/-alR7rpm_vc4/WGrREkQNZ7I/AlQ/vfkQcNAl7Q0BWMJ0
yHIACLcB/s1600/wRbUN.png>
>
> Thanks in advance.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
4/WGrREkQNZ7I/AlQ/vfkQcNAl7Q0BWMJ0qI0FNZl-_Y7lSyHIACLcB/s1600/wRbUN.png>
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an em
how to decode a jwt token in django to get the user information
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framewor
Read source on Github as much as you can and understand how it is working.
https://github.com/tomchristie/django-rest-framework
On 1 December 2016 at 15:23, wrote:
> django-rest-framework@googlegroups.com
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!foru
k.
>
> Regards,
> Xavier,
> Linovia.
>
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegro
Hi,
You declared your view as "fields" in the routers, so you should use
"fields-detail" as the view name for the hyperlink.
Regards,
Xavier,
Linovia.
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
the `lookup_field` attribute on this field.
I don't understand the situations when I should use view_name attribute in
relation to if I wnt get a list objects, a object detail and so ...
although here <http://stackoverflow.com/a/26989845/2773461> explain
something about it.
When I
gards,
Xavier,
Linovia.
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
able in REST framework master, and the 3.5
> release should be out very shortly.
>
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dj
subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
tion of RequestsClient。
>
> It doesn't exist in rest_framwork.test????
>
It looks like it’s there.
https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/test.py#L118
<https://github.com/tomchristie/django-rest-framework/blob/master/rest_framework/tes
e subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
up-by-and-order-by
If there are DRF specific pieces like how to show it in a serializer,
please post a followup.
Robert K <mailto:kaus...@gmail.com>
August 20, 2016 at 7:03 AM
Hi,
has anybody an idea how to realize a group-by/count with django rest
framework? Im searched around on the int
Hi,
has anybody an idea how to realize a group-by/count with django rest
framework? Im searched around on the internet but cant find a working
solution...
I have a model with this fields: id, user, session
What i want is a count of the users per session.
--
You received this message because
I want to make the Django REST Framework work with web sockets and came
across Django Channels.
Can I build Channels on top of the REST Framework?
I read here
<http://www.django-rest-framework.org/topics/mozilla-grant/#realtime-apis>
that it is WIP, however I was wondering if th
I have two models (Like and News). I am using django-rest-framework to make
a web api out of it.
class Like(models.Model):
user = models.ForeignKey(User)
content_type = models.ForeignKey(ContentType)
object_id = models.PositiveIntegerField()
content_object = GenericForeignKey
x27;m crossing my
fingers that we'll actually be able to make sustainable development
on
the project a reality.
Anything you can do to help spread the message very much appreciated.
--
You received this message because you are subscribed to the Google
Groups "Django REST framew
very much appreciated.
--
You received this message because you are subscribed to the Google Groups
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-rest-framework+unsubscr...@googlegroups.com.
For more
101 - 188 of 188 matches
Mail list logo