Re: NoReverseMatch at - Reverse with arguments '('',)' not found

2019-02-07 Thread Ivan Martić
Problem solved, I had a null value in the db so listing couldnt work.. On Monday, February 4, 2019 at 6:59:09 PM UTC+1, B.navya spoorthi Sweety wrote: > > hi all , > i just started with django. i am following this document > https://docs.djangoproject.com/en/2.1/intro/tutorial01/ > here

Password Policy Adherence. Cannot use the passwords used before

2019-02-07 Thread Simon A
Hello, I'm trying to make my django app follow this policy, that the user cannot user his/her last 6 passwords that were already used before. I tried using the django-password-policies library but I'm getting a lot of errors. I think it's not compatible anymore with the current version of

Re: drf - change Foreign key to another field in a serializer using modelviewset

2019-02-07 Thread Okware Aldo
Hi, I think you should consider creating a custom serializer, where you can modify that field, though I would advise you create another or modify yo return the json object of the organiser. https://www.django-rest-framework.org/api-guide/fields/#serializermethodfield On Thu, Feb 7, 2019 at

Re: DJANGO QUORA LIKE APPLICATION

2019-02-07 Thread Ben Indangasy
yes On Thu, Feb 7, 2019 at 10:03 AM Peter Mudoko wrote: > I want a Django quora like application anybody who can do it hungout me > > > > Systems developer > > *Web Technologies Ltd* > > Email *p e...@webtechnologies.co.tz > * > > Mobile: *+254 7

Re: drf - change Foreign key to another field in a serializer using modelviewset

2019-02-07 Thread Ing.Daniel Bojorge
Hi. You can customize the queryset. Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge *Domina el ORM Django* *Curso Desarrollo Web con Python usando Django 2.1 Para

drf - change Foreign key to another field in a serializer using modelviewset

2019-02-07 Thread cyril moreau
Hi, I have a ModelViewSet class as : class EventAPIListCreate( viewsets.ModelViewSet): queryset = EventAPI.objects.all() serializer_class = EventAPISerializer and my serializer looks like : class EventAPISerializer(serializers.ModelSerializer): class Meta: model = EventAPI

Re: REST Framework alternatives

2019-02-07 Thread Ing.Daniel Bojorge
Hi everyone. Tastypie is a good alternative, but it is too old, just look this date in it's website (http://tastypieapi.org/) [image: imagen.png] and the requirements (https://django-tastypie.readthedocs.io/en/latest/) [image: imagen.png] I want to know, what kind of validation do you want to

Connection framework ..Mobile App in Java to Python server on raspberry pi

2019-02-07 Thread Arush Gupta
Hi , I am trying to connect my mobile app similar to Google home app..to the Python server running on Raspberry pi.. Django REST API framework an option ..any other suggestion.. My data is mostly runtime generated like current time, news etc.. not much stored in database.. Suggestion

Re: Use of asyncio

2019-02-07 Thread nm
If you're specifically looking for Django-related uses of asyncio, there's Channels for websockets (and other stuff). You can find an example application - a simple chat - in the tutorial in the documentation. W dniu sobota, 2 lutego 2019 03:39:57

Re: Webinterface for python script

2019-02-07 Thread PASCUAL Eric
Hi Scott, 100% agree with all your points about stock Django. This is BTW the way I use it in all my projects. The stripping experiment I mentioned has been done for curiosity's sake, for diving a bit into customization if ever I would need it some day. Knowing this, my suggestion about

Re: Webinterface for python script

2019-02-07 Thread Scot Hacker
On Wednesday, February 6, 2019 at 1:27:18 AM UTC-8, Eric Pascual wrote: > > Hi Derek, > > but I have never seen anyone refer to it as a "lightweight" project > (before you, that is). > > I didn't meant "Django *is* lightweight" but "Django *can be* > lightweight", implied you configure it

Re: REST Framework alternatives

2019-02-07 Thread Derek
I can't speak to the inflexible, but there are a ton of tutorials out there for DRF, and I was able to make a lot of progress in just one weekend. I would think that JSON validation is an orthogonal problem; you can look at using something like https://pypi.org/project/jsonschema/ for this. On