Re: Error while running '$ python manage.py collectstatic --noinput'.

2023-12-16 Thread ram.mu...@gmail.com
Here is the static files setting that we have in our settings.py file: *STATIC_URL = '/static/'STATIC_ROOT = os.path.join(BASE_DIR, 'static')* On Saturday, December 16, 2023 at 7:02:46 PM UTC-7 Ram wrote: > Hi, > > Did anyone hit this error before during production server or any type of >

Error while running '$ python manage.py collectstatic --noinput'.

2023-12-16 Thread Ram
Hi, Did anyone hit this error before during production server or any type of deployment. We tried deployment using Digital Oceanś App platform as a pre-prod deployment to check whether this App platform is feasible for our Django web site, but we are hitting this error no matter what ever

Re: Help with DRF error

2023-12-16 Thread Larry Martell
On Sat, Dec 16, 2023 at 1:10 PM Reddy Tintaya wrote: > Can't you just use > workitem = serializers.PrimaryKeyRelatedField( > queryset=WorkItem.objects.all()) > instead of workitem_id? > No because workitem_id is what is sent in the request. > > On Sat, Dec 16, 2023 at 10:00 AM Larry

Re: Help with DRF error

2023-12-16 Thread Reddy Tintaya
Can't you just use workitem = serializers.PrimaryKeyRelatedField( queryset=WorkItem.objects.all()) instead of workitem_id? On Sat, Dec 16, 2023 at 10:00 AM Larry Martell wrote: > I have a DRF API. It is throwing an error that I have not been able to fix. > > Here is my view and serializer:

Help with DRF error

2023-12-16 Thread Larry Martell
I have a DRF API. It is throwing an error that I have not been able to fix. Here is my view and serializer: class CreateNotations(CreateAPIView): permission_classes = [IsAuthenticated] serializer_class = NotationListSerializer def post(self, request, *args, **kwargs): return