Array List

2018-08-09 Thread Dheeraj Kumar
Array = [0,0,4,2,6,9,0,5,2,0,9,5,9]
Make it in squnce n tell maximum value n repitation value without using in
build function.

-- 
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 post to this group, send email to django-users@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/CANwUEV8pBU82SkKfrykrP14h8bSzPF52gnjoWAuzYfYnnWdPDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Array List

2018-08-09 Thread Dheeraj Kumar
It is a basic question put in interview for python developer where
mentioned django too.

On Thu 9 Aug, 2018, 1:55 PM Kasper Laudrup,  wrote:

> Hi Dheeraj,
>
> On 08/09/2018 10:22 AM, Dheeraj Kumar wrote:
> > Array = [0,0,4,2,6,9,0,5,2,0,9,5,9]
> > Make it in squnce n tell maximum value n repitation value without using
> > in build function.
> >
>
> How is this related to Django?
>
> 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 post to this group, send email to django-users@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/8bc561c8-22de-4a40-5fd5-4bccf1bced9d%40stacktrace.dk
> .
> 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 post to this group, send email to django-users@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/CANwUEV_javpWm%2B6FiZ%2Bt1M7M5z3EZWhT8KakkmCLDnR3Vm_vZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Array List

2018-08-09 Thread Dheeraj Kumar
Can u tell me please.

On Thu 9 Aug, 2018, 2:15 PM Kasper Laudrup,  wrote:

> Hi Dheeraj,
>
> On 08/09/2018 10:31 AM, Dheeraj Kumar wrote:
> > It is a basic question put in interview for python developer where
> > mentioned django too.
> >
>
> Yes, this seems like it should be fairly easy to implement for anyone
> with basic experience in Python or any other programming language.
>
> I suggest you pick up a book or online tutorial on Python programming.
>
> Good luck.
>
> 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 post to this group, send email to django-users@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/fb0cf319-7a8d-a2c8-79f8-0089b2ccd134%40stacktrace.dk
> .
> 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 post to this group, send email to django-users@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/CANwUEV_q1UQz8wbpfHu9VxHdghnLzFQDgzxEwcYpPyVPxxhGHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Create tables for models in your database

2018-09-22 Thread Dheeraj Kumar
Thanks. I'm going to install pycharm now.

On Sat, 22 Sep 2018 at 18:03, Kasper Laudrup  wrote:

> Hi,
>
> On 22/09/2018 14.21, talk...@gmail.com wrote:
> >
> > getting an error while run this code...
> >
> >   "/home/dheerajkumar/djangogirls/myvenv/myproject/blog/models.py",
> >   line 6
> >author = models.Foreignkey('auth.User',
> on_delete=models.CASCADE)
> > ^
> >   IndentationError: expected an indented block
> >
>
> As the error message clearly states, you have an error on line 6 in your
> models.py file where a line doesn't match the expected indentation.
>
> Python uses indentation for scoping. This is very fundamental in python.
>
> I would suggest you use an editor that understands python. Then you
> would most like have the error highlighted on that exact line and the
> editor would help you by suggesting different indentations, so you'd be
> able to fix the error before even running the code.
>
> Which editor to choose is mostly a matter of taste, but I do highly
> recommend something that understands python. That will help you a lot
> and save you a lot of time.
>
> 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 post to this group, send email to django-users@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/27f41b64-da4b-e1ef-7ef8-31fe6db0df3b%40stacktrace.dk
> .
> 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 post to this group, send email to django-users@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/CANwUEV9S8-tmzGGLH-YVRBxfjTGFZdXOb%2BLWVjyMQ_tjb55%2BcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: hi friends am sending how to create a project in django with step by step. if you are satisfied please send me comments

2018-09-25 Thread Dheeraj Kumar
Sudha,
Its very helpful for us. Thanks so much.

Grace,

I didn't get what u add in this.


On Tue 25 Sep, 2018, 11:40 PM Gear Crew, 
wrote:

> nice man the awesome pdf but I want to add more about urls , views, and
> link with model
>
> On Tuesday, 25 September 2018 19:48:12 UTC+2, Sudha Mohan wrote:
>>
>>
>> --
> 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 post to this group, send email to django-users@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/1a3591f6-602f-45ee-87f4-21542e8ccbe3%40googlegroups.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 post to this group, send email to django-users@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/CANwUEV81V09nPCKmpDbd_b3WC_QH9VC5yduWF8-d0XFPrLb81Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: I'm new in Django. please help me out

2018-11-13 Thread Dheeraj Kumar
if you guys do not help ,plz ignore it insist of trying to be over
smart.this is home work or any thing else you are not authorized to comment
like this.

just stop it.

On Tue, 13 Nov 2018 at 15:30, amit pant  wrote:

>  sometimes
>
> On Tue, Nov 13, 2018 at 3:23 PM PASCUAL Eric  wrote:
>
>> > hey, you need to pay for that.
>>
>>
>> Seen quite frequently : some of the visitors of community groups such as
>> this one confuse them with "do_my_job_for_free.com" or "
>> do_my_homework.com" 😊
>>
>>
>> Eric
>> --
>> *From:* django-users@googlegroups.com  on
>> behalf of amit pant 
>> *Sent:* Tuesday, November 13, 2018 10:27:13 AM
>> *To:* django-users@googlegroups.com
>> *Subject:* Re: I'm new in Django. please help me out
>>
>> hey, you need to pay for that.
>>
>> On Tue, Nov 13, 2018 at 2:55 PM  wrote:
>>
>> Hi All,
>>
>> can you please solve this.
>>
>> 1) Create a simple Category model using DRF with following fields :
>> Id,name,parent,is_featured,image,is_active,description
>> 2) Create CRUD APIs for the same.
>> 3) Validate input at every event/API.
>> 4) Implement ordering and filtering.
>> 5) GET API should take params to return :
>> Ex. /abc.com?params=id|name|is_featured
>>  : this should return
>> Array of JSON
>> object with specified keys, along with an authenticated key mentioning
>> user
>> authentication status.
>>
>> Thanks
>>
>> --
>> 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 post to this group, send email to django-users@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/dfdb2b20-66a3-4e56-b548-45c0f59a48ee%40googlegroups.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 post to this group, send email to django-users@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/CAF2Ah_FcL0UEGVFhJBE_nCdCHXFTQyWbzmqPbPV5v13k04r_6A%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 post to this group, send email to django-users@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/VI1P193MB043255EC430059412851527A8CC20%40VI1P193MB0432.EURP193.PROD.OUTLOOK.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 post to this group, send email to django-users@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/CAF2Ah_Et%3DhoYJnBVhzXCaHRO%2B_iyRS4x1-6vrPaOYPUGTxjS2Q%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 post to this group, send email to django-users@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/CANwUEV8BLm6eT27wsvKjiHCp86u2%3Dutn

Re: from django.urls import include , path ImportError: cannot import name include

2018-12-04 Thread Dheeraj Kumar
thanks to respond me but still having an issue.

from django.contrib import admin
from django.conf.urls import include, path

urlpatterns = [
path('boadts/', include ('boadts.urls')),
path('admin/',admin.site.urls),
]
 File "/home/myproject/myproject/myproject/urls.py", line 2, in 
from django.conf.urls import include, path
ImportError: cannot import name path

please tell.

On Tue, 4 Dec 2018 at 19:40, C. Kirby  wrote:

> from django.conf.urls import include
>
>
> you are missing conf
>
> On Tuesday, December 4, 2018 at 8:21:39 AM UTC-5, tal...@gmail.com wrote:
>>
>> plz advise...
>>
> --
> 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 post to this group, send email to django-users@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/f2a4a58b-2c9b-4710-8801-e24e9fdf1b45%40googlegroups.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 post to this group, send email to django-users@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/CANwUEV8cExZZKFPJX7VLOwAxn5COVa2P6v4qjRpqY%3Di2e%3DCy-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: from django.urls import include , path ImportError: cannot import name include

2018-12-05 Thread Dheeraj Kumar
It won't work.
now i changed here is and working fine..

from django.contrib import admin
from django.conf.urls import url, include

urlpatterns = [
url (r'^boadts/', include ('boadts.urls')),
url (r'^admin/',admin.site.urls),
]

and in apps

from django.conf.urls import url
from .import views

urlpatterns = [
url (r'^$', views.home , name = 'home'),
]


On Tue, 4 Dec 2018 at 22:01, Harryxon Ndegwa 
wrote:

> use  django.urls import path instead to import path
>
> #%£&
>
> On Tue, 4 Dec 2018 7:06 pm Dheeraj Kumar 
>> thanks to respond me but still having an issue.
>>
>> from django.contrib import admin
>> from django.conf.urls import include, path
>>
>> urlpatterns = [
>> path('boadts/', include ('boadts.urls')),
>> path('admin/',admin.site.urls),
>> ]
>>  File "/home/myproject/myproject/myproject/urls.py", line 2, in 
>> from django.conf.urls import include, path
>> ImportError: cannot import name path
>>
>> please tell.
>>
>> On Tue, 4 Dec 2018 at 19:40, C. Kirby  wrote:
>>
>>> from django.conf.urls import include
>>>
>>>
>>> you are missing conf
>>>
>>> On Tuesday, December 4, 2018 at 8:21:39 AM UTC-5, tal...@gmail.com
>>> wrote:
>>>>
>>>> plz advise...
>>>>
>>> --
>>> 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 post to this group, send email to django-users@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/f2a4a58b-2c9b-4710-8801-e24e9fdf1b45%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/f2a4a58b-2c9b-4710-8801-e24e9fdf1b45%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> 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 post to this group, send email to django-users@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/CANwUEV8cExZZKFPJX7VLOwAxn5COVa2P6v4qjRpqY%3Di2e%3DCy-A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CANwUEV8cExZZKFPJX7VLOwAxn5COVa2P6v4qjRpqY%3Di2e%3DCy-A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> 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 post to this group, send email to django-users@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/CAPqDb9NwUqQgnUVyovqhMu%3DB7gX9P0vhzhnakOkQgu0D6B%2Bz3Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPqDb9NwUqQgnUVyovqhMu%3DB7gX9P0vhzhnakOkQgu0D6B%2Bz3Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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 post to this group, send email to django-users@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/CANwUEV-eBdB80DiZ16QSSU69nsUHqMj7C%3Drr1eBp0u4%3DGpgOdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Direction Distance measure in python code

2018-12-09 Thread Dheeraj Kumar
Hi can any one tell how can i get distance measure in direction wise
N3 W4 S8 E4 N5
here n is north, w is west , s is south , e is east , n is north
please tell python Django code

-- 
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 post to this group, send email to django-users@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/CANwUEV_m%2BaN3X%3Dr-Ltq2eKR7Yx%2BhA1gvv%3DtaazyvqRFLjUVEXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.