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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5cf44c4a-f26a-4839-b72e-292e8a9d3695%40googlegroups.com.


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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/31f8f64b-19b0-48cb-9471-08c0cf2a1f28%40googlegroups.com.


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 web visit 
https://groups.google.com/d/msgid/django-users/74b9e2cf-ed15-4636-ad91-d22839cb84f3%40googlegroups.com.


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" 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/f67d17ba-53ac-4707-891a-23f02589a876%40googlegroups.com.


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, modelparameter Model):

class Meta:
model = Model
fields = '__all__'

Is that possible?

-- 
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/7c466d3c-d9da-4f42-8c7b-e2a6428aa235%40googlegroups.com.


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 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/2ea6ad8b-022e-4db1-adf0-9642565eb608%40googlegroups.com.


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.
and Host is s3://***.***.com
and Bucket is *
So where I should send file?
ftp://***.***.com or s3://***.***.com
Thanks for reading.

-- 
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/cf39b10f-c087-40ce-8071-0b4c3cde6c6b%40googlegroups.com.


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, 'company/detail.html',{'details':request.user})

-- 
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/3f6f3d82-63cf-45ff-99da-e008d2cd3841%40googlegroups.com.