how to create url helloworld

2020-09-19 Thread paidjoo indo
*file views.py in folder pages

from django.htpp import HtppResponse
from django.shortcuts import render

# Create your views here.
def home_view(*args, **kwargs): # *args, **kwargs
return HtppResponse("hello world")  


C:\Users\leo>C:/python37/python.exe 
c:/python37/Try-Django-master/src/pages/views.py
Traceback (most recent call last):
  File "c:/python37/Try-Django-master/src/pages/views.py", line 1, in 

from django.htpp import HtppResponse
ModuleNotFoundError: No module named 'django.htpp'

from django.htpp import HtppResponse
from django.shortcuts import render

*files urls.py 

from django.contrib import admin
from django.urls import path

from pages import views

urlpatterns = [
path('', views.home_view, name='home'),
path('admin/', admin.site.urls),
]

file setting
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',

# third party
# own
'pages',
'products',
]

error :   
File "C:\python37\Try-Django-master\src\trydjango\urls.py", line 19, in 

from pages import views
  File "C:\python37\Try-Django-master\src\pages\views.py", line 1, in 

from django.htpp import HtppResponse
ModuleNotFoundError: No module named 'django.htpp'

-- 
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/ce82a275-88ba-49eb-9a09-8f19b22dcb75n%40googlegroups.com.


How to print sequence number in python

2020-11-14 Thread paidjoo indo
Hello I'm newbie in python, I'm learning looping in python, how to print
like in bellow;
Input:5
12345
2.  4
3   3
4   2
54321
 Thanks guys

-- 
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%3D2VJmeOF5SyMZUFox_hHivTr%3DE%3Dnekj_n7FLOYjGOkPHQrbA%40mail.gmail.com.


Re: Python Django Training

2020-12-11 Thread paidjoo indo
Am too, I'm interesting training Django

On Mon, Dec 7, 2020, 3:09 PM narendra thapa 
wrote:

> hello please add me also in training group?
>
>
> On Fri, Feb 21, 2020 at 7:27 PM Bharati Nilam 
> wrote:
>
>> Hi,
>> I also from Hyderabad and I'm also interested in the training. please
>> tell me how to join?
>>
>> Regards,
>> Bharati
>>
>> On Thu, 20 Feb, 2020, 6:19 PM Thiagu Palaniappan, <
>> thiagarajan@gmail.com> wrote:
>>
>>> I'm also interested. Please add me in the group.
>>>
>>>
>>> Thanks & Regards,
>>> Thiagu
>>>
>>> On Mon, Feb 17, 2020 at 12:41 AM Akshay Raul 
>>> wrote:
>>>
 I am interested also. Please let me know the details.

 On Sat 1 Feb, 2020, 2:42 PM Srikanth K,  wrote:

> Hi,
>
> I am from Hyderabad. I am Python Developer by Profession. I am eager
> take up any Python , Django Training (online Preferrable or Weekends).
> Members who require can contact me or share me  there idea.
>
> Regards,
> Srikanth.K
>
> --
> 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/CACPyz-gXb7wo9E0Uhs_pnxF9X52uA10__Fq1xt4trjXUaN3ehQ%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/CAEd%2Bv%3D0gE2dEMXKJ0Nm8FcH2ZxUPAdQspkQKB%2Bg5pZbSc_uZnQ%40mail.gmail.com
 
 .

>>>
>>>
>>> --
>>>
>>> Thanks & Regards,
>>>
>>> *Thiagu Palaniappan*
>>>
>>> M +91 (0) 9994318799
>>>
>>> *DXC Technology*
>>> 8th Floor, Tower 1 B DLF IT Park, 1/124 - Shivaji Garden, Nandambakkam
>>> post, Ramapuram, Chennai - 600 089.
>>>
>>> dxc.technology  / Twitter
>>>  / Facebook
>>>  / LinkedIn
>>> 
>>>
>>> --
>>> 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/CAK%3DQXNMzH-iL6BQ3_vfrvTpeY%2BSe5%3DbZm9h5wPW_Dw%2BM2BsvQg%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/CAPGVBeOgomb94NXAm347QqGcJ%3D3MzxULU7eQnY-M56EbC2D9vg%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/CAEtntjXVaVAyDCJJzS748zfNVm242U%2B6vsFkynevf5ghnPgDhw%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%3D2VJ%3DMDRBazgQQuYAprk53sj-Pke%2BKeK4Okp2PEmjq4DqUAw%40mail.gmail.com.


how to input list [] dynamic in python

2021-05-31 Thread paidjoo indo
hello i having question, because i still learn python for me, so can help
me
the question is

how about if input like in below
1 ) input: 3 , return [1, 2, 3]

2) input: 2, return [2, 4, 3]

3) input: 6, return [3, 6, 6, 4, 5, 6]

4) input: 1, return [4, 6, 6, 4, 5, 6]

5) input: 1, return [5, 6, 6, 4, 5, 6]

thanks 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/CAO%3D2VJnYm%2BELPAeRf6jhbQN3CETQCefK1FZQGho8E75M74BTBA%40mail.gmail.com.


Re: how to input list [] dynamic in python

2021-05-31 Thread paidjoo indo
how about if input like in below
1 ) input: 3 , return [1, 2, 3]
then continue dynamic
2) input: 2, return [2, 4, 3]
  then continue dynamic
3) input: 6, return [3, 6, 6, 4, 5, 6]
  then continue dynamic
4) input: 1, return [4, 6, 6, 4, 5, 6]
  then continue dynamic
5) input: 1, return [5, 6, 6, 4, 5, 6]

thanks


Pada tanggal Sen, 31 Mei 2021 pukul 18.20 paidjoo indo 
menulis:

> hello i having question, because i still learn python for me, so can help
> me
> the question is
>
> how about if input like in below
> 1 ) input: 3 , return [1, 2, 3]
>
> 2) input: 2, return [2, 4, 3]
>
> 3) input: 6, return [3, 6, 6, 4, 5, 6]
>
> 4) input: 1, return [4, 6, 6, 4, 5, 6]
>
> 5) input: 1, return [5, 6, 6, 4, 5, 6]
>
> thanks 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/CAO%3D2VJnpOCPDFRO2G9DgBdpTK5mqFUXEW%3DjazfeJb9Lr2uL_vQ%40mail.gmail.com.


Re: how to input list [] dynamic in python

2021-06-08 Thread paidjoo indo
btw thanks you very much, Mr Derek and all

yes that is exercise basic in python, i'm newbie in python and i hope learn
djanggo, before i have try code looping

lst = []

# number of elemetns as input
n = int(input("Enter number of elements : "))

# iterating till the range
for i in range(0, n):
ele = int(input())

lst.append(ele) # adding the element

print(lst)

test_list1 = []
n2 = int(input("Enter number of elements2 : "))

for i2 in range(0, n2):
ele2 = int(input())

test_list1.append(ele2) # adding the element

print(test_list1)

res_list = [lst[i] + test_list1[i2] for i in range(len(lst))]

print(res_list)


but still wrong, about exercise in below , how if without

*1) def elementswise_left_join(l1, l2) and *
*2) def get_array(n):*

can someone give me again ? thanks very much

the exercise same, in below here :

1 ) input: 3 , return [1, 2, 3]
then continue dynamic

2) input: 2, return [2, 4, 3]
  then continue dynamic

3) input: 6, return [3, 6, 6, 4, 5, 6]
  then continue dynamic

4) input: 1, return [4, 6, 6, 4, 5, 6]
  then continue dynamic

5) input: 1, return [5, 6, 6, 4, 5, 6]

thanks








Pada tanggal Sen, 31 Mei 2021 pukul 20.41 Derek 
menulis:

> This does look a programming exercise in a class...  if you ask these
> questions in future, be warned people here will probably ask to see your
> attempt at writing code first (otherwise you are not really learning to be
> a programmer).
>
> But, OK, it seemed interesting to me,so here is one approach:
>
> def elementswise_left_join(l1, l2):
> """
> https://www.w3resource.com/python-exercises/list/python-data-type-list-exercise-155.php
> """
> f_len = len(l1) - (len(l2) - 1)
> for i in range(0, len(l2), 1):
> if f_len - i > len(l1):
> break
> else:
> l1[i] = l1[i] + l2[i]
> return l1
>
>
> def get_array(n):
> if n == 1:
> return [1,]
> r = [x for x in range(1, n + 1)]
> return r
>
>
> curr = []
> valid = True
> while valid:
> num = input("Enter number: ")
> if num:
> new = get_array(int(num))
> if len(new) > len(curr):
> curr = elementswise_left_join(new, curr)
> else:
> curr = elementswise_left_join(curr, new)
> print(curr)
> else:
> valid = False
>
>
>
> On Monday, 31 May 2021 at 13:34:51 UTC+2 leoa...@gmail.com wrote:
>
>> how about if input like in below
>> 1 ) input: 3 , return [1, 2, 3]
>> then continue dynamic
>>
>> 2) input: 2, return [2, 4, 3]
>>   then continue dynamic
>>
>> 3) input: 6, return [3, 6, 6, 4, 5, 6]
>>   then continue dynamic
>>
>> 4) input: 1, return [4, 6, 6, 4, 5, 6]
>>   then continue dynamic
>>
>> 5) input: 1, return [5, 6, 6, 4, 5, 6]
>>
>> thanks
>>
>>
>> Pada tanggal Sen, 31 Mei 2021 pukul 18.20 paidjoo indo 
>> menulis:
>>
>>> hello i having question, because i still learn python for me, so can
>>> help me
>>> the question is
>>>
>>> how about if input like in below
>>> 1 ) input: 3 , return [1, 2, 3]
>>>
>>> 2) input: 2, return [2, 4, 3]
>>>
>>> 3) input: 6, return [3, 6, 6, 4, 5, 6]
>>>
>>> 4) input: 1, return [4, 6, 6, 4, 5, 6]
>>>
>>> 5) input: 1, return [5, 6, 6, 4, 5, 6]
>>>
>>> thanks 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/3a5ee884-4d66-4fc3-8217-64658d7f585dn%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/3a5ee884-4d66-4fc3-8217-64658d7f585dn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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%3D2VJmK397LRF3%2BBCDXLg8OyxRYMcwzyndpxibb0MGZLF4jdw%40mail.gmail.com.