Re: チュートリアル 2

2019-11-05 Thread Takashi Sawa
Thank you for your help,
The problems is now solved.

Thank you!

2019年11月6日水曜日 12時32分10秒 UTC+9 Budi Hermansyah:
>
> replace def_str to def _str_(self):
>
> hope will help you...
>
> regards,
> Herman
>
> On Wed, Nov 6, 2019 at 10:05 AM Takashi Sawa  > wrote:
>
>> [image: キャプチャ.JPG]
>> Djangoのチュートリアルを進めているのですが、models.py の編集で、9行目の「:」がなぜか問題として出てきてしまいます。なぜでしょうか。
>> 教えてください。
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/2fd7a87d-7c3b-477e-8803-3f1c564318b6%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/f4bcb14b-fa52-4e11-99bf-da2f8f0bbdc9%40googlegroups.com.


Re: Making Django Form dynamically

2019-11-05 Thread Budi Hermansyah
try this...
https://www.caktusgroup.com/blog/2018/05/07/creating-dynamic-forms-django/


On Wed, Nov 6, 2019 at 10:11 AM Jordan Micle 
wrote:

> 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
> 
> .
>

-- 
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/CAHGmjWVVcd2hYh3TMxArRUU5L18eSM8Tfdi1cuhrtqDN3qdCtg%40mail.gmail.com.


Re: チュートリアル 2

2019-11-05 Thread Budi Hermansyah
replace def_str to def _str_(self):

hope will help you...

regards,
Herman

On Wed, Nov 6, 2019 at 10:05 AM Takashi Sawa  wrote:

> [image: キャプチャ.JPG]
> Djangoのチュートリアルを進めているのですが、models.py の編集で、9行目の「:」がなぜか問題として出てきてしまいます。なぜでしょうか。
> 教えてください。
>
> --
> 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/2fd7a87d-7c3b-477e-8803-3f1c564318b6%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/CAHGmjWVnHL29yELYnRAZT2YUUE-1z2FK19A%3DDzSrQ_pA4x8AHQ%40mail.gmail.com.


Re: beginner's question

2019-11-05 Thread Charles Jason Decena
Hi, what you have entered is a command on checking on what django version
is installed on your machine, i suggest you create pipenv or venv everytime
you create projects in order to eliminate other dependencies not required
for your project

Regards,
Charles Jason Decena

Developer

33F UnionBank Plaza Bldg., Meralco Ave.
Ortigas Center, Pasig City
www.ubx.ph 
[image: linkedin] 
[image: facebook] 
[image: twitter] 


On Tue, Nov 5, 2019 at 11:42 PM Sarma Bhamidipati <
sarma.bhamidipat...@gmail.com> wrote:

> Did you activate your application?
> Have you added your python path to path variable?
>
> On Tuesday, November 5, 2019 at 3:25:00 PM UTC, Takashi Sawa wrote:
>>
>> 今再度挑戦したら、次はこれが出てきました。
>>
>>
>> C:\Users\sour->python -m django --version
>> 2.2.7
>>
>> C:\Users\sour->django-admin startproject mysite
>>
>> C:\Users\sour->python manage.py runserver
>> python: can't open file 'manage.py': [Errno 2] No such file or directory
>>
>> C:\Users\sour->
>>
>> なにが問題でしょうか。
>>
>>
>> 2019年11月6日水曜日 0時07分01秒 UTC+9 Siratim Mustaquim:
>>>
>>> Can you elaborate a  little bit? that command checks the version of
>>> django that is currently installed.
>>>
>>>
>>> On Tue, Nov 5, 2019 at 9:00 PM Takashi Sawa  wrote:
>>>
  File "", line 1
 python -m django --version
   ^
 SyntaxError: invalid syntax

 What's this?

 --
 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...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/a626578e-a97d-4bef-b394-5472917327fa%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/73e70648-ae7a-4d85-93bb-9ae54fc1434d%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/CADnnF6NkjdiXiD2m7J-BDgFnW2kydb0zGo2kStc%2B4-NhjmE%3Dyg%40mail.gmail.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.


チュートリアル 2

2019-11-05 Thread Takashi Sawa


[image: キャプチャ.JPG]
Djangoのチュートリアルを進めているのですが、models.py の編集で、9行目の「:」がなぜか問題として出てきてしまいます。なぜでしょうか。
教えてください。

-- 
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/2fd7a87d-7c3b-477e-8803-3f1c564318b6%40googlegroups.com.


Re: DJANGO, MySQL, NGINX stack for a production hosting server in Digital Ocean droplet

2019-11-05 Thread Ram
Hi,
Thank you both of you. Should I assume that both documents would let me
configure a production server for a highly dynamic web site?
Cheers
~Ram

On Tue, Nov 5, 2019 at 6:34 AM lemme smash  wrote:

> i'm recommend you to consider docker setup like
> https://docs.docker.com/machine/examples/ocean/
>
> https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/#nginx
>
> On Tuesday, November 5, 2019 at 1:27:55 AM UTC+3, Ram wrote:
>>
>> Hi,
>> Please let me know if anyone has setup this stack in your hosting server
>> with Digital Ocean? I appreciate if you can share the appropriate working
>> steps.
>> thanks,
>> ~Ram
>>
> --
> 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/2fe5f56b-7dd4-45c7-b6a6-e8f5227a3c22%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/CA%2BOi5F1Xto1y2PNFHebdwVTsp3D%2BvyRZKaQOeN-GcDEQ4%2BZyug%40mail.gmail.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.


Parent-child-grandchild list

2019-11-05 Thread Terry Sankar
*class Per*son(models.Model):"""Class that manages the person model 
fields"""first_name = models.CharField(max_length=40)last_name 
= models.CharField(max_length=45)
 def __str__(self):return self.first_name
class Order(models.Model):
po   = models.CharField(null=False, blank=False, max_length=255)
date =  models.CharField(null=False, blank=True, 
max_length=25,default="")person   = models.ForeignKey('Person', 
null=False, blank=False,
on_delete=models.CASCADE, related_name='orders')
def __str__(self):return self.po
class Item(models.Model):"e.g. items in the orders"
order = models.ForeignKey('Order', null=False, blank=False,
on_delete=models.CASCADE, related_name='items')
item= models.CharField(max_length=25,default="", blank=True)
description = models.CharField(max_length=255,default="", blank=True)
   def __str__(self):return self.po
## So Person has Orders, Orders has Items
I am trying to list all persons, their orders, ond items:
e.g. Jonh DoeOrder #1 ApplesOrder #2 Grapes
FigsDatesMay Jane Order #1   Pencils  Notepads  
Pens  Colored postitsHenry James   Fish   Beans
So for loops:  For person in person in object_list:? First_name  
For orders( of a person )  For items ( of this order )  
endfor   endfor   endforhere is my list.html template
{% block title %}List{% endblock %}{% block body %}Current List of 
Buyers  {% for person in object_list %}{{ 
person.first_name }} {{ person.last_name }}   {{ person.company}} , {{ 
person.email }}  {{ person.address}} ,  {{ person.address1 }}  {{ 
person.city }} ,  {{ person.state }} ,  {{ person.zip_code}}  *  {% 
johnhorders=Order.objects.filter(person__first_name='John') %}*
   {% for order in johnorders %}  {{ order.po}} 
{{order.date }} {{order.expected}} Update order information  Delete this order {% endfor%} Update informationDelete this buyer  {%endfor%}{% 
endblock %}

-- 
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/9ec52c50-bd75-487d-9d3f-2759d71ac201%40googlegroups.com.


Re:

2019-11-05 Thread Kasper Laudrup

Hi Paras,

On 05/11/2019 19.04, Paras Jain wrote:
bro i was asking the code how to use it to send , email and password  to 
particular email




No you didn't. You wrote:


on hitting submit i have to send email and password to user
email id which will be used for login in django


How is anyone supposed to know what you mean by that? It isn't even a 
proper question.


If you seriously want someone to help you, take a bit of time to explain 
what you want to achieve, what you have tried etc.


Your follow up explanation to your "bro" isn't making it much better.

This isn't only related to this mailing list btw. but a good idea in 
general.


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/ef7e65e0-cde4-88e3-d548-a9aa18c43708%40stacktrace.dk.


Re:

2019-11-05 Thread Integr@te System
plz go to check send mail module.

On Wed, Nov 6, 2019, 01:05 Paras Jain  wrote:

> bro i was asking the code how to use it to send , email and password  to
> particular email
>
> On Tue, Nov 5, 2019 at 6:30 PM Suraj Thapa FC 
> wrote:
>
>> Send it then
>>
>> On Tue, 5 Nov 2019, 5:38 pm Paras Jain,  wrote:
>>
>>> on hitting submit i have to send email and password to user email id
>>> which will be used for login in 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/CAMtmBS8KETpX74D8nRpPiDdnb_GYSeHYGgc3c_6TVgA15dKa4g%40mail.gmail.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/CAPjsHcFZSKeebvqZe7_Eyiz5gJF6dmBv9o-S6ef5rqLVj5SSjw%40mail.gmail.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/CAMtmBS8_j%2BONi43MO1%3DJEjbqktOaedYfV7ZDHtHNLRgvn7Gb7w%40mail.gmail.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/CAP5HUWr7gQV_oG3psE7vaMGJxvmPnDe-LF8ZTH99nH0o1V72aA%40mail.gmail.com.


help with inline

2019-11-05 Thread Elias Coutinho
Hello,

In this project I use:
django-material (http://docs.viewflow.io/material_forms.html) and
materializecss (https://materializecss.com/select.html)

In your example without these js and css libraries it works perfectly, ie 
with pure html it's beautiful.

I tried to add these libraries and it worked, however, the select field 
would not open for me to choose the option.

I put all the code in the template merely to have everything in one place, 
later would adjust to make it more readable.
I set up a gist to try to help you with this problem:

https://gist.github.com/CoutinhoElias/59def5fa01bc84ab70cbd65aa5b2e0b4

I ask attention to line 270
https://gist.github.com/CoutinhoElias/59def5fa01bc84ab70cbd65aa5b2e0b4#file-help-html-L270

That's where I was able to make my options work, but I noticed that select 
gets all digestive from the first one it clones.

I would appreciate your help.

-- 
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/ded663b9-ccbf-49d5-968e-be1abb93f6de%40googlegroups.com.


Re:

2019-11-05 Thread Paras Jain
bro i was asking the code how to use it to send , email and password  to
particular email

On Tue, Nov 5, 2019 at 6:30 PM Suraj Thapa FC 
wrote:

> Send it then
>
> On Tue, 5 Nov 2019, 5:38 pm Paras Jain,  wrote:
>
>> on hitting submit i have to send email and password to user email id
>> which will be used for login in 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/CAMtmBS8KETpX74D8nRpPiDdnb_GYSeHYGgc3c_6TVgA15dKa4g%40mail.gmail.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/CAPjsHcFZSKeebvqZe7_Eyiz5gJF6dmBv9o-S6ef5rqLVj5SSjw%40mail.gmail.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/CAMtmBS8_j%2BONi43MO1%3DJEjbqktOaedYfV7ZDHtHNLRgvn7Gb7w%40mail.gmail.com.


Re: how to login to Django

2019-11-05 Thread Bob Gailer
Please always provide a subject in your email.

Your question unfortunately is vague could you flesh it out with more
detail?

On Nov 5, 2019 8:00 AM, "Suraj Thapa FC"  wrote:

Send it then

On Tue, 5 Nov 2019, 5:38 pm Paras Jain,  wrote:

> on hitting submit i have to send email and password to user email id which
> will be used for login in 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/CAMtmBS8KETpX74D8nRpPiDdnb_GYSeHYGgc3c_6TVgA15dKa4g%
> 40mail.gmail.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/CAPjsHcFZSKeebvqZe7_Eyiz5gJF6dmBv9o-
S6ef5rqLVj5SSjw%40mail.gmail.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/CAP1rxO6PDDDkWgOgB0iizq1%2B%3DXH89ZLRCBV29LdPuragxVMrcg%40mail.gmail.com.


Re: backend for Arduino

2019-11-05 Thread Bob Gailer
Google hotbot Arduino.

On Nov 5, 2019 8:02 AM, "Pranjul Kimothi"  wrote:

> How Can I use Django as backend for an Arduino application .?? Any
> suggestions
>
> --
> 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/CAH8L0J4U%2BzLcuKVKMcQSaYGwWBYza1KMW5z%
> 3DCfYX%3DV53VnoGbw%40mail.gmail.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/CAP1rxO7vbRds%2BKbxXYUvUgh_MceDfSz9CeNkGmxyGF%2BzX0UroQ%40mail.gmail.com.


Re: FileField in custom field

2019-11-05 Thread Simonas Pilkauskas
I think you misread my question. FileFields in Models work for me just fine 
(I have already defined MEDIA_ROOT and figured out directory stuff).
However, I need to have FileField in Field and that Field in Model, but 
having such hierarchy throws error.

2019 m. lapkritis 5 d., antradienis 15:42:38 UTC+2, Integr@te System rašė:
>
> Hi Issuer,
>
> please see:
> In your settings file, you’ll need to define MEDIA_ROOT 
>  
> as 
> the full path to a directory where you’d like Django to store uploaded 
> files. (For performance, these files are not stored in the database.) 
> Define MEDIA_URL 
>  
> as 
> the base public URL of that directory. Make sure that this directory is 
> writable by the Web server’s user account.
>
> https://docs.djangoproject.com/en/2.2/ref/models/fields/
>
> And more check in this content.
>
>
>
> On Tue, Nov 5, 2019, 20:01 Simonas Pilkauskas  > wrote:
>
>> Hello,
>> I want to setup a Model like this 
>> ,
>>  
>> but apparently FileField in custom field doesn't work out of box (when 
>> trying to save, I get the error "can't adapt type 
>> 'TemporaryUploadedFile'"). FileField, which is directly in Model, works 
>> fine.
>> I've tried what came to my mind, but I'm relatively new to Django and 
>> can't figure out myself.
>> Could anyone help me?
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/c34d85b3-78d6-4d89-804f-b1cf2f77c2e5%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/042528fe-4150-4433-bf69-845dffa73b2e%40googlegroups.com.


Re: beginner's question

2019-11-05 Thread Sarma Bhamidipati
Did you activate your application?
Have you added your python path to path variable?

On Tuesday, November 5, 2019 at 3:25:00 PM UTC, Takashi Sawa wrote:
>
> 今再度挑戦したら、次はこれが出てきました。
>
>
> C:\Users\sour->python -m django --version
> 2.2.7
>
> C:\Users\sour->django-admin startproject mysite
>
> C:\Users\sour->python manage.py runserver
> python: can't open file 'manage.py': [Errno 2] No such file or directory
>
> C:\Users\sour->
>
> なにが問題でしょうか。
>
>
> 2019年11月6日水曜日 0時07分01秒 UTC+9 Siratim Mustaquim:
>>
>> Can you elaborate a  little bit? that command checks the version of 
>> django that is currently installed.
>>
>>
>> On Tue, Nov 5, 2019 at 9:00 PM Takashi Sawa  wrote:
>>
>>>  File "", line 1
>>> python -m django --version
>>>   ^
>>> SyntaxError: invalid syntax
>>>
>>> What's this?
>>>
>>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/a626578e-a97d-4bef-b394-5472917327fa%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/73e70648-ae7a-4d85-93bb-9ae54fc1434d%40googlegroups.com.


Re: Djangorest framework tutorial

2019-11-05 Thread yazdan410
I don’t understand Spanish sorry 

Sent from my iPhone

> On Nov 5, 2019, at 10:34 AM, Ing.Daniel Bojorge  wrote:
> 
> Hi, look my course.  
> https://www.udemy.com/course/restful-api-con-python-usando-django-rest-framework/?couponCode=PROMO-OCT-09
> 
> It's in spanish.
> 
> 
> Dios L@s Bendiga
> 
> Saludos,
> 
>  
> 
> 
>   
> daniel.bojorge
> about.me/daniel.bojorge
>   
>  
> Curso Desarrollo Web con Python usando Django 2.2 Para Principiantes con 
> Descuento 95%   
> WebService RestFul API con Python usando Django RestFrameWork
> Fácil Replicación de Cualquier Base de Datos y/o Sistema Operativo
> Programación en Capas (Web y Escritorio)
> Mi Blog
> Nicaragua
> 
> "Si ustedes permanecen unidos a mí, y si permanecen fieles a mis enseñanzas, 
> pidan lo que quieran y se les dará. 
> (Juan 15:7 DHH)
> Bendito el varón que se fía en el SEÑOR, y cuya confianza es el SEÑOR. 
> (Jeremías 17:7 RV2000)
> 
> 
> 
> 
>> El lun., 4 nov. 2019 a las 23:24, kevin trinidad 
>> () escribió:
>> Django Signals: The QuerySet value for an exact lookup must be limited to 
>> one result using slicing
>> 
>> i have this code in my models.py (post_save)
>> 
>> class StudentsEnrolledSubject(models.Model):
>> Students_Enrollment_Records = 
>> models.ForeignKey(StudentsEnrollmentRecord, related_name='+',
>> 
>> on_delete=models.CASCADE, null=True)
>> Subject_Section_Teacher = models.ForeignKey(SubjectSectionTeacher, 
>> related_name='+', on_delete=models.CASCADE,
>> null=True,blank=True)
>> 
>> @receiver(post_save, sender=StudentsEnrollmentRecord)
>> def create(sender, instance, created, *args, **kwargs):
>> teachers = 
>> SubjectSectionTeacher.objects.filter(Sections=instance.Section,Education_Levels=instance.Education_Levels,Courses=instance.Courses)
>> for each in teachers:
>> if created and teachers.exists():
>> StudentsEnrolledSubject.objects.update_or_create(
>> pk=each.id,
>> Students_Enrollment_Records=instance,
>> Subject_Section_Teacher=teachers.all()
>> 
>> )
>> 
>> class StudentsEnrollmentRecord(models.Model):
>> Student_Users = models.ForeignKey(StudentProfile, 
>> related_name='students', on_delete=models.CASCADE, null=True)
>> 
>> class SubjectSectionTeacher(models.Model):
>> Education_Levels = models.ForeignKey(EducationLevel, 
>> related_name='+', on_delete=models.CASCADE, blank=True)
>> Courses = models.ForeignKey(Course, related_name='+', 
>> on_delete=models.CASCADE, null=True, blank=True)
>> Sections = models.ForeignKey(Section, related_name='+', 
>> on_delete=models.CASCADE, null=True)
>> Subjects = models.ForeignKey(Subject, related_name='+', 
>> on_delete=models.CASCADE, null=True)
>> Employee_Users = models.ForeignKey(EmployeeUser, related_name='+', 
>> on_delete=models.CASCADE, null=True)
>> 
>> when I used the **Subject_Section_Teacher=teachers.first()** i received no 
>> error but that is not what i want result, then i decide to change it to this 
>> **Subject_Section_Teacher=teachers.all()**
>> 
>> 
>>> On Tue, Nov 5, 2019 at 1:21 PM Motaz Hejaze  wrote:
>>> If you need any help please let me know
>>> 
>>> My skype
>>> 
>>> m3tz-hjze
>>> 
 On Mon, 4 Nov 2019, 4:44 pm Laura Pérez,  wrote:
 Thanks! 
 
> Em seg, 4 de nov de 2019 às 09:59, Paras Jain  
> escreveu:
> Hi,
> just follow this video u will easily know how to make api very easily 
> link - https://www.youtube.com/watch?v=263xt_4mBNc
> Thnks
> 
>> On Mon, Nov 4, 2019 at 6:17 PM Laura Pérez  wrote:
>> Hi! 
>> I have the task to develop a rest api in python, Can anybody advice me 
>> on a nice tutorial to use djangorest framework ?
>> 
>> Best!
>> 
>> 
>> -- 
>> 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/CAF_dEnq90i0zxOgwGANXaFk_eEWJn4N6d544U1r-qwPS1M92jg%40mail.gmail.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/CAMtmBS_11roQXUzFHb%3Dvus1MnaqqjQV8CmZS5jLrXZDZKvnNAw%40mail.gmail.com.
 -- 
 --
 Laura Pérez Vera
 (+53) 53440970 - lpver...@gmail.com 
 -- 
 You received this 

Re: beginner's question

2019-11-05 Thread Takashi Sawa
Thank you!
出来ました!

2019年11月6日水曜日 0時28分02秒 UTC+9 Ronaldo Mata:
>
> You are trying to run that command on the python interpreter.
>
> try run that command outside python interpret.
>
> El mar., 5 nov. 2019 a las 11:23, Jordan Micle ( >) escribió:
>
>>
>>
>> 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...@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
>>  
>> 
>> .
>>
>

-- 
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/7ed8277c-2e5f-40f5-b93e-9de778594c34%40googlegroups.com.


Re: beginner's question

2019-11-05 Thread Takashi Sawa
Thank you!
出来ました!


2019年11月6日水曜日 0時28分47秒 UTC+9 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/925ad17d-486d-49e5-8d49-95d88f3dad4f%40googlegroups.com.


Re: Djangorest framework tutorial

2019-11-05 Thread Ing.Daniel Bojorge
Hi, look my course.
https://www.udemy.com/course/restful-api-con-python-usando-django-rest-framework/?couponCode=PROMO-OCT-09

It's in spanish.


Dios L@s Bendiga

Saludos,



[image: --]

daniel.bojorge
[image: http://]about.me/daniel.bojorge

 [image: snake]*Curso Desarrollo Web con Python usando Django 2.2 Para
Principiantes con Descuento 95%    *[image:
snake]
*WebService RestFul API con Python usando Django RestFrameWork*

*Fácil Replicación de Cualquier Base de Datos y/o Sistema Operativo*

*Programación en Capas (Web y Escritorio)* 
Mi Blog 
Nicaragua

"Si ustedes permanecen unidos a mí, y si permanecen fieles a mis
enseñanzas, pidan lo que quieran y se les dará.
(Juan 15:7 DHH)
Bendito el varón que se fía en el SEÑOR, y cuya confianza es el SEÑOR.
(Jeremías 17:7 RV2000)




El lun., 4 nov. 2019 a las 23:24, kevin trinidad (<
kevintrinidad...@gmail.com>) escribió:

> Django Signals: The QuerySet value for an exact lookup must be limited to
> one result using slicing
>
> i have this code in my models.py (post_save)
>
> class StudentsEnrolledSubject(models.Model):
> Students_Enrollment_Records =
> models.ForeignKey(StudentsEnrollmentRecord, related_name='+',
>
> on_delete=models.CASCADE, null=True)
> Subject_Section_Teacher = models.ForeignKey(SubjectSectionTeacher,
> related_name='+', on_delete=models.CASCADE,
> null=True,blank=True)
>
> @receiver(post_save, sender=StudentsEnrollmentRecord)
> def create(sender, instance, created, *args, **kwargs):
> teachers =
> SubjectSectionTeacher.objects.filter(Sections=instance.Section,Education_Levels=instance.Education_Levels,Courses=instance.Courses)
> for each in teachers:
> if created and teachers.exists():
> StudentsEnrolledSubject.objects.update_or_create(
> pk=each.id,
> Students_Enrollment_Records=instance,
> Subject_Section_Teacher=teachers.all()
>
> )
>
> class StudentsEnrollmentRecord(models.Model):
> Student_Users = models.ForeignKey(StudentProfile,
> related_name='students', on_delete=models.CASCADE, null=True)
>
> class SubjectSectionTeacher(models.Model):
> Education_Levels = models.ForeignKey(EducationLevel,
> related_name='+', on_delete=models.CASCADE, blank=True)
> Courses = models.ForeignKey(Course, related_name='+',
> on_delete=models.CASCADE, null=True, blank=True)
> Sections = models.ForeignKey(Section, related_name='+',
> on_delete=models.CASCADE, null=True)
> Subjects = models.ForeignKey(Subject, related_name='+',
> on_delete=models.CASCADE, null=True)
> Employee_Users = models.ForeignKey(EmployeeUser, related_name='+',
> on_delete=models.CASCADE, null=True)
>
> when I used the **Subject_Section_Teacher=teachers.first()** i received no
> error but that is not what i want result, then i decide to change it to
> this **Subject_Section_Teacher=teachers.all()**
>
>
> On Tue, Nov 5, 2019 at 1:21 PM Motaz Hejaze  wrote:
>
>> If you need any help please let me know
>>
>> My skype
>>
>> m3tz-hjze
>>
>> On Mon, 4 Nov 2019, 4:44 pm Laura Pérez,  wrote:
>>
>>> Thanks!
>>>
>>> Em seg, 4 de nov de 2019 às 09:59, Paras Jain 
>>> escreveu:
>>>
 Hi,
 just follow this video u will easily know how to make api very easily
 link - https://www.youtube.com/watch?v=263xt_4mBNc
 Thnks

 On Mon, Nov 4, 2019 at 6:17 PM Laura Pérez  wrote:

> Hi!
> I have the task to develop a rest api in python, Can anybody advice me
> on a nice tutorial to use djangorest framework ?
>
> Best!
>
>
> --
> 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/CAF_dEnq90i0zxOgwGANXaFk_eEWJn4N6d544U1r-qwPS1M92jg%40mail.gmail.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/CAMtmBS_11roQXUzFHb%3Dvus1MnaqqjQV8CmZS5jLrXZDZKvnNAw%40mail.gmail.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.


Re: beginner's question

2019-11-05 Thread Ronaldo Mata
You are trying to run that command on the python interpreter.

try run that command outside python interpret.

El mar., 5 nov. 2019 a las 11:23, Jordan Micle ()
escribió:

>
>
> 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
> 
> .
>

-- 
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/CAP%3DoziSm0nkWU3nMc1QARpz93moHXow%3DEsF33D5tt_3aZZRUGQ%40mail.gmail.com.


Re: pass parameter from one class view to another

2019-11-05 Thread Bruckner de Villiers
I assume that you want to access the DetailView form the ListView??

To do that your List View template (which should be shop_list.html) should 
contain {{field}} – {{field}}

I don’t see your models.py so don’t know what the fields are, but here is an 
example of my code for a model called Organisation:

 

{% extends 'pbs1/pbs1_base.html' %}

{% block body_block %}



Available Organisations - 

Click for further details





{% for org in organisation_list %}

{{org.org_Name}} - 
{{org.org_HQ_Location}}

{% endfor %}







Back



{% endblock %}

 

So, when the user clicks on an organisation in the list it takes her to the 
DetailView of that organisation, by virtue of the line in the urls.py:

path('/', views.Org_DetailView.as_view(), name='detail'),

 

Caveat – I am still an novice, but this works for me.

 

Bruckner de Villiers

083 625 1086

 

From:  on behalf of sotiris moustogiannis 

Reply to: 
Date: Monday, 04 November 2019 at 02:09
To: Django users 
Subject: pass parameter from one class view to another

 

I have this listview and the context['datetimelist'] which is a list into def 
get_context_data

 

class ShopListView(ListView):

  model = Shops

  context_object_name= 'shops'

 

  template_name = 'booking/search.html'

 

  def get_context_data(self, **kwargs):

    context = super(ShopListView, self).get_context_data(**kwargs)

    query = self.request.GET.get('q')

    query1 = self.request.GET.get('q1')

    query2 = self.request.GET.get('q2')

    query3 = self.request.GET.get('q3')

    context['datetimelist'] = [query,query1,query2,query3]

    return context

 

 

  def get_queryset(self):

    query = self.request.GET.get('q')

    query1 = self.request.GET.get('q1')

    query2 = self.request.GET.get('q2')

    query3 = self.request.GET.get('q3')

    result_list = Shops.objects.exclude(Q(appointments__time=query) & 
Q(appointments__date = query1))

    result_list2 = Shops.objects.filter(Q(city=query2) & 
Q(typesport=query3))

    context = list(chain(result_list & result_list2))

    return context

 

And i want to pass this list to ShopDetailView class based view 

 

class ShopDetailView(DetailView):

 

  model = Shops

  

  template_name = 'booking/results.html'

 

 

  context_object_name= 'shops'

 

Also, here are my urls that calls these classes

 

path('search/', 
booking_views.ShopListView.as_view(template_name='booking/search.html'), 
name='search'),

path('results//', 
booking_views.ShopDetailView.as_view(template_name='booking/results.html'), 
name='results'),



How can i pass this list from one class based view to the other

-- 
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/5c011fa8-daa1-41ad-b4e8-b4bb7e8aa5d2%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/B2955F71-3B1D-4235-B224-65C30D97781D%40gmail.com.


Re: beginner's question

2019-11-05 Thread Takashi Sawa
今再度挑戦したら、次はこれが出てきました。


C:\Users\sour->python -m django --version
2.2.7

C:\Users\sour->django-admin startproject mysite

C:\Users\sour->python manage.py runserver
python: can't open file 'manage.py': [Errno 2] No such file or directory

C:\Users\sour->

なにが問題でしょうか。


2019年11月6日水曜日 0時07分01秒 UTC+9 Siratim Mustaquim:
>
> Can you elaborate a  little bit? that command checks the version of django 
> that is currently installed.
>
>
> On Tue, Nov 5, 2019 at 9:00 PM Takashi Sawa  > wrote:
>
>>  File "", line 1
>> python -m django --version
>>   ^
>> SyntaxError: invalid syntax
>>
>> What's this?
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/a626578e-a97d-4bef-b394-5472917327fa%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/ed71cfab-2a6e-4168-9ecf-30ce33f98be9%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 Takashi Sawa
日本語で失礼致します。
https://docs.djangoproject.com/en/2.2/intro/tutorial01/
これに今挑戦しているのですが、どうしてもさっきの「Error」が出てしまいます。


2019年11月6日水曜日 0時07分01秒 UTC+9 Siratim Mustaquim:
>
> Can you elaborate a  little bit? that command checks the version of django 
> that is currently installed.
>
>
> On Tue, Nov 5, 2019 at 9:00 PM Takashi Sawa  > wrote:
>
>>  File "", line 1
>> python -m django --version
>>   ^
>> SyntaxError: invalid syntax
>>
>> What's this?
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/a626578e-a97d-4bef-b394-5472917327fa%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/659f9a0a-d2ad-44de-956a-082c9ea408e8%40googlegroups.com.


Re: beginner's question

2019-11-05 Thread Siratim Mustaquim
Can you elaborate a  little bit? that command checks the version of django
that is currently installed.


On Tue, Nov 5, 2019 at 9:00 PM Takashi Sawa  wrote:

>  File "", line 1
> python -m django --version
>   ^
> SyntaxError: invalid syntax
>
> What's this?
>
> --
> 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/a626578e-a97d-4bef-b394-5472917327fa%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/CAPvctivRFa81%2Bwu%2BjC%3D3Wng23Zuuqj7J3U48EXtvo1jNA%3DqXhg%40mail.gmail.com.


Re:

2019-11-05 Thread Bruckner de Villiers
Udemy has a good course leading up to this topic – Python and Django Full Stack 
Web Development, still based on Django 1.x, but Django 2.x code is incuded.

Regards,

 

Bruckner de Villiers

083 625 1086

 

From:  on behalf of Paras Jain 

Reply to: 
Date: Tuesday, 05 November 2019 at 07:41
To: 

 

please somebody tell me what steps should i follow please need help 





Create a Django Web App called “Profile Storer” where a company can sign up 
using Email.

 

Once signed up, he can add more people to his team. Every team member can be 
either “Normal” type or “Manager” type. When you add a team member, that 
particular person gets an email with password, which he/she can use to login.

 

When a Manager type user logs in, he sees a list of all users of that company, 
he can go and edit any of the profile.

 

When a Normal user logs in, he sees only his own profile that he can edit.

 

Questions in Profile:

Name, Phone, Gender, Hobbies, Profile Picture.

-- 
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/CAMtmBS-mWtcx1Z0QFdvDc9F-ApoqHdP_9CkpaQzZUULow%3DHrFg%40mail.gmail.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/A168CEEC-75C0-44DB-8019-5B90ED826344%40gmail.com.


beginner's question

2019-11-05 Thread Takashi Sawa
 File "", line 1
python -m django --version
  ^
SyntaxError: invalid syntax

What's this?

-- 
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/a626578e-a97d-4bef-b394-5472917327fa%40googlegroups.com.


Re: FileField in custom field

2019-11-05 Thread Integr@te System
Hi Issuer,

please see:
In your settings file, you’ll need to define MEDIA_ROOT
 as
the full path to a directory where you’d like Django to store uploaded
files. (For performance, these files are not stored in the database.)
Define MEDIA_URL
 as
the base public URL of that directory. Make sure that this directory is
writable by the Web server’s user account.

https://docs.djangoproject.com/en/2.2/ref/models/fields/

And more check in this content.



On Tue, Nov 5, 2019, 20:01 Simonas Pilkauskas <
simonas.pilkaus...@hotmail.com> wrote:

> Hello,
> I want to setup a Model like this
> ,
> but apparently FileField in custom field doesn't work out of box (when
> trying to save, I get the error "can't adapt type 'TemporaryUploadedFile'").
> FileField, which is directly in Model, works fine.
> I've tried what came to my mind, but I'm relatively new to Django and
> can't figure out myself.
> Could anyone help me?
>
> --
> 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/c34d85b3-78d6-4d89-804f-b1cf2f77c2e5%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/CAP5HUWpeBwxThE6wqjRbeK%2BZaKm0Z65zosw1gWKP0E0%3Doh2xdA%40mail.gmail.com.


Re: DJANGO, MySQL, NGINX stack for a production hosting server in Digital Ocean droplet

2019-11-05 Thread lemme smash
i'm recommend you to consider docker setup like
https://docs.docker.com/machine/examples/ocean/
https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/#nginx

On Tuesday, November 5, 2019 at 1:27:55 AM UTC+3, Ram wrote:
>
> Hi,
> Please let me know if anyone has setup this stack in your hosting server 
> with Digital Ocean? I appreciate if you can share the appropriate working 
> steps.
> thanks,
> ~Ram
>

-- 
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/2fe5f56b-7dd4-45c7-b6a6-e8f5227a3c22%40googlegroups.com.


[no subject]

2019-11-05 Thread Pranjul Kimothi
How Can I use Django as backend for an Arduino application .?? Any
suggestions

-- 
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/CAH8L0J4U%2BzLcuKVKMcQSaYGwWBYza1KMW5z%3DCfYX%3DV53VnoGbw%40mail.gmail.com.


FileField in custom field

2019-11-05 Thread Simonas Pilkauskas
Hello,
I want to setup a Model like this 
,
 
but apparently FileField in custom field doesn't work out of box (when 
trying to save, I get the error "can't adapt type 'TemporaryUploadedFile'"). 
FileField, which is directly in Model, works fine.
I've tried what came to my mind, but I'm relatively new to Django and can't 
figure out myself.
Could anyone help me?

-- 
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/c34d85b3-78d6-4d89-804f-b1cf2f77c2e5%40googlegroups.com.


Re: SQLite 3.8.3 or later is required (found 3.7.17).

2019-11-05 Thread amul justin
Tq so much bro can u send u r contact number pls im from tamilnadu

On Saturday, July 20, 2019 at 6:32:21 PM UTC+5:30, Desh Deepak wrote:
>
> Sorry for the late reply, 
>
> You can try these commands on your terminal:-
>
> pip uninstall Django
>
> Then
>
> pip install Django 2.0
>
> and try to run the server again.
>
>
> Thanks and regards:-
>  Desh Deepak
>  deshde...@gmail.com 
>  +917011101001
>
> On Fri, 19 Jul 2019, 18:06 anchal agarwal,  > wrote:
>
>> Hello Django users,
>> i am trying to deploy my django on AWS 
>> I am following this 
>> https://medium.com/@charlesthk/deploy-nginx-django-uwsgi-on-aws-ec2-amazon-linux-517a683163c6
>> Everything was going right but when i run python manage.py migrate , it's 
>> giving me this error
>> django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is 
>> required (found 3.7.17).
>> how can i resolve this?
>> Please help me 
>>
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAMT%3DisVCsYAju5agUWxPrpjZ5a-NGc1X0A7U34c4QthnAM0jKA%40mail.gmail.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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/172bcb3a-6182-40dc-96b6-327ad365a326%40googlegroups.com.


Re:

2019-11-05 Thread Suraj Thapa FC
Send it then

On Tue, 5 Nov 2019, 5:38 pm Paras Jain,  wrote:

> on hitting submit i have to send email and password to user email id which
> will be used for login in 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/CAMtmBS8KETpX74D8nRpPiDdnb_GYSeHYGgc3c_6TVgA15dKa4g%40mail.gmail.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/CAPjsHcFZSKeebvqZe7_Eyiz5gJF6dmBv9o-S6ef5rqLVj5SSjw%40mail.gmail.com.


Re: Webhook creation for shopify

2019-11-05 Thread DANIEL URBANO DE LA RUA
https://help.shopify.com/en/api/reference/events/webhook

here you have the documentagtion

El mar., 5 nov. 2019 a las 12:46, Saswat Ray ()
escribió:

> HI,
> Can anyone help me creating a webhook for shopify
>
> *Thanks*,
> *Saswat*
>
>
> --
> 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/CAEhPkLEw%2BATt4n3uXwKAm-im5BbYCe_zWfp7UX%3Du7baWvh4WTg%40mail.gmail.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/CAO_yRT0MrsLLhsRBS%2Bx4pQ%3DZKGYFOLfSZsyL89jufLnOF0mFog%40mail.gmail.com.


[no subject]

2019-11-05 Thread Paras Jain
on hitting submit i have to send email and password to user email id which
will be used for login in 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/CAMtmBS8KETpX74D8nRpPiDdnb_GYSeHYGgc3c_6TVgA15dKa4g%40mail.gmail.com.


Re: Webhook creation for shopify

2019-11-05 Thread Kasper Laudrup

Hi Saswat,

On 05/11/2019 12.46, Saswat Ray wrote:

HI,
Can anyone help me creating a webhook for shopify



As long as you don't provide any kind of information, like what you want 
to achieve, what you have tried, where you are facing problems then the 
answer to that answer is simple: No, no one can help you create a 
webhook for shopify.


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/38fcf375-7ff4-0e31-65cd-61865bfc8083%40stacktrace.dk.


Webhook creation for shopify

2019-11-05 Thread Saswat Ray
HI,
Can anyone help me creating a webhook for shopify

*Thanks*,
*Saswat*

-- 
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/CAEhPkLEw%2BATt4n3uXwKAm-im5BbYCe_zWfp7UX%3Du7baWvh4WTg%40mail.gmail.com.


Re: ListView is not showing me the latest created item made by CreateView !

2019-11-05 Thread Budi Hermansyah
are your query on ListView get_query method already put order_by ?

On Tue, Nov 5, 2019 at 1:38 PM Parth Joshi  wrote:

> Can you share some code snippet to have better clarity?
>
>
> On Sunday, 3 November 2019 20:33:45 UTC+5:30, Franz Ulenaers wrote:
>>
>> ListView is not showing me the latest created item made by CreateView
>> even after a refresh of my browser !
>> It is only solved when i restart the django server with 'python manage.py
>> runserver' .
>>
> --
> 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/c3398ed7-7745-4874-981b-311aedc18dca%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/CAHGmjWX08bq0mgBGqdWNoTBx2z5wHpZjVXJAZTdq5oTVpAszjA%40mail.gmail.com.