Re: Looking for Django developers to work on a new and an existing project with our team

2020-03-29 Thread Shakil Ahmmed
Hello  Lax Nayak,
I am a intermediate developer . I want to work with some team ,
My Github : https://github.com/ShakilAhmmed


On Sun, Mar 29, 2020 at 11:57 PM Lax Nayak  wrote:

> I am looking for a django developer who has expertise in building
> enterprise grade solutions.
>
>
> --
> 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/f93f06b0-883c-4477-9d73-cc429a43380d%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/f93f06b0-883c-4477-9d73-cc429a43380d%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
Shakil Ahmmed
about.me/shakilahmmed
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>

-- 
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%2BEpJfzqeLfB_4ez_cPrU_qQNgy_Jz0Dym6aHUQa23nahsQb_A%40mail.gmail.com.


Re: Active Open Source Project to contribute to

2020-03-11 Thread Shakil Ahmmed
I am Also Interested. Please give me chance to contribute .

On Wed, Mar 11, 2020 at 11:25 PM Desh Deepak 
wrote:

> Interested
> Share your project...
>
>
> On Wed, Mar 11, 2020 at 10:49 PM shree hari 
> wrote:
>
>> Im interested
>>
>> --
>> 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/e1374387-b94d-4c94-b72c-64575c11652a%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/CAJ0m4xjdsf0rtH3_6%3DY2Mh_HvM1%2BgorUo-hJkZXCm8Bxg7%3Dgww%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJ0m4xjdsf0rtH3_6%3DY2Mh_HvM1%2BgorUo-hJkZXCm8Bxg7%3Dgww%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
Shakil Ahmmed
about.me/shakilahmmed
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>

-- 
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%2BEpJfz8isBjjmOw-GzoiPUsMwyziCDt-TXA%2BmEELgWQhfjCDQ%40mail.gmail.com.


Re: Internship

2019-11-23 Thread Shakil Ahmmed
I am also interested .  Here's My Github Link  :
https://github.com/ShakilAhmmed

On Sat, Nov 23, 2019 at 2:43 PM Nitin Kalmaste 
wrote:

> There are my recent 3 projects one is online. Gappagosthientertainment.com
>
> On Sat 23 Nov, 2019, 2:10 PM John McClain,  wrote:
>
>> do you know django
>>
>> On Fri, 22 Nov 2019 at 20:29, Elijah O. Raji 
>> wrote:
>>
>>> Sir, I'm also interested in the internship as a backend developer.
>>> I base in Nigeria.
>>> I can work remotely.
>>>
>>> --
>>> 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/12bc9d00-1bd6-4c8c-9e70-2f936e4fbf55%40googlegroups.com
>>> .
>>>
>>
>>
>> --
>> John McClain
>>
>> Cell: 085-1977-823
>> Skype: jmcclain0129
>> Email: jmcclain0...@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/CAN-hv_qt7w7VDcZUHA%3D0oj0BVkcvuJcmuLosPh%3DjwpyFoNaQpg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAN-hv_qt7w7VDcZUHA%3D0oj0BVkcvuJcmuLosPh%3DjwpyFoNaQpg%40mail.gmail.com?utm_medium=email_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/CAKroR%2B0DUVbknmZt1u_gZJTekDi5vh6WnpcVu3MFue8EjQZ5wA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKroR%2B0DUVbknmZt1u_gZJTekDi5vh6WnpcVu3MFue8EjQZ5wA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
Shakil Ahmmed
about.me/shakilahmmed
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>

-- 
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%2BEpJfyiM_1V3Afrnn7h6wk9jYmBc6cT%2BJO2oe4G1FWVLSvXqQ%40mail.gmail.com.


Re: Multiple user roles with permissions

2019-09-25 Thread Shakil Ahmmed
On Wed, Sep 25, 2019 at 8:03 PM Shazia Nusrat  wrote:

> Hi,
>
> I need help to understand implementation of multiple user roles and
> permissions on views/templates/objects. If someone can point me to really
> nice project at GitHub I will be really thankful. I couldn't find one so
> far.
>
> Regards,
> Shazia
>
> --
> 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/CAD83tOx6a4hftc9MAGeweDJ%3DfCuTBXSzc9VT8H6tGOZz%3DbuVQw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAD83tOx6a4hftc9MAGeweDJ%3DfCuTBXSzc9VT8H6tGOZz%3DbuVQw%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
Shakil Ahmmed
about.me/shakilahmmed
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>

-- 
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%2BEpJfzQtfZKhzF9SZFOTc68b2u-J7E%3DYcubeA6reWVLXa-2bg%40mail.gmail.com.


Re: Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
Thank You Bhaia <3

On Mon, Sep 23, 2019 at 4:02 PM Abu Yusuf 
wrote:

> yes, of course. see here:
> https://www.django-rest-framework.org/topics/html-and-forms/
>
>
> On Mon, Sep 23, 2019 at 3:55 PM Shakil Ahmmed 
> wrote:
>
>> Can I Return Html Template From APIView ?
>>
>> On Monday, September 23, 2019 at 12:12:54 PM UTC+6, Shakil Ahmmed wrote:
>>>
>>> How Can i Use Those Methods In One Class Base View ['get', 'post',
>>> 'put', 'patch', 'delete', 'head', 'options', 'trace']
>>>
>>> Example:
>>>
>>> from django.views import View
>>>
>>> class Home(View):
>>>   def get(self, request, *args, **kwargs):
>>>
>>> return HttpResponse('Hello, World!')
>>>
>>> def post(self, request, *args, **kwargs):
>>>
>>> return HttpResponse('Hello, World!')
>>>
>>>
>>> def put(self, request, *args, **kwargs):
>>>
>>> return HttpResponse('Hello, World!')
>>>
>>>
>>> def delete(self, request, *args, **kwargs):
>>>
>>> return HttpResponse('Hello, World!')
>>>
>>> --
>> 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/7aada502-1f1c-4eef-b4ba-70dcc4bee3ec%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/7aada502-1f1c-4eef-b4ba-70dcc4bee3ec%40googlegroups.com?utm_medium=email_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/CACNsr2-pd_MeLdkCqpDP3ARLE_0sWWoVywv1pVw64sv2-ZH17g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACNsr2-pd_MeLdkCqpDP3ARLE_0sWWoVywv1pVw64sv2-ZH17g%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
Shakil Ahmmed
about.me/shakilahmmed
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>

-- 
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%2BEpJfzP24WT1DCnaVRn3WjsV-AHwMVK9%2BiLokWg_2x5pBrtwg%40mail.gmail.com.


Re: Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
Can I Return Html Template From APIView ? 

On Monday, September 23, 2019 at 12:12:54 PM UTC+6, Shakil Ahmmed wrote:
>
> How Can i Use Those Methods In One Class Base View ['get', 'post', 'put', 
> 'patch', 'delete', 'head', 'options', 'trace']
>
> Example:
>
> from django.views import View
>
> class Home(View):
>   def get(self, request, *args, **kwargs):
>
> return HttpResponse('Hello, World!')
>
> def post(self, request, *args, **kwargs):
>
> return HttpResponse('Hello, World!')
>
>
> def put(self, request, *args, **kwargs):
>
> return HttpResponse('Hello, World!')
>
>
> def delete(self, request, *args, **kwargs):
>
> return HttpResponse('Hello, World!')
>
>

-- 
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/7aada502-1f1c-4eef-b4ba-70dcc4bee3ec%40googlegroups.com.


Re: Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
Please Provide Me Some Code Example

On Mon, Sep 23, 2019 at 3:47 PM laya Mahmoudi 
wrote:

> Mixinviews can works for your purpose
>
> در تاریخ دوشنبه ۲۳ سپتامبر ۲۰۱۹،‏ ۱۱:۲۵ Shakil Ahmmed <
> shakilfci...@gmail.com> نوشت:
>
>> Please Can You Give me some Exapmle?
>>
>> On Mon, Sep 23, 2019, 1:39 PM Abu Yusuf 
>> wrote:
>>
>>> Check this:
>>> https://docs.djangoproject.com/en/2.2/ref/class-based-views/flattened-index/#formview
>>>
>>> On Mon, Sep 23, 2019 at 12:13 PM Shakil Ahmmed 
>>> wrote:
>>>
>>>> How Can i Use Those Methods In One Class Base View ['get', 'post',
>>>> 'put', 'patch', 'delete', 'head', 'options', 'trace']
>>>>
>>>> Example:
>>>>
>>>> from django.views import View
>>>>
>>>> class Home(View):
>>>>   def get(self, request, *args, **kwargs):
>>>>
>>>> return HttpResponse('Hello, World!')
>>>>
>>>> def post(self, request, *args, **kwargs):
>>>>
>>>> return HttpResponse('Hello, World!')
>>>>
>>>>
>>>> def put(self, request, *args, **kwargs):
>>>>
>>>> return HttpResponse('Hello, World!')
>>>>
>>>>
>>>> def delete(self, request, *args, **kwargs):
>>>>
>>>> return HttpResponse('Hello, World!')
>>>>
>>>> --
>>>> 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/2cbd1753-d7d3-40d2-9d47-e935d0e3d75f%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/2cbd1753-d7d3-40d2-9d47-e935d0e3d75f%40googlegroups.com?utm_medium=email_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/CACNsr2-Y7bPvDmCYRdLiZf5vVDbs6tX4EABF5HGzDUt3wvOjLA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CACNsr2-Y7bPvDmCYRdLiZf5vVDbs6tX4EABF5HGzDUt3wvOjLA%40mail.gmail.com?utm_medium=email_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/CA%2BEpJfxOrX0thTdb%3DoikwmTyGYCGVo4zdbGyA6UxvvyV3E7TLg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CA%2BEpJfxOrX0thTdb%3DoikwmTyGYCGVo4zdbGyA6UxvvyV3E7TLg%40mail.gmail.com?utm_medium=email_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/CABL_bk2poNSOa0ajfM3NP1XOSg_5T8R3NZHYN%2BtGfGd_cWrRxQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CABL_bk2poNSOa0ajfM3NP1XOSg_5T8R3NZHYN%2BtGfGd_cWrRxQ%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
Shakil Ahmmed
about.me/shakilahmmed
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>

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


Re: Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
Please Can You Give me some Exapmle?

On Mon, Sep 23, 2019, 1:39 PM Abu Yusuf  wrote:

> Check this:
> https://docs.djangoproject.com/en/2.2/ref/class-based-views/flattened-index/#formview
>
> On Mon, Sep 23, 2019 at 12:13 PM Shakil Ahmmed 
> wrote:
>
>> How Can i Use Those Methods In One Class Base View ['get', 'post', 'put',
>> 'patch', 'delete', 'head', 'options', 'trace']
>>
>> Example:
>>
>> from django.views import View
>>
>> class Home(View):
>>   def get(self, request, *args, **kwargs):
>>
>> return HttpResponse('Hello, World!')
>>
>> def post(self, request, *args, **kwargs):
>>
>> return HttpResponse('Hello, World!')
>>
>>
>> def put(self, request, *args, **kwargs):
>>
>> return HttpResponse('Hello, World!')
>>
>>
>> def delete(self, request, *args, **kwargs):
>>
>> return HttpResponse('Hello, World!')
>>
>> --
>> 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/2cbd1753-d7d3-40d2-9d47-e935d0e3d75f%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/2cbd1753-d7d3-40d2-9d47-e935d0e3d75f%40googlegroups.com?utm_medium=email_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/CACNsr2-Y7bPvDmCYRdLiZf5vVDbs6tX4EABF5HGzDUt3wvOjLA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACNsr2-Y7bPvDmCYRdLiZf5vVDbs6tX4EABF5HGzDUt3wvOjLA%40mail.gmail.com?utm_medium=email_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/CA%2BEpJfxOrX0thTdb%3DoikwmTyGYCGVo4zdbGyA6UxvvyV3E7TLg%40mail.gmail.com.


Class Based View All Methods

2019-09-23 Thread Shakil Ahmmed
How Can i Use Those Methods In One Class Base View ['get', 'post', 'put', 
'patch', 'delete', 'head', 'options', 'trace']

Example:

from django.views import View

class Home(View):
  def get(self, request, *args, **kwargs):

return HttpResponse('Hello, World!')

def post(self, request, *args, **kwargs):

return HttpResponse('Hello, World!')


def put(self, request, *args, **kwargs):

return HttpResponse('Hello, World!')


def delete(self, request, *args, **kwargs):

return HttpResponse('Hello, World!')

-- 
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/2cbd1753-d7d3-40d2-9d47-e935d0e3d75f%40googlegroups.com.


Re: convert python 3 to python2

2019-09-23 Thread Shakil Ahmmed
How Can I Use ['get', 'post', 'put', 'patch', 'delete', 'head', 'options',
'trace'] in One Class

On Sun, Sep 22, 2019 at 4:14 PM Ankita Gupta 
wrote:

>
>
> On Saturday, September 21, 2019 at 11:07:21 PM UTC+5:30, Sipum wrote:
>>
>> Hi Ankita,
>>
>> In coming January, python 2 is going to retire. So better to use python 3.
>>
> Only official access is denied, we can still work in python2. Anyway
> thanks.
>
>>
>>
>
>> Thanks
>>
>> On Sat, 21 Sep, 2019, 11:02 PM Ankita Gupta, 
>> wrote:
>>
>>> Not related to Django, I have a project made in python3 but due to some
>>> package installation, i need to convert my project to python2. Is there any
>>> method or package to solve 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/875549f9-5bca-4280-88fd-db197ca577dc%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/875549f9-5bca-4280-88fd-db197ca577dc%40googlegroups.com?utm_medium=email_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/408bd2a0-add7-450d-a004-d5fc22bc4b45%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/408bd2a0-add7-450d-a004-d5fc22bc4b45%40googlegroups.com?utm_medium=email_source=footer>
> .
>


-- 
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
Shakil Ahmmed
about.me/shakilahmmed
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>

-- 
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%2BEpJfw7h8UzHHDf1vGdqUE9Q9%2BQO%3DcBv6J7uqjJoR0568RVkQ%40mail.gmail.com.


Stucked In Modelform

2019-09-21 Thread Shakil Ahmmed
I Have three ForeignKey in my model.. When I Create Form with ModelForm and 
show the foreign key field into html select it execute Duplicate Queries 
for each Foreignkey field 
Heres My Models.py

class TeamModel(models.Model):
team_name = models.CharField(unique=True, db_index=True, max_length=50, 
validators=[check_project_name])
description = HTMLField()
project = models.ForeignKey(ProjectModel, on_delete=models.CASCADE, 
related_name='project')
team_leader = models.ForeignKey(CustomUser, on_delete=models.CASCADE, 
related_name='team_leader')
created_by = models.ForeignKey(CustomUser, on_delete=models.CASCADE, 
related_name='created_by')
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)

My Views.py

@login_required()
def create_team(request):
template_name = 'admin_panel/Team/create_team.html'
if request.method == "POST":
form = TeamForm(request.POST)
if form.is_valid():
form.save()
messages.success(request, "Team Created Successfully")
return HttpResponseRedirect(reverse('create_team'))
else:
form = TeamForm()
context = {
'form': form,
}
return render(request, template_name, context)


My Forms.py

class TeamForm(forms.ModelForm):
# team_name = forms.CharField(widget=forms.TextInput(attrs={'class': 
'form-control'}))
# description = TinyMCE(attrs={'class': 'form-control', 'style': 
'width:100%'})
project = 
forms.ModelChoiceField(queryset=ProjectModel.objects.filter(project_status='Active'),
 widget=forms.Select(attrs={'class': 
'form-control'}),
 empty_label='Please Select A Project')
team_leader = forms.ModelChoiceField(
queryset=CustomUser.objects.exclude(access_level__in=['Issue Creator', 
'Monitor']),
widget=forms.Select(attrs={'class': 'form-control'}), 
empty_label='Please Select A Team Leader')

class Meta:
model = TeamModel
fields = ['team_name', 'description', 'project', 'team_leader']
widgets = {
'team_name': forms.TextInput(attrs={'class': 'form-control'}),
'description': TinyMCE(attrs={'class': 'form-control', 'style': 
'width:100%'}),
}

-- 
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/f57c819e-ac26-4a93-90b8-81aad5a0e682%40googlegroups.com.


Fwd: Stucked In ModelForm

2019-09-21 Thread Shakil Ahmmed
-- Forwarded message -
From: Shakil Ahmmed 
Date: Sun, Sep 22, 2019 at 1:46 AM
Subject: Stucked In ModelForm
To: 


I Have three ForeignKey in my model.. When I Create Form with ModelForm and
show the foreign key field into html select it execute Duplicate Queries
for each Foreignkey field
Heres My Models.py

class TeamModel(models.Model):
team_name = models.CharField(unique=True, db_index=True,
max_length=50, validators=[check_project_name])
description = HTMLField()
project = models.ForeignKey(ProjectModel,
on_delete=models.CASCADE, related_name='project')
team_leader = models.ForeignKey(CustomUser,
on_delete=models.CASCADE, related_name='team_leader')
created_by = models.ForeignKey(CustomUser,
on_delete=models.CASCADE, related_name='created_by')
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)

My Views.py

@login_required()
def create_team(request):
template_name = 'admin_panel/Team/create_team.html'
if request.method == "POST":
form = TeamForm(request.POST)
if form.is_valid():
form.save()
messages.success(request, "Team Created Successfully")
return HttpResponseRedirect(reverse('create_team'))
else:
form = TeamForm()
context = {
'form': form,
}
return render(request, template_name, context)


My Forms.py

class TeamForm(forms.ModelForm):
# team_name =
forms.CharField(widget=forms.TextInput(attrs={'class':
'form-control'}))
# description = TinyMCE(attrs={'class': 'form-control', 'style':
'width:100%'})
project = 
forms.ModelChoiceField(queryset=ProjectModel.objects.filter(project_status='Active'),

widget=forms.Select(attrs={'class': 'form-control'}),
 empty_label='Please Select A Project')
team_leader = forms.ModelChoiceField(
queryset=CustomUser.objects.exclude(access_level__in=['Issue
Creator', 'Monitor']),
widget=forms.Select(attrs={'class': 'form-control'}),
empty_label='Please Select A Team Leader')

class Meta:
model = TeamModel
fields = ['team_name', 'description', 'project', 'team_leader']
widgets = {
'team_name': forms.TextInput(attrs={'class': 'form-control'}),
'description': TinyMCE(attrs={'class': 'form-control',
'style': 'width:100%'}),
}

-- 
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
Shakil Ahmmed
about.me/shakilahmmed
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>


-- 
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
Shakil Ahmmed
about.me/shakilahmmed
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>

-- 
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%2BEpJfyGmUqf6hWqX741T7dTMdpiVfOJomhz_WePsTqvpsj8SA%40mail.gmail.com.


Re:

2019-09-18 Thread Shakil Ahmmed
I want to select all field in a model but Grouy By One field.. Suppose i
have country,people , and onther field in a model i want to  group by
country but select all field

On Wed, Sep 18, 2019, 6:05 PM Anirudh Jain 
wrote:

> Example: YouModelName.objects.all().order_by('created_at')
>
>
> This will sort all the objects in your model on the basis of date of
> creation on that object.
>
> On Wed, 18 Sep 2019, 12:16 Shakil Ahmmed,  wrote:
>
>>
>> How to select all field but group by one field
>> --
>>
>> <https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
>> Shakil Ahmmed
>> about.me/shakilahmmed
>> <https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
>>
>> --
>> 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%2BEpJfzNPZ_vRqyHan92VsDY9MAjsxogKVh4FEBdwXWLd%3DHXtQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CA%2BEpJfzNPZ_vRqyHan92VsDY9MAjsxogKVh4FEBdwXWLd%3DHXtQ%40mail.gmail.com?utm_medium=email_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/CAC3mK7frp_NWYmtJ1mUjrC3vTr6nb1%3DcoHWQiD48f7jnHbFhzQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAC3mK7frp_NWYmtJ1mUjrC3vTr6nb1%3DcoHWQiD48f7jnHbFhzQ%40mail.gmail.com?utm_medium=email_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/CA%2BEpJfx8i%2BYCDD16NUn1wjDW4bsdhFgySbtHYUChCR1ArbBEBQ%40mail.gmail.com.


[no subject]

2019-09-18 Thread Shakil Ahmmed
How to select all field but group by one field
-- 
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
Shakil Ahmmed
about.me/shakilahmmed
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>

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


Re:

2019-08-30 Thread Shakil Ahmmed
Can You Provide Some Example

On Fri, Aug 30, 2019 at 2:47 PM Budi Hermansyah <
budi.hermansyah...@gmail.com> wrote:

> Hi Shakil,
> better you use elastic search for indexing your data from database or
> other tools like ES, the purpose is for indexing your data from your
> database.
> you can create modelling in ES too for you to speed you loading data...
>
> Hope it help you...
>
> Regards,
>
>
> On Fri, Aug 30, 2019 at 2:51 AM Shakil Ahmmed 
> wrote:
>
>>
>> Firstly I Have More than 1 Million Data In my database , while i want to
>> perform aggregation or annotation or filter it took huge time , i have to
>> show all data at a time,,, i use select_related() for foreign key but i
>> want to optimize database hitting , like i want to fetch all data from
>> database in first database hit and convert them into dictionary or list and
>> perform another queries into dictionary or list without hitting database i
>> hope it can optimize database hit Example : In Laravel I Fetch All data
>> from database and convert it into Array while i have to perform queries
>> into it i convert them into collect() and perform queries , and it dont hit
>> the database .
>> [a link ]:(https://laravel.com/docs/5.8/collections) !
>>
>> I Can perform this in Django ???
>> --
>>
>> <https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
>> Shakil Ahmmed
>> about.me/shakilahmmed
>> <https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
>>
>> --
>> 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%2BEpJfwCnMV_e5Th6HXTMSPQ%3DjeEFYzYjnV7WpXjvHm968mOrQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CA%2BEpJfwCnMV_e5Th6HXTMSPQ%3DjeEFYzYjnV7WpXjvHm968mOrQ%40mail.gmail.com?utm_medium=email_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/CAHGmjWXO-LabtzvOVs3s8DjojkXxQEGit1f9iS1z5n%3DspSN%3DEA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAHGmjWXO-LabtzvOVs3s8DjojkXxQEGit1f9iS1z5n%3DspSN%3DEA%40mail.gmail.com?utm_medium=email_source=footer>
> .
>


-- 
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
Shakil Ahmmed
about.me/shakilahmmed
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>

-- 
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%2BEpJfwPRD4DCqn4Eu-mndFesD0aTH-c04ntAkDTUcLjWvgoCA%40mail.gmail.com.


[no subject]

2019-08-29 Thread Shakil Ahmmed
Firstly I Have More than 1 Million Data In my database , while i want to
perform aggregation or annotation or filter it took huge time , i have to
show all data at a time,,, i use select_related() for foreign key but i
want to optimize database hitting , like i want to fetch all data from
database in first database hit and convert them into dictionary or list and
perform another queries into dictionary or list without hitting database i
hope it can optimize database hit Example : In Laravel I Fetch All data
from database and convert it into Array while i have to perform queries
into it i convert them into collect() and perform queries , and it dont hit
the database .
[a link ]:(https://laravel.com/docs/5.8/collections) !

I Can perform this in Django ???
-- 
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
Shakil Ahmmed
about.me/shakilahmmed
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>

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


Re: For validation not working for UserCreationForm

2019-08-29 Thread Shakil Ahmmed
ng.
>
>
> https://docs.djangoproject.com/en/2.2/topics/auth/default/#auth-web-requests
>
> Regards,
> Amitesh Sahay
>
>
> On Wednesday, 28 August, 2019, 10:24:38 pm IST, Kean 
> wrote:
>
>
> Hi,
> New to Django.
>
> I've created a registration form which inherits from a User form.
> The issue is none of the validators are working. e.g reporting to user
> password miss-match, or any other error if user enters data incorrect to
> validation.
> The form simply validates with errors and redirect user to to their user
> page (as defined,).
>
> Please can anyone help or advise, as I though the validators were an
> inherent part of the django forms?
>
> forms.py
>
> class CRegisterForm(UserCreationForm):
> email = forms.EmailField(max_length=30, required=True)
>
> class Meta:
> model = User
> fields = ['username', 'email', 'password1', 'password2']
>
> views.py
>
> def cregister(request):
> if request.method == "POST":
> form = CRegisterForm(request.POST)
> if form.is_valid():
> data = form.cleaned_data
> form.save()
> return redirect('cpage')
> else:
> form = CRegisterForm()
> return render(request, 'cregister.html', {'form': form})
>
> urls.py
>
>  path('login/customer/', views.cpage, name='cpage'),
>
> html
>
> {% load crispy_forms_tags %}
> 
> 
> 
> Customer
> 
> 
> 
> 
> 
> 
> {% csrf_token %}
> 
> Customer Login
> {{ form|crispy }}
> 
> 
> Login
> 
> {% if messages %}
>   {% for messages in messages %}
> 
>   {{ message }}
> 
> {% endfor %}
> {% endif %}
> 
> 
> 
> Need a customer account Customer
> register
> 
> 
> 
> 
> 
>
>
>
> Best,
>
> 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/a4739118-05b9-4706-b1cb-08062cc6f93d%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a4739118-05b9-4706-b1cb-08062cc6f93d%40googlegroups.com?utm_medium=email_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/1441704490.2800369.1567014644390%40mail.yahoo.com
> <https://groups.google.com/d/msgid/django-users/1441704490.2800369.1567014644390%40mail.yahoo.com?utm_medium=email_source=footer>
> .
>


-- 
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>
Shakil Ahmmed
about.me/shakilahmmed
<https://about.me/shakilahmmed?promo=email_sig_source=product_medium=email_sig_campaign=gmail_api_content=thumb>

-- 
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%2BEpJfwc3Yyoacz2-f7tYKtxr8K%3Dz2p%3Dg9ReZtDK5o0nL%2BBKAw%40mail.gmail.com.


Re: POINT OF SALE SYSTEM

2019-05-30 Thread Shakil Ahmmed
github/ShakilAhmmed/point_of_sale

On Thu, May 30, 2019, 5:45 PM pranayreddy788 
wrote:

> Easily
>
>
> On May 30, 2019 at 17:06, > wrote:
>
> Can a POS (point of sale) software be made 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 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/319b2899-cb41-474b-80c9-25aeab6b50d3%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/CANjRyE0Jg5iACYktgHRCaiCqzMzY8shRgFTm%2BbJp7xDv3VhS2Q%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/CA%2BEpJfz4pnAL4ZtQ-qjnoiz-2K5yMJcMzmmatwJ_q88ZWM44Hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.