Re: Help: Deployment to Production Server

2020-12-27 Thread Devender Kumar
This link contains all expect the settings files and environment variables.
first do this then you will be able to dockerize it easly
https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04

On Sun, Dec 27, 2020 at 10:19 PM rpower  wrote:

> Any resources, free or paid?
>
> Min requirements:
>
>- Django app prep for production
>- Deployment to production servers
>
> Bonus:
>
>- Deployment via Containers (Kubernetes / Docker)
>
>
> If you'd like to offer services, email me separately, but understand
> you'll be teaching, not just deploying.
>
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/bbe36a2b-c94f-44c4-83ca-d514868b4d8dn%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/CALZ%3DbEJaRBnUhxYogJhR7Be1p30JFKECoagHQzrtqHo7wyvmng%40mail.gmail.com.


Re: Is it possible to use REST API on Django template ?

2020-11-25 Thread Devender Kumar
Use ajax with django rest framework

On Wed, 25 Nov, 2020, 8:07 pm Omkar Parab,  wrote:

> Creating REST API in Django is similar to any app on Django. All you need
> to do is, install the djangorestframework library, and serialize your
> models.
>
> YT video 
> https://youtu.be/TmsD8QExZ84
> On Wed, Nov 25, 2020, 7:48 PM Aman Modi  wrote:
>
>>
>>
>> Hello Django lovers.
>>
>> I want to use REST API  on the Django template but I have no idea how can
>> I do that.
>> I want to use the same API on the android app and the Django template.
>>
>> Any suggestion.
>>
>> Thanks and regard
>> Aman Modi
>>
>> --
>> 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/99c6d921-9ea7-4f3b-9d69-03b06fbbd5d8n%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/CAJY8mfychw%2BNiKpPvho_whycaT0y2nCQaV2ChecwxPm1VW8yVQ%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/CALZ%3DbEKUb6z_Tf1fj-Bt4ShhcCPE-sdsMkxO2Q2Zpf7uryE03Q%40mail.gmail.com.


Re: I need help

2020-06-09 Thread Devender Kumar
For that you need to create a api and use ajax on javascript side to. Use
this api to push that variable either periodically or as per req


On Tue, 9 Jun, 2020, 10:24 am meera gangani, 
wrote:

> I have a html file in which i have implementing stopwatch and i have to
> that variable stored in django
>
> Here is my script.txt file is a js file, i don't know how to store js
> variables in django and stored into the database,
>  please help me out
>
> Thanking You in advance
> -Meera Gangani
>
> --
> 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/CANaPPPLYTdqUFxoDL8eTUGtMpsqdsptZKAPC6RR6h_-HuF9TdA%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/CALZ%3DbELFgWSwmH3nmYfb%3D_0adi1dgbTazPvHWfuPnKZa%3DXzFyw%40mail.gmail.com.


Re: A Business Solutions and ERP framework released.

2020-04-28 Thread Devender Kumar
Excited to try it out

On Tue, 28 Apr, 2020, 12:43 pm Ramez Ashraf,  wrote:

> Hello Fellow Developers
>
> We released the reporting engine of Ra ERP framework as a standalone
> package `django-slick-reporting`
> https://github.com/ra-systems/django-slick-reporting
>
> Slick Reporting is a Report Engine that creates grouped by, time series
> and cross tab reports out of your data in a handful easy lines of code.
> Efficient and customizable;
> Batteries included (Charting and powerful tables) .
>
>
> On Sunday, December 22, 2019 at 5:19:14 PM UTC+2, Ramez Ashraf wrote:
>>
>> Hello fellow Django developers,
>>
>> A framework to create diverse business solutions, equipped with a
>> reporting engine and a responsive dashboard.
>> https://github.com/ra-systems/ra
>>
>> On the docs, you'll find a walk-through tutorial where you'll create a
>> simple sales monitor app with various reports and Charts.
>>
>> The project is till in Alpha, and your support and feedback are really
>> important and appreciated.
>>
>> Thank you wonderful Django community :)
>>
>> --
> 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/3c05a04d-7f94-4225-9c0c-c0330ce278a0%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/CALZ%3DbEJ0pOy2X-P2QrCRY86mUbvTxavai%3Dn75NOR4cdJ-Em_Cg%40mail.gmail.com.


Re: issues deploying django project to cpanel

2020-03-06 Thread Devender Kumar
You can't deploy to cpanel go for cloud services of pythonanywhere

On Fri, 6 Mar, 2020, 12:23 pm Tosin Ayoola,  wrote:

> good morning guys,
> i'm trying to deploy my project on cpanel but i'm encountering this err
> msg, hoping anyone can help me out
> i have the screen shot of the msg below tnks
>
> --
> 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/CAHLKn70KjXEbFJw%3Dy0A9RTmNitnymG5p4Y1Ja9NopYbWAPR2kw%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/CALZ%3DbEK%2B__6Si5AkoOUAmH1oiCzVjfdM8cucQi9f9PA1G9vJ5g%40mail.gmail.com.


Project directory management

2020-02-28 Thread Devender Kumar
Hi,
BTW it is flask app question.

dir structure 
 service 
 config/__init__.py
config/config.py
src/app.py
src/__init__.py

Running the flask app by writing command python src/app.py

Question: I want to access config parameter in flask app from config module 
of config package how can do that. 

*solutions I tried* write *sys.path.append(''../")*  to my src/__init__.py 
file but its not working please help me write this right way.

seems src/__init__.py is not being called.

I don't want to change my dir structure and I don't want to write 
*sys.path.append(''../")* in my app.py file, 

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/5b1e9a97-bede-4454-8b32-9d477fe4d954%40googlegroups.com.


Re: Images and pdfs for production level

2020-02-15 Thread Devender Kumar
Read about cloudfront that will help you for sure.

On Sun, 16 Feb, 2020, 11:03 am Soumen Khatua, 
wrote:

> Actually I'm using s3 bucket but I want to convert it as a CDN. Could you
> tell me how I can do that?
>
> Thank you
>
> Regards,
> Soumen
>
> On Fri 14 Feb, 2020, 1:10 PM Devender Kumar,  wrote:
>
>> I will suggest you go with AWS S3 you can use boto3 lib available for
>> python
>>
>> On Thu, 13 Feb, 2020, 12:32 pm Soumen Khatua, 
>> wrote:
>>
>>> Yes,I want to use CDN for my static files. But I don't know how to
>>> implement it.
>>>
>>> On Wed, Feb 12, 2020 at 9:04 PM Devender Kumar 
>>> wrote:
>>>
>>>> Some CDN
>>>>
>>>> On Wed, 12 Feb, 2020, 7:18 pm Soumen Khatua, 
>>>> wrote:
>>>>
>>>>> Hi Folks,
>>>>> Where I need to store images and pdfs for production level.
>>>>>
>>>>> Thank you in advance
>>>>>
>>>>> regards,
>>>>> Soumen
>>>>>
>>>>> --
>>>>> 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/CAPUw6WY-jq3bbC%3DxnreXGMf8c0k_0TDb%3DXXG5Czc6kC_-Q%3D0aQ%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAPUw6WY-jq3bbC%3DxnreXGMf8c0k_0TDb%3DXXG5Czc6kC_-Q%3D0aQ%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/CALZ%3DbEL1tD5FwY27i8OgK4iYgcnmzbzE3-FtHAP4GFqNKGe2XA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CALZ%3DbEL1tD5FwY27i8OgK4iYgcnmzbzE3-FtHAP4GFqNKGe2XA%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/CAPUw6WZEzjT7nz3mVWyacLUs8k4C8jZBfmDOi-CPWEkJvTziXg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAPUw6WZEzjT7nz3mVWyacLUs8k4C8jZBfmDOi-CPWEkJvTziXg%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/CALZ%3DbEJRahf2C9FO%2BQp1V%2Br2SjQZK6L4PNE3Pv2w%3D8Tb9fyepg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CALZ%3DbEJRahf2C9FO%2BQp1V%2Br2SjQZK6L4PNE3Pv2w%3D8Tb9fyepg%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/CAPUw6WbTVkZub1vpbh%2B2070jmFpb%2B8%3Dx-5W9SW6-rgC1AjZvoQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPUw6WbTVkZub1vpbh%2B2070jmFpb%2B8%3Dx-5W9SW6-rgC1AjZvoQ%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/CALZ%3DbEJmMwrwZrYD-pxWwTug1Vxkx52xmO0vUO3r40ueGBR9Cg%40mail.gmail.com.


Re: Images and pdfs for production level

2020-02-13 Thread Devender Kumar
I will suggest you go with AWS S3 you can use boto3 lib available for
python

On Thu, 13 Feb, 2020, 12:32 pm Soumen Khatua, 
wrote:

> Yes,I want to use CDN for my static files. But I don't know how to
> implement it.
>
> On Wed, Feb 12, 2020 at 9:04 PM Devender Kumar 
> wrote:
>
>> Some CDN
>>
>> On Wed, 12 Feb, 2020, 7:18 pm Soumen Khatua, 
>> wrote:
>>
>>> Hi Folks,
>>> Where I need to store images and pdfs for production level.
>>>
>>> Thank you in advance
>>>
>>> regards,
>>> Soumen
>>>
>>> --
>>> 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/CAPUw6WY-jq3bbC%3DxnreXGMf8c0k_0TDb%3DXXG5Czc6kC_-Q%3D0aQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAPUw6WY-jq3bbC%3DxnreXGMf8c0k_0TDb%3DXXG5Czc6kC_-Q%3D0aQ%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/CALZ%3DbEL1tD5FwY27i8OgK4iYgcnmzbzE3-FtHAP4GFqNKGe2XA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CALZ%3DbEL1tD5FwY27i8OgK4iYgcnmzbzE3-FtHAP4GFqNKGe2XA%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/CAPUw6WZEzjT7nz3mVWyacLUs8k4C8jZBfmDOi-CPWEkJvTziXg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPUw6WZEzjT7nz3mVWyacLUs8k4C8jZBfmDOi-CPWEkJvTziXg%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/CALZ%3DbEJRahf2C9FO%2BQp1V%2Br2SjQZK6L4PNE3Pv2w%3D8Tb9fyepg%40mail.gmail.com.


Re: Images and pdfs for production level

2020-02-12 Thread Devender Kumar
Some CDN

On Wed, 12 Feb, 2020, 7:18 pm Soumen Khatua, 
wrote:

> Hi Folks,
> Where I need to store images and pdfs for production level.
>
> Thank you in advance
>
> regards,
> Soumen
>
> --
> 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/CAPUw6WY-jq3bbC%3DxnreXGMf8c0k_0TDb%3DXXG5Czc6kC_-Q%3D0aQ%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/CALZ%3DbEL1tD5FwY27i8OgK4iYgcnmzbzE3-FtHAP4GFqNKGe2XA%40mail.gmail.com.


Re: Python Django Training

2020-02-03 Thread Devender Kumar
Seems lot of people are interested in learning django I will their for you
guys if need any help in django let me know or if you guy need  to have
quick start I can deliver a lecture too for free.
Best of luck for your future


On Tue, 4 Feb, 2020, 2:40 am saifadnan abdallah, <
saifadnanabdal...@gmail.com> wrote:

> I also like to join this group in WhatsApp +2347066907311
>
> On Feb 3, 2020 8:21 PM, "Phako Perez" <13.phak...@gmail.com> wrote:
>
> I would like to be included in this training
>
> WhatsApp +523323120735
> Email: joshue...@gmail.com
>
> Sent from my iPhone
>
> On 2 Feb 2020, at 10:35, V S V Narsimha Murthy 
> wrote:
>
> 
> Hi
>
> I am interested to attend the python and Django online training. Please
> add me as well for the training classes.
>
> Thanks in advance.
>
>
> On Saturday, February 1, 2020 at 7:12:52 PM UTC+5:30, 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/6de934a0-f065-480b-8bc7-ec1204a02ab8%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/9578F326-131A-40F8-98B9-3CBA5DE371F5%40gmail.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/CAN58A2dQR%3D8q7qSw90H4%3DRMshQLKiMTiwf6swhfcyUKQYe1sYQ%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/CALZ%3DbE%2BOEmKmdjOM2EL4gwyEgFH_wmgin3%3DcZUYMxZGUC4rwwA%40mail.gmail.com.


Re: Internship

2019-11-22 Thread Devender Kumar
Can I get your linkedin profile. And git repo links

On Sat 23 Nov, 2019, 2:00 AM 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
> .
>

-- 
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/CALZ%3DbEKXEZoj15eX%3DC%3DaJVWGa6vV0O-B2S6RW_N8pOH7knHLkA%40mail.gmail.com.


Re: Anyone used RENDER product for hosting?

2019-10-08 Thread Devender Kumar
Digital ocean


On Tue 8 Oct, 2019, 3:02 PM ram.mullapudi,  wrote:

>
> Hello,
>
> I'm looking for cheaper, secure and reliable way to host my website? The
> site is being developed on DJango FWK.  We are currently on GCP and also
> reviewed other popular vendors too. I recently came to know about Render
> platform and am wondering if anyone tried it?
>
> Regards,
> ~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/62fe233b-924d-4257-9ad3-2a14a147ae0d%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/CALZ%3DbE%2B2KLmhzOfvZng3ASj_8WH5V5TDzz3E2Rs0m2tRCCwFww%40mail.gmail.com.


Re:

2019-07-24 Thread Devender Kumar
Read django allauth lib.

On Wed 24 Jul, 2019, 4:01 PM avi gehlot,  wrote:

> You can contact me ..
>
> On Wed, 24 Jul 2019 at 3:57 PM, Soumen Khatua 
> wrote:
>
>> Hi Folks,
>> I want to create one signup page where end-user can SignUp and LogIn by
>> using their e-mail id nit by Username. Please tell me how i can do
>> that,please provide me source code for that.
>>
>> Thank You
>>
>> Regards,
>> Soumen
>>
>> --
>> 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/CAPUw6Wat%3DTGsY%3DF816XDS77YQkk29OLEQYUkjkmQN1hX6A%2B1iw%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/CAOo90MDTC8aha3CNOk18UMoa8Zc8J5RURQk5ak7RJAkpFvn2bg%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/CALZ%3DbE%2BBXXV_KGTgzS96Y0GyAJURUVpw%2BuN9UWkz9uQhJ%3DVd1Q%40mail.gmail.com.


Re: Help : Advance ORM queries

2019-06-17 Thread Devender Kumar
Need help in writing ORM query for this type of result

On Tuesday, June 18, 2019 at 10:54:30 AM UTC+5:30, Devender Kumar wrote:
>
> Hi,
> I have 3 models which are related like this.
> Accounts can have multiple contact 
> and one contact can have multiple comments
> one contact can be assigned to at most one account.
>
> [image: CRM Relation.png]
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Result should look like as described in above photo 
> Thank you 
> Devender
>
>

-- 
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/0460c9d1-92d3-4f6e-9d95-a9c03b8a049b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Help : Advance ORM queries

2019-06-17 Thread Devender Kumar
Hi,
I have 3 models which are related like this.
Accounts can have multiple contact 
and one contact can have multiple comments
one contact can be assigned to at most one account.

[image: CRM Relation.png] 
























Result should look like as described in above photo 
Thank you 
Devender

-- 
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/97a9f13e-5119-4203-a103-8cc85cbbd649%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Orm Query for this type of situation

2019-06-07 Thread Devender Kumar
Hi,
On this question only I took some step deep and able to find out one part
and need your help on the second half.
This requires a good understanding of Django annotation and subquery
features
If you have this thank for reading and helping me in advance
I am facing problem to filter calls on account.contact list which are
realted by contact phone no with and calls phone no
can any one help writing this query





On Thu, Jun 6, 2019 at 7:47 PM Devender Kumar 
wrote:

> Account /Lead Model
>  account_name
>  contact m2m realtion
>
> contact Model
> name
> phone No
>
> calls Model
> caller no # person phone no who is calling
> agent no #  person who is picking the call (CRM user)
> status 
> timestamp
> duration
>
> calls model is populated with some third party software and we are map its
> caller no and agent no their is no direct relationship
>
> I want to get the list of accounts in particular date range  with:
> total no of contact it have ,
> how many time its contact have called
> how many calls where missed inbound outbound etc
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Thu, Jun 6, 2019 at 4:49 PM Chetan Ganji 
> wrote:
>
>> Right now its an open ended question.
>>
>> If you post code for your models here, someone can help you.
>>
>> On Thu, Jun 6, 2019, 4:38 PM Devender Kumar  wrote:
>>
>>> Hi,
>>> I am working on CRM project and stuck with REPORTING part.
>>>
>>> I have Accounts , Lead , contact, Calls ,Concern modules
>>> account/Lead can have multiple contacts
>>> contacts have multiple calls and concerns
>>> calls have different status like Incoming outgoing missed call etc
>>>
>>> Question
>>> I need to create a reporting system
>>> In this I have to give a functionality like so
>>> list of accounts with counts of :
>>>  contacts, total calls,incoming, outgoing etc
>>>
>>>  how can list all this count for a given date ranges calls on all
>>> accounts
>>>
>>>
>>>
>>> --
>>> 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/1cb5c003-7cbc-4d54-ae5b-21403e543b95%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/1cb5c003-7cbc-4d54-ae5b-21403e543b95%40googlegroups.com?utm_medium=email_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/CAMKMUjtMaEncd6LF1J%2BmgKxA_NpL1FLFz5_UXi_JMLDD%3Du52Vw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAMKMUjtMaEncd6LF1J%2BmgKxA_NpL1FLFz5_UXi_JMLDD%3Du52Vw%40mail.gmail.com?utm_medium=email_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/CALmCJr7ApqHCCsm73t%3DiuvzOYwE44Vh7pcdpH2bNkb-aH015fw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CALmCJr7ApqHCCsm73t%3DiuvzOYwE44Vh7pcdpH2bNkb-aH015fw%40mail.gmail.com?utm_medium=email_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/CALZ%3DbEL-FcgFqpjJtN9Up0JuOJ4WtO_fVKrPBERSYWKK%2B1r_gQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Annotations as models fields

2019-06-07 Thread Devender Kumar
Hi,
You can use Django annotation feature which will add a field to your
queryset objects and that field can behve like any real field


On Thu, Jun 6, 2019 at 8:22 PM Chetan Ganji  wrote:

> Yes Olivier, You are right :P
>
> If I understand the problem correctly this time, you want the field
> available on django model, but does not want the python to do the
> calculation.
> You want the database to compute the value.
>
> If yes, you could use a row level trigger i.e after create and after
> update trigger. PostgreSQL supports it.
>
>
> class Sales(models.Model):
> buying_price = models.FloatField()
> selling_price = models.FloatField()
> profit = models.models.FloatField(null=True, blank=True)
>
>
> *For your reference - *
> *RE: SQL Triggers*
> http://www.postgresqltutorial.com/introduction-postgresql-trigger/
>
> *RE: database-side computed fields*
> Instead of concatenation as in the below example, you would do some other
> operation and/or aggregation which would be calculated by the database.
>
> https://dba.stackexchange.com/questions/21897/set-a-columns-default-value-to-the-concatenation-of-two-other-columns-values
>
>
> If it works, as it would be on database level, you have to document it in
> the readme file of your project.
> Otherwise, next developer on the project might not know about the trigger
> and bang his head on the floor like I did earlier, lolz :P
>
> I hope it helps this time :P
>
>
> Regards,
> Chetan Ganji
> +91-900-483-4183
> ganji.che...@gmail.com
> http://ryucoder.in
>
>
> On Thu, Jun 6, 2019 at 6:57 PM Olivier Dalang 
> wrote:
>
>> Thanks Chetan for trying to help, but please read carefully the issue, as
>> you didn't understand what I'm trying to do.
>>
>> In the meantime, and for the record, I found this, which works for simple
>> cases.  https://github.com/schinckel/django-computed-field
>>
>> On Thu, 6 Jun 2019 at 14:57, Chetan Ganji  wrote:
>>
>>> I think this would solve your problem. Whatever calculations needs to be
>>> done, you can do it manually before saving the Sales instance.
>>> Preferably after checking if form.is_valid() in case of django and in
>>> the function perform_create() in case of django rest framework.
>>>
>>>
>>> class Sales(models.Model):
>>> buying_price = models.FloatField()
>>> selling_price = models.FloatField()
>>> profit = models.models.FloatField()
>>>
>>>
>>> Cheers!
>>>
>>>
>>> Regards,
>>> Chetan Ganji
>>> +91-900-483-4183
>>> ganji.che...@gmail.com
>>> http://ryucoder.in
>>>
>>>
>>> On Thu, Jun 6, 2019 at 4:50 PM Olivier Dalang 
>>> wrote:
>>>
 Thanks for the answer. As said, the @property + python method wouldn't
 work for my use case, as I need to be able to use the field in the queryset
 to filter/order (plus my actual computed field use aggregates expressions).

 Cheers,

 Olivier

 On Thu, 6 Jun 2019 at 12:36, Chetan Ganji 
 wrote:

> I had a similar need in one of my clients project, I ended up using
> @property and a python method.
>
> AFAIK, AnnotationField is absent from django models. If you would like
> to write one, below is the material you need to refer.
> https://docs.djangoproject.com/en/2.2/howto/custom-model-fields/
>
>
> Regards,
> Chetan Ganji
> +91-900-483-4183
> ganji.che...@gmail.com
> http://ryucoder.in
>
>
> On Thu, Jun 6, 2019 at 3:36 PM Olivier Dalang <
> olivier.dal...@gmail.com> wrote:
>
>> Dear list,
>>
>> I was wondering whether there's a package or pattern to define
>> annotations as model fields, so that they could really be used as
>> database-side computed fields.
>>
>> Currently, I do something like this (not tested, it's a simplified
>> case):
>>
>> class SalesManager(models.Manager):
>> def get_queryset(self):
>> return super().get_queryset().annotate(
>> profit=F("selling_price")-F("buying_price")
>> )
>>
>> class Sales(models.Model):
>> objects = SalesManager()
>>
>> buying_price = models.FloatField()
>> selling_price = models.FloatField()
>> ...
>>
>> Ideally, I'd see something like :
>>
>> class Sales(models.Model):
>> buying_price = models.FloatField()
>> selling_price = models.FloatField()
>> profit = models.AnnotationField(F("selling_price")-F("buying_price"))
>> ...
>>
>> An AnnotationField would behave like a read-only field, excepted that
>> it wouldn't have a database column.
>>
>> This would have the following benefits :
>> - much less verbose
>> - all instance related stuff in one place
>> - it would make it possible to refer to "profit" as a model field
>> - you could use the field in Meta.ordering
>> - you could easily display in django.admin without additional
>> methods
>>
>> Of course similar result can be achieved with @property and a python
>> method, but I really need this to be on the 

Re: Orm Query for this type of situation

2019-06-06 Thread Devender Kumar
Account /Lead Model
 account_name
 contact m2m realtion

contact Model
name
phone No

calls Model
caller no # person phone no who is calling
agent no #  person who is picking the call (CRM user)
status 
timestamp
duration

calls model is populated with some third party software and we are map its
caller no and agent no their is no direct relationship

I want to get the list of accounts in particular date range  with:
total no of contact it have ,
how many time its contact have called
how many calls where missed inbound outbound etc














On Thu, Jun 6, 2019 at 4:49 PM Chetan Ganji  wrote:

> Right now its an open ended question.
>
> If you post code for your models here, someone can help you.
>
> On Thu, Jun 6, 2019, 4:38 PM Devender Kumar  wrote:
>
>> Hi,
>> I am working on CRM project and stuck with REPORTING part.
>>
>> I have Accounts , Lead , contact, Calls ,Concern modules
>> account/Lead can have multiple contacts
>> contacts have multiple calls and concerns
>> calls have different status like Incoming outgoing missed call etc
>>
>> Question
>> I need to create a reporting system
>> In this I have to give a functionality like so
>> list of accounts with counts of :
>>  contacts, total calls,incoming, outgoing etc
>>
>>  how can list all this count for a given date ranges calls on all
>> accounts
>>
>>
>>
>> --
>> 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/1cb5c003-7cbc-4d54-ae5b-21403e543b95%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/1cb5c003-7cbc-4d54-ae5b-21403e543b95%40googlegroups.com?utm_medium=email_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/CAMKMUjtMaEncd6LF1J%2BmgKxA_NpL1FLFz5_UXi_JMLDD%3Du52Vw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMKMUjtMaEncd6LF1J%2BmgKxA_NpL1FLFz5_UXi_JMLDD%3Du52Vw%40mail.gmail.com?utm_medium=email_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/CALmCJr7ApqHCCsm73t%3DiuvzOYwE44Vh7pcdpH2bNkb-aH015fw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to migrate MySQL -> PostgreSQL?

2019-06-06 Thread Devender Kumar
Simple scripts :
Dump data 
python manage.py dumpdata  # this will whole database to single json 
python manage.py loaddata filename # this will populate the database with 
that json again 

On Tuesday, June 4, 2019 at 12:50:59 AM UTC+5:30, Victor Porton wrote:
>
> How to migrate a production database MySQL -> PostgreSQL?
>
> (MySQL has several bugs, I want to try something other on my production 
> server.)
>

-- 
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/39d3c382-53bd-4b33-ae69-cb6fed0aa88e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Orm Query for this type of situation

2019-06-06 Thread Devender Kumar
Hi,
I am working on CRM project and stuck with REPORTING part.

I have Accounts , Lead , contact, Calls ,Concern modules
account/Lead can have multiple contacts 
contacts have multiple calls and concerns 
calls have different status like Incoming outgoing missed call etc

Question 
I need to create a reporting system
In this I have to give a functionality like so
list of accounts with counts of :
 contacts, total calls,incoming, outgoing etc

 how can list all this count for a given date ranges calls on all accounts 



-- 
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/1cb5c003-7cbc-4d54-ae5b-21403e543b95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to migrate MySQL -> PostgreSQL?

2019-06-05 Thread Devender Kumar
Hi,
*It's very complicated with not much explanation in question.*
Its depend on where you want to do this process Development or Production.
If it is development then and not holding a very large amount of data.
then its not very complicated
 dump JSON > change database engine > load JSON.
If its production end then you might have to write some scripts to copy
data from one database (MySQL) to dump Into another database (PostgreSQL)
in between you can use transition state of JSON OR XML

Thank you


On Tue, Jun 4, 2019 at 2:46 PM Julien Enselme <
julien.ense...@bureauxlocaux.com> wrote:

> Hi,
>
> At my company we recently made a switch from MySQL to PG. We used
> https://pgloader.io/ to load the data from MySQL to PG. It reliable and
> quite fast (we had about 2GO of data to migrate in multiple table). The
> tool will handle table creation and data migration. As @Kiran said, try
> first in a test env. It may take a while depending on the amount of code
> that relies on MySQL specific features. I hope this helps!
>
> Regard,
> Julien Enselme
> Développeur chez BureauxLocaux
>
>
> Le mar. 4 juin 2019 à 00:56, Kiran Capoor  a
> écrit :
>
>> Hi,
>>
>> As said by ankhi, change to pgsql in settings before that use the django
>> fixtures feature to take a backup of the data etc. try in test env only as
>> this has breaking potential.
>>
>> Regards,
>> Kiran Capoor
>>
>> On Tue, 4 Jun 2019 at 01:33, Ankhi Roy  wrote:
>>
>>> Hey Victor,
>>>
>>> Do you mean to use postgresql instead of mysql,  if so please change
>>> database settings in settings.py. However,  I am not sure how will you
>>> migrate your existing mysql tables and contents to postgresql. Just a
>>> workaround you can recreate tables in postgresql and re add the data. There
>>> must be an efficient way though.
>>>
>>> Thanks
>>> Ankhi
>>>
>>> On Mon, Jun 3, 2019, 8:21 PM Victor Porton  wrote:
>>>
 How to migrate a production database MySQL -> PostgreSQL?

 (MySQL has several bugs, I want to try something other on my production
 server.)

 --
 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/97a3c018-86ee-462a-a21a-6d2a7971adc1%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/CABUQWg_hm7U__cwKJvFvvvR3osuz-MtswCL1YLA74pGdEvp_PA%40mail.gmail.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> Sent from iPhone
>>
>> --
>> 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/CAANvM2%3DHjGDSL3_rX6adnkp-8o%2Bj9trx9as0AMC5VGpMw25nZA%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/CAL%3D_h26ttWeRZ5cv4dADrmLg4upJC65zdg4%3Dw1GFc8qZLUU5nw%40mail.gmail.com
> 

Re: Help on architecture of User layout configuration system

2019-05-13 Thread Devender Kumar
Thank you for your suggestion 
I am using PostgreSQL
You have successfully saved the layout but I am talking about the dynamics 
forms fields which will be used for form submission how you are looking to 
store the values of 1000's of records entered after that in those fields.
that's why I was looking for more efficient way (as I know this solution 
already ignore the fact that storing the json of record values too) as it 
might decrease the efficiency of the system.

On Monday, May 13, 2019 at 3:58:47 PM UTC+5:30, Devender Kumar wrote:
>
> Hi,
> I want to make a web app in which user has rights to configure his 
> layout.Means each user can configure his layout according to his choice and 
> work 
> Like how many fields can his form have how many field he want to see in 
> table view of individual record view . configure theme color of his own 
> choice .
> all these type of settings he can do for his own use.
> Can any one help me with this type of architecture.
> Thank you
> Devender 
>

-- 
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/ec432f98-e6ce-4849-9d8d-46237f451cda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to generate UserID and password for users upon registration?

2019-05-13 Thread Devender Kumar
make use of user manager which can genreate userid and password and create 
user with this userid and password + **extra fields

On Thursday, May 9, 2019 at 6:09:33 PM UTC+5:30, MUHAMMAD AFZAL wrote:
>
> Hello Django People,
>
> I'm building an app in which I need to generate UserID and passwords for 
> users automatically up signing up to the app.
>
> And ID and password will be sent to email or phone number.
>
> I'm checking out for full solution in Django.
>
> Thanks
> Muhammad Afzal
>

-- 
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/bccb561a-c712-4466-95e7-2dc7bc40944a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Database setup

2019-05-13 Thread Devender Kumar
You need to make model for that where managed = false in class meta of the 
model. 
even you can generate complete table model from the db.

On Friday, May 10, 2019 at 8:29:40 PM UTC+5:30, Soumen Khatua wrote:
>
> Hi Folks,
>
> I have one existing table in my database then how I can use the same table 
> in my models.py.
>
> Thank You. 
>
>

-- 
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/b72208ad-4983-426b-8de3-664b4ba0a960%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Email Django app.

2019-05-13 Thread Devender Kumar
Till now I only know about one thing is that is sending emails not about 
how you will be going to read them but I have suggestion for this also. For 
sending email you need to configure smtp/email in your settings file 
like so 
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 
EMAIL_HOST_PASSWORD = 
EMAIL_PORT = 587

These are for gmail you type your user and password of the gmail from which 
you want to send the emails . 

django.core.mail with this package
You can send emails search this and you will find it docs.

You might need celery support for send emails as python has sync 
architecture.
On Saturday, May 11, 2019 at 3:48:01 AM UTC+5:30, Marvelous Ikechi wrote:
>
> Hello guys, 
>
> I'm creating an third party app that can send and read users emails using 
> Django. How possible would it be to connect to the internet from my local 
> host, to send and receive these emails. Or do I need to host the site first 
> before these functionalities can come alive?
>

-- 
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/a9918a16-be4d-4f92-b225-2b158353cf92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Help on architecture of User layout configuration system

2019-05-13 Thread Devender Kumar
Hi,
I want to make a web app in which user has rights to configure his 
layout.Means each user can configure his layout according to his choice and 
work 
Like how many fields can his form have how many field he want to see in 
table view of individual record view . configure theme color of his own 
choice .
all these type of settings he can do for his own use.
Can any one help me with this type of architecture.
Thank you
Devender 

-- 
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/b9332431-bb74-416d-b5e6-a54db73c1b56%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Work from home opportunites

2019-02-23 Thread Devender Kumar
DM 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 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/e49d7060-3208-43dc-9e29-c7f605c2bca6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django connectivity with MySQL service in docker container

2019-02-23 Thread Devender Kumar
I am not able to connect my web service with MySQL db service running in docker 
container both of the services are in docker container. Can any one share 
config or some notes on this topic I am using gunicron server nginx for reverse 
proxy MySQL for database.
And also changes to be made django settings.

-- 
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/a0bfc10a-e020-4347-b529-54f560efedbd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: To learn proper project based Django .

2019-01-15 Thread Devender Kumar
Hi,
I have different set of mind set there are lot of different type of
projects out there.
First think what you wanna build then take out small part of that project
get some UI* and start coding it don't think about as a whole just a part.
Make some similar parts and collect or join them together and put some
finishing stepups and host the dam thing. And start showcasing it. This is
what I do and I have just 6 month exp in django and I already did three of
the projects with it and doing one more if you wanna be part of it I am
happy to have you in.
Regards
Dev

On Tue 15 Jan, 2019, 7:18 PM PASCUAL Eric  Hi,
>
>
> The Django official website includes an extensive reference documentation
> and a detailed tutorial. This is the preferred start point.
>
>
> Afterwards, you can grab complements from resources such as  :
>
>
>- Django Girls site
>- Two Scoops of Django book
>
>
> These are those which came out of my mind, but there are plenty others.
>
>
> BTW Two Scoops is a great book which goes beyond Django itself, and
> provides advice about how to structure a Django project, which extensions
> and tools are useful,... It's a very valuable source of inspiration to
> build your own experience. Just be warned that it refers to Django 1.11
> (and not yet Django 2.x), but this should not be a real problem for now.
>
>
> Once you'll have assimilated the content of theses sources, you'll be very
> well prepared for Django coding ;)
>
>
> Regards
>
>
> Eric
> --
> *From:* django-users@googlegroups.com  on
> behalf of Nikhil kanamadi 
> *Sent:* Tuesday, January 15, 2019 10:38:09 AM
> *To:* django-users@googlegroups.com
> *Subject:* To learn proper project based Django .
>
> Hi all,
>
> I am one year experienced software professional.
> Worked on python and flask.
> But now I need to learn And build hands-on Django projects.
> Which is best source for project based understanding  and learning.
>
> Please provide me any free hands-on  bootcamps  or sources.
>
> --
> 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/CAJruv46usXAMXUXukt7%2BsGuMSib1JMdTVL_04zd7EQt0tQ3CZA%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/AM0P193MB0308D44E73EE3A85D2ADC7F08C810%40AM0P193MB0308.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/CALZ%3DbE%2B6xiLrQbz%2B2aNmrkEx%2BVFJ%3DkagesQxhSRjQxcqZYz18g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django deployment on production gives error SuspiciousFileOperation

2018-12-19 Thread Devender Kumar
Use collectstatic command

On Wed 19 Dec, 2018, 12:11 PM mohit basantani  Hello pradeep
>
>  I found the my mistake I was giving the hard coded path of the static
> root which is wrong I have attached my settings.py file above now it's
> working fine ...Thanks for your concern really appreciated!
>
> On Wed 19 Dec, 2018, 11:49 Pradeep Sukhwani, 
> wrote:
>
>> Hi Mohit,
>> Can you please share the settings.py file which is being used for
>> production? Specially that part where you have defined the static_url and
>> static_root
>>
>> --
>> 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/5e4299c7-37e2-465e-9442-5f98e297c785%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/CAHRGajSD91%2B5ieDPeGynqAmadgEz9NZmVnKmb3sgLKLp0Qysbw%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/CALZ%3DbE%2BWx85Lf8UPuMdLrsminpHuG%3Dn4A3CcosJTJ1iT9KQ-vw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Who use django-allauth!

2018-12-04 Thread Devender Kumar
You are already login(session authentication)  try to visit account/logout
first and then try to re login again then you might beable to reach login

On Tue 4 Dec, 2018, 6:02 PM Anirudh Jain  Where do you want to redirect them? Where exactly is the problem?
>
> On Tue, 4 Dec 2018, 17:53 
>> I can't authorize users at my project. If I'm going to login with
>> http://127.0.0.1:8000/account/login I'm redirecting to index page.
>>
>> --
>> 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/0ec4eb58-6a33-43da-9b7a-059b69a71334%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/CAC3mK7fp5SV7X150-ceTUBS6YNy-xP%2B30TWBsnzQ7YYXs6woPA%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/CALZ%3DbEJb6vsOo0AE-u_tjjCGEkyH4qA3ZhL2iJyD38gg06D09A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Looking for a job in python

2018-11-29 Thread Devender Kumar
Hi,
I am Devender Kumar from Delhi, India. I am currently looking for a job. I 
am currently working as a software engineer at kloudyy system here we work 
on technologies like Python, Django Web framework, and some more tools for 
developling web platform.

I have hands-on experience and certifications in Data science and big data 
Hadoop and spark.
I have attached my resume with this post. Please let me know if you have 
any opportunity around you. Please feel free to reply.

Thank you
Devender Kumar
India

-- 
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/5cd9f093-455f-4321-a7cb-d753a88a9408%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


DevResume.pdf
Description: Adobe PDF document


Re: How do I store details securely with django?

2018-11-12 Thread Devender Kumar
Hi
Study about LDAP protocol
Regards
Dev

On Tue 13 Nov, 2018, 4:06 AM PASCUAL Eric  Hi Lance,
>
>
> Well, I was off topic. Sorry for this :/ I understand your need better
> now.
>
>
> There are chances you've already thought to this option, but what about
> storing the sensitive data encrypted with a key based on a passphrase the
> user must provide when logging, in addition to the usual credentials ? This
> passphrase would not be stored anywhere, so even if the DB is compromised,
> the sensitive data would not be usable.
>
>
> Eric
> --
> *From:* django-users@googlegroups.com  on
> behalf of Lance Haig 
> *Sent:* Monday, November 12, 2018 4:45:50 PM
> *To:* django-users@googlegroups.com
> *Subject:* Re: How do I store details securely with django?
>
>
> Hi Eric,
>
> I am sure I have not explained myself properly.
>
> The app does the following.
>
> It presents a user the ability to sign up to a cloud platform for a
> sandbox / playground account.
> The number of cloud services that are available will change over time.
>
> Each cloud platform has a set of credentials (username, password, domain
> etc...) These credentials will have elevated permissions within their own
> environments and so should be kept as safe as possible.
>
> Currently I use secrets and .env files to provide these credentials.
> This requires physical access to the platform to add new secrets etc...
>
> I want to enable editing (e.g. CRUD on the platform credentials) without
> having to redeploy the application or update the secrets.
> The idea was to enable an admin interface to the DB so that each cloud
> platform admin could add more or delete their platform from the solution.
> This requires a place to store secrets that can be updated deleted and
> created.
> I was hoping that there might be a standard way to store these that is
> secure other than adding secrets or updating the .env file.
>
> Thanks for trying to understand my vague question.
>
> Lance
>
>
>
> On 11/12/18 10:04 AM, PASCUAL Eric wrote:
>
> Hi Lance,
>
>
>  but I need for people who are admins for a particular cloud to add their
> cloud details to the app and then store their credentials securely.
>
>
> I'm not sure to understand the need for adding cloud details to the app
> for the admins.
>
>
> The suggestion I made assumed that sensitive information is managed as K8S
> secrets. As long as the admins have GCloud (for instance) credentials set
> (which are stored and managed at GCloud level), they can administrate the
> secrets resources by "applying" the corresponding YAML descriptors
> remotely from their workstation. The sensitive values are thus stored
> nowhere inside the application itself, but passed to the containers at
> runtime as environment variables.
>
>
> Maybe I've misunderstood your need and sorry in this case if my answer is
> off topic.
>
>
> Best
>
>
> Eric
> --
> *From:* django-users@googlegroups.com 
>  on behalf of Lance Haig 
> 
> *Sent:* Monday, November 12, 2018 9:07:30 AM
> *To:* django-users@googlegroups.com
> *Subject:* Re: How do I store details securely with django?
>
>
> Hi Eric,
>
>
> Thanks for the response.
>
>
> This idea has an end goal of being deployed in a resilient way so most
> probably docker with some form of orchestration, Docker swarm or Kubernetes.
>
>
> The credentials are mainly stored in a .env file at the moment and could
> be added to the secrets but I need for people who are admins for a
> particular cloud to add their cloud details to the app and then store their
> credentials securely.
>
>
> Unfortunately this will need a dynamic storage mechanism which i don't
> know how to do yet
>
>
> Regards
>
>
> Lance
>
>
>
> On 11/12/18 12:03 AM, PASCUAL Eric wrote:
>
> Hi,
>
>
> It can depend on which deployment option you plan to use for the
> application.
>
>
> For instance, a Docker deployment orchestrated by Kubernetes gives the
> option of using secrets for sensitive information, which a hoster such as
> GCP manages conveniently. In this kind of deployment, configuration (and
> secrets) are passed to the app as environment variables, on which
> Kubernetes configuration maps and secrets are mapped to. Thanks to this,
> values are stored nowhere in the app code, companion files or database.
>
>
> Regards
>
>
> Eric
> --
> *From:* django-users@googlegroups.com 
>  on behalf of Mike Dewhirst
>  
> *Sent:* Sunday, November 11, 2018 11:07:14 PM
> *To:* django-users@googlegroups.com
> *Subject:* Re: How do I store details securely with django?
>
> On 12/11/2018 12:47 AM, Lance Haig wrote:
> > Hi,
> >
> > I have a project I am working on https://github.com/lhaig/usery/ and
> > part of the roadmap of the project is to add more cloud types to the
> > list.
> >
> > I wanted to allow admins for these services to login and create
> > records for their different clouds in the DB and then use these when
> > people request access to these 

Re: Refer tutorials to make multitenant application with shared database with multiple schma

2018-10-09 Thread Devender Kumar
Thank you all for putting some light on these.
Regard
Dev

On Wed 3 Oct, 2018, 12:59 AM heriberto ochoa,  wrote:

> I have try this library:
> https://django-tenant-schemas.readthedocs.io/en/latest/
>
> and with db postgres
>
> El miércoles, 19 de septiembre de 2018, 1:09:20 (UTC-6), Devender Kumar
> escribió:
>>
>> Hi,
>> I need a help from you I wanna start a project which is a multitenant
>> application and I want the tenant can register themselves and schema is
>> created for him from the shared database across tenants.
>> I want to make this application in Django I know all the terminology of
>> how multitenancy can be achieved I just want to how to write the code for
>> this as I have never played with schemas and other stuff.
>> You refer to any project where I can get an insight, Any tutorial link
>> for this project.
>> Thanks
>> Dev
>>
>> --
> 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/6626e9ec-226b-4d8e-8308-81428b354fc0%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/6626e9ec-226b-4d8e-8308-81428b354fc0%40googlegroups.com?utm_medium=email_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/CALZ%3DbE%2B4-rM%2Bp75KyXmVcOBaOxL6qZHek3H_UbKyj3GO4w-22w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: same card can belong to multiple users but only in different time periods

2018-10-09 Thread Devender Kumar
Hi,
I think finding solution to this can consume time. Simply make a function
which will change the user reference of the card over a given period of
time.


Regards
Dev

On Mon 8 Oct, 2018, 10:47 PM Derek,  wrote:

> Apart from setting up a unique key (user, card, start, end), you may also
> want to check if the date range for that card overlaps with another date
> range; e.g. see
> https://stackoverflow.com/questions/9044084/efficient-date-range-overlap-calculation-in-python
> --> do that check in the clean method and return an error if the system
> tries to allocate the card when its already (partly) used in the same time
> period.  If you have other restrictions (like not being being assign cards
> "in the past") that will also help cut down on invalid assignments.
>
> On Monday, 8 October 2018 13:10:04 UTC+2, Shareef 617 wrote:
>>
>> Consider a project where users can have many cards (or anything else,
>> card is just an example), and the same card can belong to multiple users *but
>> only in different time periods*. So if a card is assigned to user from
>> 1.09.2014 to 1.10.2014 (dd/mm/), then the same card can be assigned to
>> another user but only for time period that ends before 1.09.2014 or starts
>> after 1.10.2014. I hope you get it.
>>
>> I've created the following models:
>>
>> class User(models.Model):
>> cards = models.ManyToManyField(Card, through="UsersCards")
>>
>> class UsersCards(models.Model):
>> user = models.ForeignKey(User)
>> card = models.ForeignKey(Card)
>> start_date = models.DateField()
>> end_date = models.DateField()
>>
>> --
> 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/0657b0f6-eded-4566-929a-415459e346eb%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/CALZ%3DbEK7AFDCjAKUyJOt0qU0BeFyZbF9Snf%2B%3De-QtO8%3Dh-AmYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: beginner guide

2018-10-09 Thread Devender Kumar
Hi,
Best way to learn django is to start coding it and keep referencing it with
django docs. Or find a mentor work/help  with him on some project and keep
learning he can guide you too.

Find some code on GitHub and read it once carefully.

I am also looking for junior to help me with my work and in return I will
help him learning python and django.

Regards
Dev

On Mon 8 Oct, 2018, 10:19 PM carl collins, 
wrote:

> Follow this awesome tutorial>
> https://docs.djangoproject.com/en/2.1/intro/tutorial01/
>
> On Mon, Oct 8, 2018 at 5:39 PM Ashok Reddy 
> wrote:
>
>> hello every one .i am beginner to Django. Could you please suggest me the
>> best source to learn,i am very enthusiastic to learn.
>>
>> --
>> 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/77c1a5fa-47ae-4708-98ad-631b75775422%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/CAEPm0byq8Z0uAnLutbyV1OsZaCdAwEo7arD1QH92K_XEDiFLEw%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/CALZ%3DbELEXUnK8m%3DTRnxxMeq9revNCxB3k7VjHq-BRhMBLV-B%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to add form field dynamically?

2018-10-01 Thread Devender Kumar
Hi,
I have been to this type of problem.
There two solutions to this
You have to made this using java script for front end and for database or
backend.
For front end make a counter which will create a form fileds with
name="columnname$countet" sir that the post request you can fetch all the
detail in the backend
You can have two approaches for backend.
One to make a table and for each add store a reference two which thing it
belongs  to
Like there is one question and there can be any no of ans two that
question. In senerios like this make a question model and in answer model
with foreign key to question table in this senerio u will have one question
can have any no of answer

Second approach which I followed is to store the form data to JSON.
Enjoy
Thanks


On Wed 26 Sep, 2018, 11:28 PM Kasper Laudrup,  wrote:

> Hi Django Lover,
>
> On 26/09/2018 15.55, Django Lover wrote:
> > Then What is the solution please let HELP ME?? I know that it will done
> > by Jquery but how? I dont Know
> >
> >
>
> The first hit I got on a search for "jquery dynamic form" sent me to
> this page:
>
> https://www.jqueryscript.net/tags.php?/dynamic%20form/
>
> Looks like something like this:
>
> https://www.jqueryscript.net/form/Dynamic-Form-Creation-Deletion.html
>
> is exactly what you need?
>
> Of course you still need to handle the submitted form on the server
> (Django) side and you might not be able to use most of Djangos builtin
> form handling functionality, but someone else definitely knows more
> about that than me.
>
> 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/2b7a307d-d338-dc0e-f738-770f1245805c%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/CALZ%3DbEKg0eOAXc4N%3D%2Bv_%3D-XcGjEeeo0ZOD-N0FNTxFgGjY5RBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Starting a New Project somewhat like multitenant saas appication.

2018-09-25 Thread Devender Kumar
Hello,
I am Dev just two step ahead of a beginner(recently started to code in 
Django). I want to develop an application seeking for some thoughts(help/ 
favors/ etc) from you guys.
The application fundamental is like Hierarchy is like At top soft 
engg. team (me) > partners> client> location> device> end-user. All are 
using the same application with some changes.
Database: wanna have a common database for all. all the tables are shared 
among hierarchy and records are filter according to the roles.

Now the few questions the role-based authentication I can do but is there 
any other better option or thing available?
The second question is I want some database distribution at partner level 
there is the concept of *schemas *(can you put some light on this also). I 
want this to make queries little fast, independent and secure.

Any type of solution. suggestion, reference you have happy to see 
Regards 
Dev

Thank you so much.

-- 
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/bf3bed4a-481e-43a8-93f4-832c652c4003%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Refer tutorials to make multitenant application with shared database with multiple schma

2018-09-19 Thread Devender Kumar
All this should be done using the MySQL database.

On Wednesday, September 19, 2018 at 12:39:20 PM UTC+5:30, Devender Kumar 
wrote:
>
> Hi,
> I need a help from you I wanna start a project which is a multitenant 
> application and I want the tenant can register themselves and schema is 
> created for him from the shared database across tenants.
> I want to make this application in Django I know all the terminology of 
> how multitenancy can be achieved I just want to how to write the code for 
> this as I have never played with schemas and other stuff.
> You refer to any project where I can get an insight, Any tutorial link for 
> this project. 
> Thanks 
> Dev
>
>

-- 
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/41544da5-437e-443b-8c7f-29dc881e8853%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Refer tutorials to make multitenant application with shared database with multiple schma

2018-09-19 Thread Devender Kumar
Hi,
I need a help from you I wanna start a project which is a multitenant 
application and I want the tenant can register themselves and schema is 
created for him from the shared database across tenants.
I want to make this application in Django I know all the terminology of how 
multitenancy can be achieved I just want to how to write the code for this 
as I have never played with schemas and other stuff.
You refer to any project where I can get an insight, Any tutorial link for 
this project. 
Thanks 
Dev

-- 
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/9e3918ae-7e2c-4ee9-9f20-eceb55983c79%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to save multiple model form in one template?

2018-09-11 Thread Devender Kumar
Hi,
I made it more simple and I implemented this also This is a solution is a
little different from other solution
you have three model form, one view which is rendering all the form.
If this is the case or somewhat similar then.
simply give *name *attribute to each submit button
like: **
and in the view.
* if request.POST:*
or if you are using class-based views then inpost func.
simply check for
* if 'firstForm' in request.POST:*

you get the idea I think. This will help you recognize which submit button
is hit.

Regards
Dev
Trippister



On Mon, Sep 10, 2018 at 10:33 AM Sunil Kothiyal 
wrote:

> THIS IS MY FORM. I HOPE IT WILL CLEAR THE CONCEPT.
>
> [image: STLY.png]
>
> On Sun, Sep 9, 2018 at 1:59 AM Savvey Chauhan 
> wrote:
>
>> First Create 3 Views For each form .
>> Second Create urls for all 3 views .
>> THiRD CHANGE ACTION URL ACCORDING TO VIEWS URL
>> ADD AJAX TO SUBMIT THE FORM
>> IF YOU WANT TO DISPLAY A TOAST MESSAGE USE TOASTR ON HTML PAGE.
>> eg :
>>
>>  
>>   {% csrf_token %}
>> 
>>   First Name:
>>   
>> 
>> 
>>   Last Name:
>>   
>> 
>>
>>   
>>   Gender:
>>   
>> 
>> Submit
>>   
>>
>> 
>>
>>
>>
>> 
>> $( "#target" ).submit(function( event ) {
>>   var form = $("form").serialize();
>>   $.ajax({
>> url: '',
>> data: form ,
>> success: function (data) {
>> toastr["success"]("New Student Added !")
>> }
>>   });
>>   event.preventDefault();
>> });
>> 
>>
>> > href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css;>
>> > href="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.css">
>> > src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js";>
>> > src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js";>
>> > src="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js">
>>
>>
>> VIEWS.PY
>>
>>
>> def update(request):
>> fname =  request.GET.get('fname')
>> lname =  request.GET.get('lname')
>> gender = request.GET.get('gender')
>> student.objects.create(firstname=fname,lastname=lname,gender=gender)
>> return JsonResponse ({'Success':'Success'})
>>
>>
>>
>>
>>
>>
>>
>>
>> On Fri, Sep 7, 2018 at 7:26 PM Anthony Petrillo <
>> anthony.petri...@gmail.com> wrote:
>>
>>> Here is an example. I've cut out some of the code, but I this will give
>>> you the general idea. Note, I move the data from the Day form in to the
>>> Classes table. But you could just save both sets of data to their
>>> respective tables if desired.
>>>
>>> in views.py
>>>
>>> class ClassesAddView(LoginRequiredMixin,View):
>>> classesFormClass = ClassesRegForm
>>> daysFormClass = DaysForm
>>> template_name = 'qing/classes.html'
>>>
>>> def get(self,request,role='NoRole'):
>>> classesForm = self.classesFormClass()
>>> context['form'] = classesForm
>>> daysForm = self.daysFormClass()
>>> context['daysform'] = daysForm
>>> return render(request,self.template_name, context)
>>>
>>> def post(self, request, *args, **kwargs):
>>> classesForm = self.classesFormClass(request.POST)
>>> daysForm = self.daysFormClass(request.POST)
>>> if classesForm.is_valid() and daysForm.is_valid():
>>> days = str(request.POST.getlist('days'))
>>> reference = request.POST['reference']
>>> classes = classesForm.save()
>>> classes = Classes.objects.get(reference=reference)
>>> classes.days = days
>>> classes.save()
>>> else:
>>> classesForm = self.classesFormClass(request.POST)
>>> context['form'] = classesForm
>>> daysForm = self.daysFormClass(request.POST)
>>> context['daysform'] = daysForm
>>> context['datavalid'] = False
>>> return render(request, self.template_name, context)
>>> return HttpResponseRedirect(reverse('classesadd',args=(role,)))
>>>
>>> in forms.py
>>>
>>> class ClassesForm(ModelForm):
>>> class Meta:
>>> model = Classes
>>> fields = ['reference','course','teachers',etc...]
>>>
>>> class DaysForm(forms.Form):
>>> OPTIONS = (
>>> ("Sunday", "Sunday"),
>>> ("Monday", "Monday"),
>>> ("Tuesday", "Tuesday"),
>>> ("Wednesday", "Wednesday"),
>>> ("Thursday", "Thursday"),
>>> ("Friday", "Friday"),
>>> ("Saturday", "Saturday"),
>>> )
>>> days = forms.MultipleChoiceField(widget=forms.CheckboxSelectMultiple,
>>>  choices=OPTIONS)
>>>
>>>
>>> On Friday, September 7, 2018 at 9:47:51 AM UTC-4, Akshay Gaur wrote:

 I think it would be easier to write out a custom form (without 

Re: Hi

2018-09-04 Thread Devender Kumar
There are few things to keep in mind while playing with images
1. media url in setting file
2. upload_to field in model
3 enctype="multipart/form-data" in form tag.

Enjoy
Dev

On Mon, Sep 3, 2018 at 10:44 PM Mohammad Aqib 
wrote:

> Add below line into your model.
>
> image = models.ImageField(upload_to='pathwheretoupload')
>
> On Mon, 3 Sep 2018, 10:41 pm Mikhailo Keda,  wrote:
>
>> Check the docs -
>> https://docs.djangoproject.com/en/2.1/ref/models/fields/#django.db.models.ImageField
>>>
>>> --
>> 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/91b5e833-2f6e-4eba-918e-ddbf6f7610e1%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/CAOh93nc1T0UpZojp%2BiU7JwGeTs-58JPK9JEEz3KPbv_QOoUfAQ%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/CALZ%3DbE%2BqKca_Mppudq21R_R74hmofmpFAzG2EWK-4EJ_yOUb0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can i modify the base_site.html Template?

2018-09-04 Thread Devender Kumar
Don't modify the base_site.html instead you should override the method or
fuctions which will be good practice

On Tue, Sep 4, 2018 at 11:50 AM victor jack  wrote:

> *Ok i see, you create an admin folder in your template folder then create
> a base_site.html and an index. html file , these file will contain your
> custom feature ,then when you runserver the new admin site will be rendered
> from there(admin ) folder. I hope this helps.*
> On Mon, Sep 3, 2018 at 7:58 PM  wrote:
>
>> Yes, that exactly
>>
>> --
>> 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/9eaec872-a629-4b70-994d-2b6d2b3c942c%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/CABkm6MXKVH-AXoSGwSW3RjMc-ywTBrqGink%3Dd%3D6pAYLY9G-2vw%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/CALZ%3DbEK-K7-jA_j%3DPm%3DbZk8f-MXh1rwMx05FLfUROJAOkprzAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trouble installing Django

2018-09-04 Thread Devender Kumar
If you wanna install across the system then just Use *root user *Or* sudo **pip
install **Django* . this is install the django in your system.
but Best practices is to use special env If you need any help installing
django with env reply me i will help in that.
Thanks enjoy
Dev

On Mon, Sep 3, 2018 at 11:55 PM Iga John Bosco  wrote:

> U have installed python 3 but ure django installation is pick a different
> version of python.
>
> Simple. My experience is Linux or Ubuntu based.
> First get the path to ure python3
> #Which python
> Or
> # python -c “from dilutions.sysconfig import get_get_python_lib; print
> get_python_li
>
> Then
>
> Do a pip install django specifying the version of python from the path
> generated by which python
>
> Pip install django -p /usr/bin/python3.7
>
> --
> 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/cb879507-5ffb-4adf-add8-5479978b37ed%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/CALZ%3DbE%2B4zA4CsP2mmwkACb6G6xNKnoWm3aw8%3DHi-Xah2Bi2m7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Problem: django url Admin/ is autmatically coverted to admin/

2018-08-25 Thread Devender Kumar
i have separate Admin app and using admin also but when I am accessing 
Admin/trips is accessed and Admin is not accessed

-- 
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/1cef27b1-650a-4be4-ae9f-82725efb92c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.