FILE UPLOAD IN Nested Serializer

2021-08-25 Thread narendra...@gmail.com
I have a plain text field in Parent Table and should upload a file in child 
table and has a foreign key relation in both table. I cannot upload a file 
in nested serializer. I didn't get a file data in serializer create 
function. it take a data of parent serializer and delete the data of Nested 
Serializer. Can somebody help me to upload a file with nested serializer. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9c0490f5-3532-4acb-ba0e-9918669d49c4n%40googlegroups.com.


UML to Django models

2021-08-25 Thread DJANGO DEVELOPER
Currently, I am working on an inventory management system and I have got 
some UML diagrams and want to convert those uml diagrams into django 
models. So can anyone guide me on how to convert those UML diagrams into 
django models?
an example is below of uml diagram

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d7cc08c3-cb88-422b-8cb3-a15130abeba1n%40googlegroups.com.


Re: Deploying django in plesk

2021-08-25 Thread
Hello,
Please make sure you have run collectstatic command before deploying. You 
can 
follow 
https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/#static-root-and-static-url.

On Thursday, August 26, 2021 at 12:38:52 AM UTC+5:30 frankg...@gmail.com 
wrote:

> Hi everybody.
> I've already deployed my app in Plesk, but the process is incomplete, .
> The static files not working, I mean the app can not read them.
> I know I need put them in the right position, but I can not achieve.
> Any help is welcome
> thanks a lot in advance
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1c8fe40d-0fb2-4dac-b553-2073e6312cefn%40googlegroups.com.


RE: Deploying django in plesk

2021-08-25 Thread Mike Dewhirst
Try manage.py collectstatic --settings=path-to-settingsLook up collectstatic in 
the docsMike--(Unsigned mail from my phone)
 Original message From: frank galan  
Date: 26/8/21  05:09  (GMT+10:00) To: Django users 
 Subject: Deploying django in plesk Hi 
everybody.I've already deployed my app in Plesk, but the process is incomplete, 
.The static files not working, I mean the app can not read them.I know I need 
put them in the right position, but I can not achieve.Any help is welcomethanks 
a lot in advance



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/181a730e-2157-42f6-b540-d1b1dc19c640n%40googlegroups.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6126c3f0.1c69fb81.42e06.c8a4SMTPIN_ADDED_MISSING%40gmr-mx.google.com.


Re: Deploying django in plesk

2021-08-25 Thread Gabriel Araya Garcia
Hi, Frank:
Perhaps that can run if you put the statics folder in the exterior level.
Por example:
misite/misite/myapp
In local, I have my statics folder in myapp level, but in hosting I must to
put it in:
misite
(fisrts misite)
try it, and tell me how has solve that problem.

Greetings

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




El mié, 25 ago 2021 a las 15:09, frank galan ()
escribió:

> Hi everybody.
> I've already deployed my app in Plesk, but the process is incomplete, .
> The static files not working, I mean the app can not read them.
> I know I need put them in the right position, but I can not achieve.
> Any help is welcome
> thanks a lot in advance
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/181a730e-2157-42f6-b540-d1b1dc19c640n%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKVvSDAAaPdtFfu-wnAb%2BTfOeXswYOsNARkkVACbhpVju--VMg%40mail.gmail.com.


Deploying django in plesk

2021-08-25 Thread frank galan
Hi everybody.
I've already deployed my app in Plesk, but the process is incomplete, .
The static files not working, I mean the app can not read them.
I know I need put them in the right position, but I can not achieve.
Any help is welcome
thanks a lot in advance

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/181a730e-2157-42f6-b540-d1b1dc19c640n%40googlegroups.com.


Re: help with django installation

2021-08-25 Thread Kasper Laudrup
On 25/08/2021 12.42, Amor Zamora wrote:
> I put them in situation. I am installing an application, on my local PC,
> that uses django. Application that I installed 1 month ago and it worked
> perfectly. 2 days ago I tried to install it again because I changed the
> PC. and when accessing the functionalities it returns this error.
> HTTPConnectionPool (host = 'localhost', port = 8894): Max retries
> exceeded with url: /? Wsdl (Caused by NewConnectionError
> (': Failed
> to establish a new connection: [Errno 111] Connection refused '))
> Request Method: POST Request URL: http://127.0.0.1:8000/en/aplicaicon2/
> Django Version: 2.0.13 Exception Type: ConnectionError Exception Value:
> HTTPConnectionPool (host = 'localhost', port = 8894): Max retries
> exceeded with url: /? Wsdl (Caused by NewConnectionError
> (': Failed
> to establish a new connection: [Errno 111] Connection refused '))

Hard to know for sure without seeing the code or even having any idea
what the application is supposed to do, but it certainly looks like it's
trying to connect to some SOAP service that should be running on the
localhost at port 8894, but nothing is listening on that port.

Kind regards,

Kasper Laudrup

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/39527b28-deaa-e1c3-4d05-279db48c42b9%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


help with django installation

2021-08-25 Thread Amor Zamora
I put them in situation. I am installing an application, on my local PC, 
that uses django. Application that I installed 1 month ago and it worked 
perfectly. 2 days ago I tried to install it again because I changed the PC. 
and when accessing the functionalities it returns this error. 
HTTPConnectionPool (host = 'localhost', port = 8894): Max retries exceeded 
with url: /? Wsdl (Caused by NewConnectionError 
(': Failed to 
establish a new connection: [Errno 111] Connection refused ')) Request 
Method: POST Request URL: http://127.0.0.1:8000/en/aplicaicon2/ Django 
Version: 2.0.13 Exception Type: ConnectionError Exception Value: 
HTTPConnectionPool (host = 'localhost', port = 8894): Max retries exceeded 
with url: /? Wsdl (Caused by NewConnectionError 
(': Failed to 
establish a new connection: [Errno 111] Connection refused ')) Exception 
Location: 
/home/tu/local/aa/aplication-suite/proyectoa/virtualenv/lib/python3.8/site-packages/requests/adapters.py
 
in send, line 508 Python Executable: / home / you / local / aa / 
aplication-suite / project / virtualenv / bin / python Python Version: 
3.8.10 Python Path: ['/ home / your / local / aa / aplication-suite / 
project', '/usr/lib/python38.zip', '/usr/lib/python3.8', 
'/usr/lib/python3.8/lib-dynload', 
'/home/tu/local/aa/aplication-suite/proyectoa/virtualenv/lib/python3.8/site-packages']
 
Server time: Wed, 25 Aug 2021 10:07:41 +


in my configuration (settings.py) I have DEBUG = False and included all the 
paths and views. The module you refer to does not work well, I have tested 
it on other PCs and it works, and it works fine on the server.
Greatings

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7e145fc6-bbd9-45e2-9130-d4e154af3dc8n%40googlegroups.com.


Re: webpack

2021-08-25 Thread Kasper Laudrup
On 25/08/2021 09.10, Amit Vaghani wrote:
> How to use webpack in our django project
>

https://www.valentinog.com/blog/webpack-django/

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4b32b0bd-3094-3a90-0bb7-3f9d49525622%40stacktrace.dk.


OpenPGP_signature
Description: OpenPGP digital signature


webpack

2021-08-25 Thread Amit Vaghani
How to use webpack in our django project

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fd6ca7c9-1120-4d04-8c8d-3b83acca5f04n%40googlegroups.com.