>
> 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, 'company/detail.html',{'details':req
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.
an
>
> 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
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, modelpar
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" group
>
> 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 we
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 django-users+unsubscr...
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 django-users+unsubscr.
8 matches
Mail list logo