Re:

2019-11-20 Thread Jordan Micle
> > def detail(request,user): > print('hobbies : ', user.hobbies) > return render(request, 'company/detail.html',{'details':user}) > change detail function like this def detail(request): print('hobbies : ', user.hobbies) return render(request,

where I should send file?

2019-11-12 Thread Jordan Micle
I am going to send to storage from my server. That storage url is like this ftp://***.***.com how can I send file to here? I tried to use ftplib but says "socket.gaierror: [Errno 11001] getaddrinfo failed" like this. I think this storage is located on s3, I set this storage on washabi s3.

Re: I have two models which are associated to each other through a ForeignKey how to delete the child model object without affecting parent model object

2019-11-09 Thread Jordan Micle
> > when you use foreingkey you will set these options > here, change like this on_delete=models.SET_NULL user = models.ForeignKey(User, null=True, on_delete=models.SET_NULL) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Making Django Form dynamically

2019-11-05 Thread Jordan Micle
in general when we define django form we set the model of django in class Meta, like below class Form(forms.ModelForm): class Meta: model = ModelName fields = '__all__' But I am going to set this ModelName dynamically like this. class Form(forms.ModelForm,

Set the model of Form automatically?

2019-11-05 Thread Jordan Micle
In general we create form and set the model in class Meta class Meta: model = SampleModel but I am going to set the model automatically. so I am going to make form dynamically. Is it possible? -- You received this message because you are subscribed to the Google Groups "Django users"

Re: beginner's question

2019-11-05 Thread Jordan Micle
> > cd mysite > input this command -- 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

Re: beginner's question

2019-11-05 Thread Jordan Micle
if you are going to check the version of installed django django-admin --version > > -- 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

Re: Help with manage.py help

2019-11-02 Thread Jordan Micle
That error occur because you didn't install django. Or you didn't activate the environment -- 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