Re: Full Address

2020-10-18 Thread Jakob Damgaard Møller
27;, 'full_address', 'status') > > def get_full_address(self, obj): > return f"{address1} {address2} {address3} {addres4}" > > it's saying address1 address2 address3 and address4 is not define > > > On Sun, Oct 18, 2020 a

Re: Full Address

2020-10-18 Thread Jakob Damgaard Møller
oglegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-rest-framework/CA%2BBWBj3eHjtt%2BYSMU8DyKF4SBdZ2i0h3KZME1WR_LFTDcQmQeg%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-rest-framework/CA%2BBWBj3eHjtt%2BYSMU8DyK

Re: Full Address

2020-10-18 Thread Jakob Damgaard Møller
lt;https://groups.google.com/d/msgid/django-rest-framework/93ceeb6a-c7c1-4c7b-834d-81429ef4b0f8n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Venlig hilsen Jakob Damgaard Møller Mobil: 24613112 -- You received this message because you are subscribed to the Google Gro

Re: How to get data from django model to excel sheet using openpyxl including images.

2020-07-09 Thread Jakob Damgaard Møller
What have you tried so fare? Are you able to get the data out of the api as wanted? Are you able to produce a excel file? On Fri, Jul 10, 2020 at 5:02 AM Ashutosh Mishra wrote: > I am creating an api to get data and images from django model to excel > sheet ,how can i do that,someone please help

Re: Need help

2020-06-20 Thread Jakob Damgaard Møller
up.py > install, after i don't understand what to do > > On Sat, Jun 20, 2020 at 6:10 PM Jakob Damgaard Møller > wrote: > >> Hello Venna, >> what have you tried so fare? >> >> Have you followed the instructions on this page: >> https://github.com/dja

Re: Need help

2020-06-20 Thread Jakob Damgaard Møller
Hello Venna, what have you tried so fare? Have you followed the instructions on this page: https://github.com/django-helpdesk/django-helpdesk Are you getting any errors? If yes, which? It is not working as expected? Help us help you. Provide more details. :) On Sat, Jun 20, 2020 at 12:13 PM venn

Re: How to create own frontend (with Javascript, Html, CSS) in DRF instead of DRF default renderes

2020-05-14 Thread Jakob Damgaard Møller
You can choose whatever you feel like: Angular Reactjs Vue.js Ember or custom... On Thu, May 14, 2020 at 11:55 AM Wanderley S wrote: > You could also use Vue.js. > I started with react, then migrated to Vue. > In my opinion Vue is easier to understand and use and has a really awesome > document

Re: Delete method

2019-09-25 Thread Jakob Damgaard Møller
What are we talking about? On Wed, Sep 25, 2019 at 12:34 PM Kęstutis Ramulionis < kestutis.ramulio...@gmail.com> wrote: > Hello, i would like to ask how to remove delete method confirmation pop up > > -- > You received this message because you are subscribed to the Google Groups > "Django REST fr

Re: how to add allow methods

2019-09-10 Thread Jakob Damgaard Møller
Or look into a custom permission: https://www.django-rest-framework.org/api-guide/permissions/#custom-permissions IsCreationOrAuthenticated like the: IsOwnerOrReadonly Instead of the request.method in permissions.SAFE_METHODS, see if the method == "POST" On Tue, Sep 10, 2019 at 2:30 PM siva gatti

Re: how to add allow methods

2019-09-10 Thread Jakob Damgaard Møller
Instead of using a viewset look at: https://www.django-rest-framework.org/api-guide/generic-views/ or: https://www.django-rest-framework.org/api-guide/views/ You will need to assign permissions_classes to each "method" On Tue, Sep 10, 2019 at 2:04 PM Harrys Asimakopoulos wrote: > from rest_frame

Re: Django Auth User Table

2019-08-11 Thread Jakob Damgaard Møller
What do you mean? You have done this: https://docs.djangoproject.com/en/2.2/topics/auth/customizing/#substituting-a-custom-user-model And now DRF is not working ? On Sat, Aug 10, 2019 at 2:51 PM göktürk sığırtmaç wrote: > Hello, how can i convert auth user table to users table in Django Rest > F

Re: ModuleNotFoundError: No module named 'rest-auth'

2019-05-18 Thread Jakob Damgaard Møller
rest_auth != rest-auth ?? On Sat, May 18, 2019 at 12:07 PM Tim Vogt wrote: > This happens: > > (api_django_new) bash-3.2$ python manage.py runserver > Watching for file changes with StatReloader > Exception in thread django-main-thread: > Traceback (most recent call last): > File > "/usr/loca

Re: Does partial_update updates DB partially?

2019-02-02 Thread Jakob Damgaard Møller
https://www.django-rest-framework.org/api-guide/generic-views/#updateapiview This view support PUT and PATCH. On Sat, Feb 2, 2019 at 7:47 AM wrote: > Unfortunately, there is no reply on my question. > My question is about a partial update of the columns in the database. > At this moment, PATCH m

Re: ImportError: Could not import 'rest_framework.filters.DjangoFilterBackend' for API setting

2019-01-18 Thread Jakob Damgaard Møller
And you have installed the Django filter as described below: https://www.django-rest-framework.org/api-guide/filtering/#djangofilterbackend lør. 19. jan. 2019 kl. 00.16 skrev Praveen Kumar < praveenkumar.elanko...@gmail.com>: > I am upgrading Django from 1.8 to 2.1.5 and Python 2.7 to 3.6. On t

Re: Create database objects for unit tests

2018-12-13 Thread Jakob Damgaard Møller
Look at this https://factoryboy.readthedocs.io/en/latest/ tor. 13. dec. 2018 kl. 09.15 skrev Alexander Lamas < alexander.g.la...@gmail.com>: > Hi all, > > Does anyone know where and how to implement the reading and execution of a > sql script file to create all database objects before run the unit

Re: Calling an API app from another app inside a Django Project

2018-09-12 Thread Jakob Damgaard Møller
Depends what you want to archive. If you just want the users, you could do: users = User.objects.all() Remember to import User model ons. 12. sep. 2018 kl. 22.45 skrev Daniel Breves : > I've just realized that I'm receiving a list of OrderedDict and that's ok. > But am I doing it the right way?

Re: How to catch the data send by the app?

2018-08-08 Thread Jakob Damgaard Møller
Hello sagar, i think this tutorial can help you. See this http://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/#associating-snippets-with-users ons. 8. aug. 2018 kl. 13.50 skrev Sagar Bhadarka : > Hello everyone > I have an API in django. When that API called by app it ac