Re:

2019-11-28 Thread Integr@te System
Hi Kasper,

dont serious here is group to share knowledges.


On Fri, Nov 29, 2019, 02:52 Kasper Laudrup  wrote:

> Hi "Guy"
>
> On 28/11/2019 20.35, Integr@te System wrote:
> > Hi guy,
> >
> > also see df1 go to GC when conn.close()
> >
>
> I think you answered the wrong person here. I cannot see how this is
> related to my answer.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1dd68c80-3306-0130-09cf-6b24f191d365%40stacktrace.dk
> .
>

-- 
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/CAP5HUWoH5-FyqLmzO5-xRcj%2BNDazZjMDpdm1%3Dg57P%2B5ofZDB3g%40mail.gmail.com.


Re:

2019-11-28 Thread Kasper Laudrup

Hi "Guy"

On 28/11/2019 20.35, Integr@te System wrote:

Hi guy,

also see df1 go to GC when conn.close()



I think you answered the wrong person here. I cannot see how this is 
related to my answer.


Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1dd68c80-3306-0130-09cf-6b24f191d365%40stacktrace.dk.


Re:

2019-11-28 Thread Integr@te System
Hi guy,

also see df1 go to GC when conn.close()

On Fri, Nov 29, 2019, 02:31 Kasper Laudrup  wrote:

> Hi Rajat,
>
> On 28/11/2019 07.06, RAJAT MAAN wrote:
> >
> >
> > can someone help me where I am getting wrong? Unable to compare df1 ==
> df2.
> >
>
> I don't see how this is related to Django. You'll probably have a much
> better chance of getting help if you ask in the relevant forum/mailing
> list.
>
> Kind regards,
> Kasper Laudrup
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/0fc63964-a39b-0bf1-ebfb-aa45ac1e11b5%40stacktrace.dk
> .
>

-- 
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/CAP5HUWo4AyRQRcUaTzxkgdGYD8Nn1p9L2zOVxRGQYWj%2BdwUjxA%40mail.gmail.com.


Re:

2019-11-28 Thread Kasper Laudrup

Hi Rajat,

On 28/11/2019 07.06, RAJAT MAAN wrote:



can someone help me where I am getting wrong? Unable to compare df1 == df2.



I don't see how this is related to Django. You'll probably have a much 
better chance of getting help if you ask in the relevant forum/mailing list.


Kind regards,
Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0fc63964-a39b-0bf1-ebfb-aa45ac1e11b5%40stacktrace.dk.


Re: Monitoring Production Cookiecutter-Django

2019-11-28 Thread Integr@te System
Promethus:

https://hub.docker.com/r/prom/prometheus/

On Thu, Nov 28, 2019, 20:40 Yoo  wrote:

> I’m using cookiecutter-django and Docker for production, and I’m looking
> for some kind of monitoring package that comes with a GUI. My website is
> heavy on memory for calculations, so I’m testing it with locust.io. I
> want to be able to monitor a bunch of things such as firewall for SIEM and
> simple network monitoring and other things like memory allocation, caches,
> and db size.
>
> I took a look at datadog but am afraid I can’t actually monitor it once I
> send the site into production (using docker-compose -f production.yml up -d
> for background deployment).
>
> Any other packages? Maybe a package that integrates with Docker so I can
> also run it via compose? Or maybe something more network/remote based?
>
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1e09cf01-ecf2-481a-b97c-94bee8147bda%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/CAP5HUWpdx4C5UdJSFuxD7K9LAq%3D0PqCs_e7BHSON49XXjkohDQ%40mail.gmail.com.


Re: Choosing MySQL or PostGres on Heroku

2019-11-28 Thread Tim Johnson


On 11/27/19 6:53 PM, Leon Vaks wrote:

Hello Tim,

I was given the same advice to convert to PostgreSQL because 
PostgreSQL is Horizontally scalable.

I did some research:
Horizontal scaling means that you scale by adding more machines into 
your pool of resources whereas Vertical scaling means that you scale 
by adding more power (CPU, RAM) to an existing machine.

MySQL has many different storage engines:
https://dev.mysql.com/doc/refman/8.0/en/storage-engines.html 

The most popular storage engine among developers is InnoDB. For MySQL 
version 8, it can go up to 64 Terabytes per server.
However, storage engine - ndb allows unlimited horizontal scaling by 
adding nodes. Ndb stands for network db and used by number of telcos 
and gaming publishers. Ndb is super fast because it is in memory 
database (similar to SAP Hana); however, it requires more knowledge to 
setup and configure then Innodb storage engine. Innodb storage engine 
is more popular among development teams because it is more simple to 
configure and administer.
Both engines can handle transactions. In addition, both engines can 
work with SQL data as well as NoSQL data i.e. you do not need to add 
additional databases like Mongodb. For Big data, using Hadoop and 
MySQL, use Hadoop Applier. MySQL team developedAnalytical Engine which 
can do data analytics in the cloud; however, I am not sure if this 
service will be officially available in this coming release.


I hope this helps,
Happy Holiday to Everyone.
Leon

On Wed, Nov 27, 2019 at 6:34 PM Tim Johnson > wrote:


Using python 3.7.2, Django 2.1.5 on Linux development workstation
with
deployment to Heroku.

I retired several ago, primarily coding in python and mostly
working in
legacy CGI systems with MySQL backends and still use mysql on my
workstation.

I am now essentially a hobbyist who wishes to use a django website to
publish articles, memoirs and essays.

Some have urged me to convert to PostGresql as it is "baked into"
heroku. However, my comfort level is with mysql.

Given my situation I'd welcome any reason why I should convert to
postgresgl. I am not interested in stirring up controversy. Should
there
be a pressing reason to convert to PG I'd sooner do it now than when
I've a couple of hundred articles published.

Any insights would be appreciated.


Thank you Leon.

Great analysis!


--
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/3245d9a3-b09e-a6fa-87f7-3c01fd95e319%40akwebsoft.com.


Re:

2019-11-28 Thread Integr@te System
Hi man,

plz show err msg.

On Thu, Nov 28, 2019, 18:08 RAJAT MAAN  wrote:

>
>
> can someone help me where I am getting wrong? Unable to compare df1 == df2.
>
>
> import mysql.connector as mysql
> import socket
> import sys
>
> def server_program():
> HOST = '192.168.0.115'
> PORT = 
>
> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
>
> print('socket created')
>
> try:
> s.bind((HOST, PORT))
> except socket.error as err:
> print('Bind Failed, Error Code: ' + str(err[0]) + ', Message: ' +
> err[1])
> sys.exit()
>
> print('Socket Bind Success!')
>
> s.listen(10)
> print ('Socket is now listening')
>
>
> while 1:
> conn, addr = s.accept()
> print ('Connect with ' + addr[0] + ':' + str(addr[1]))
> df1 = conn.recv(1024).decode()
> print(df1)
> break
> conn.close()
> s.close()
>
> mydb=mysql.connect(
> user = 'rajat',
> passwd = 'rajat',
> host = 'localhost',
> database = 'myforum'
> )
>
> mycursor=mydb.cursor()
> mycursor.execute("SELECT * FROM form_simpleform WHERE id=1")
>
> df2=mycursor.fetchone()
> print(df2)
>
> if df1 == df2:
> print('yes Data Exists')
> else:
> print('No Data')
>
> if __name__ == '__main__':
> server_program()
>
> --
> 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/4ef1565c-9f61-4da3-beb2-cb4176556ae6%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/CAP5HUWo9UwgrEugAqgzcNzC_y4XkbHYWcm2%3D%3D713pCRG%3DXMcHQ%40mail.gmail.com.


Re: Internship

2019-11-28 Thread Shubham Mishra
sir , I want to join internship program  and I'm in delhi , so when I can
meet you . Please reply me as soon as possible .

On Sat, Nov 23, 2019, 13:26 Anirudh Jain  wrote:

> If anyone, based out of Delhi/NCR, is looking for an internship as a
> Django developer, message me on telegram @i_m_root
>
> You should have fair knowledge about graphql and its implementation in
> django.
>
> Internship will be mostly remotely, might need to meet at some weekends.
>
> On Sat, 23 Nov 2019, 10:31 Nitin Kalmaste,  wrote:
>
>> It looks like your server is unable to create file to inside your
>> var/log/ folder.
>>
>> What server are you using?
>> Is it apache?
>> Solution:
>> 1. check that lockon_debug.log is file created in /var/log/ folder
>> 2. If file exists then check for file permission.
>> 3. Check permission for log folder if and change its permissions
>> Apache uses daemon as user.
>> sudo chown -R your_user:daemon /path/to/the/log/folder and sudo chmod -R
>> g+w /path/to/the/log/folder
>> I hope this helps.
>> And let me know that I got this internship or not.
>> 
>>
>> On Sat 23 Nov, 2019, 3:51 AM Josiah Umezurike, <
>> pcintegral.pcintegr...@gmail.com> wrote:
>>
>>>  File "/usr/lib64/python3.6/logging/config.py", line 565, in configure
>>> handler = self.configure_handler(handlers[name])
>>>   File "/usr/lib64/python3.6/logging/config.py", line 738, in
>>> configure_handler
>>> result = factory(**kwargs)
>>>   File "/usr/lib64/python3.6/logging/__init__.py", line 1032, in __init__
>>> StreamHandler.__init__(self, self._open())
>>>   File "/usr/lib64/python3.6/logging/__init__.py", line 1061, in _open
>>> return open(self.baseFilename, self.mode, encoding=self.encoding)
>>> PermissionError: [Errno 13] Permission denied:
>>> '/var/log/lokdon_debug.log'
>>>
>>> During handling of the above exception, another exception occurred:
>>>
>>> Traceback (most recent call last):
>>>   File "manage.py", line 22, in 
>>> execute_from_command_line(sys.argv)
>>>   File
>>> "/home/centos/APIS/apis_env/lib64/python3.6/site-packages/django/core/management/__init__.py",
>>> line 364, in execute_from_command_line
>>> utility.execute()
>>>   File
>>> "/home/centos/APIS/apis_env/lib64/python3.6/site-packages/django/core/management/__init__.py",
>>> line 338, in execute
>>> django.setup()
>>>   File
>>> "/home/centos/APIS/apis_env/lib64/python3.6/site-packages/django/__init__.py",
>>> line 22, in setup
>>> configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
>>>   File
>>> "/home/centos/APIS/apis_env/lib64/python3.6/site-packages/django/utils/log.py",
>>> line 75, in configure_logging
>>> logging_config_func(logging_settings)
>>>   File "/usr/lib64/python3.6/logging/config.py", line 802, in dictConfig
>>> dictConfigClass(config).configure()
>>>   File "/usr/lib64/python3.6/logging/config.py", line 573, in configure
>>> '%r: %s' % (name, e))
>>> ValueError: Unable to configure handler 'file': [Errno 13] Permission
>>> denied: '/var/log/lokdon_debug.log'
>>>
>>>
>>> 
>>>
>>> I  got the above when I ran my command:
>>>
>>> python manage.py check
>>>
>>> If you can solve this the internship is your.
>>>
>>> Initially and currently I have internal error on the web response to GET.
>>>
>>> See below in attachment.
>>>
>>> [image: image.png]
>>>
>>> On Fri, Nov 22, 2019 at 5:02 PM mohamed khaled <
>>> mohamed.khaled33...@gmail.com> wrote:
>>>
 I also I would like for an internship any help guys or opensource
 projects ?

 On Friday, 22 November 2019 13:33:26 UTC+2, Scyil sharma wrote:
>
> I am sahil sharma, a student of btech 3rd year and I'm seeking for an
> internship in Winter vacation. I would like to be work as a backend
> developer.

 --
 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/27da745d-16eb-4ffa-9bbe-7636ee0560b8%40googlegroups.com
 
 .

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CA%2BGDpiQiqqEP2a0%3DHRjzxxUU%3DbPOUMnGfHXA5RzU4sX2ASYKLQ%40mail.gmail.com
>>> 

Re: Internship

2019-11-28 Thread Shubham Mishra
sir , I want to join the internship program . Recently I have done my
Python and Django course .
Revert me as soon as possible.

On Sat, Nov 23, 2019, 16:37 Atul Anand  wrote:

> Forward the resume.
>
> On Fri, Nov 22, 2019, 5:04 PM Scyil sharma 
> wrote:
>
>> I am sahil sharma, a student of btech 3rd year and I'm seeking for an
>> internship in Winter vacation. I would like to be work as a backend
>> developer.
>>
>> --
>> 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/781ac56c-d22b-465e-9345-f629e077f2f6%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/CAKHpVdRm-2%3DWTBKrVjxGxK6xywtCLGNgAk_%3DYGxTyPfXSM6hnA%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/CAGHpP%3DXeBhuKCbRJToKy%3D7B_6oZWM2LunWXJ-1C7j6N0kNu6nw%40mail.gmail.com.


Re: Internship

2019-11-28 Thread Shubham Mishra
I also want to join internship  and I'm OK to work at romete location

On Sat, Nov 23, 2019, 02:14 Devender Kumar  wrote:

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

-- 
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/CAGHpP%3DVe_G-LnibFMhx-e8UX%3DiH9%3DHLfoR3zza9G94uwj1kMzQ%40mail.gmail.com.


Monitoring Production Cookiecutter-Django

2019-11-28 Thread Yoo
I’m using cookiecutter-django and Docker for production, and I’m looking for 
some kind of monitoring package that comes with a GUI. My website is heavy on 
memory for calculations, so I’m testing it with locust.io. I want to be able to 
monitor a bunch of things such as firewall for SIEM and simple network 
monitoring and other things like memory allocation, caches, and db size.

I took a look at datadog but am afraid I can’t actually monitor it once I send 
the site into production (using docker-compose -f production.yml up -d for 
background deployment). 

Any other packages? Maybe a package that integrates with Docker so I can also 
run it via compose? Or maybe something more network/remote based?

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1e09cf01-ecf2-481a-b97c-94bee8147bda%40googlegroups.com.


Re:

2019-11-28 Thread Saswat Ray
Without looking your code and folder structure its hard to tell.

*Thanks*,
*Saswat*




On Thu, Nov 28, 2019 at 5:59 PM vaneet bawa  wrote:

> First of all thanks Saswat for the response but i have already done this
> thing on my views.py but my html file is not displaying anything rather it
> throws an exception templatedoesnot exit
>
> I hope you are geeting what i am saying
>
> Best Regards
> Vaneet
>
>
>
> On 28-Nov-2019, at 5:42 PM, Saswat Ray  wrote:
>
> 
> Django app expects a response from your  view file to render and show to
> user.You need add a template to render. like in views.py
> return render(request, "xyz.html")
>
> https://docs.djangoproject.com/en/2.2/topics/http/shortcuts/
>
>
> render
> *Thanks*,
> *Saswat*
>
>
>
>
>
> On Thu, Nov 28, 2019 at 5:35 PM vaneet bawa 
> wrote:
>
>> Exception Type: TemplateDoesNotExist
>>
>> Could someone please tell me that i m getting this error how I can handle
>> it...
>>
>> what i m trying to do is i have created a input field and in that field i
>> m providing a message and then i want that on button click that message
>> should be displayed on my console
>>
>> Best Regards
>> Vaneet
>>
>> --
>> 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/CAKubXnzO%3DQizgnNaHWZoYwxXWMjCbj-bzkbxmOzcV6WZsyO_Ow%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/CAEhPkLEJrcfCXsj3C-i058ABE0_1i7Hd%3DCBbS84A9DtqbYa3aQ%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/205D5E6D-03B1-48A8-BE44-1DEDE11BFE8A%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/CAEhPkLGRUow9DiNU4qnmxgZqAvmbp__xXWNOZto5u-8BnABWkQ%40mail.gmail.com.


Re:

2019-11-28 Thread Integr@te System
Hi man,

where ur template coming from!? to display content you want to.

On Thu, Nov 28, 2019, 19:28 vaneet bawa  wrote:

> First of all thanks Saswat for the response but i have already done this
> thing on my views.py but my html file is not displaying anything rather it
> throws an exception templatedoesnot exit
>
> I hope you are geeting what i am saying
>
> Best Regards
> Vaneet
>
>
>
> On 28-Nov-2019, at 5:42 PM, Saswat Ray  wrote:
>
> 
> Django app expects a response from your  view file to render and show to
> user.You need add a template to render. like in views.py
> return render(request, "xyz.html")
>
> https://docs.djangoproject.com/en/2.2/topics/http/shortcuts/
>
>
> render
> *Thanks*,
> *Saswat*
>
>
>
>
>
> On Thu, Nov 28, 2019 at 5:35 PM vaneet bawa 
> wrote:
>
>> Exception Type: TemplateDoesNotExist
>>
>> Could someone please tell me that i m getting this error how I can handle
>> it...
>>
>> what i m trying to do is i have created a input field and in that field i
>> m providing a message and then i want that on button click that message
>> should be displayed on my console
>>
>> Best Regards
>> Vaneet
>>
>> --
>> 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/CAKubXnzO%3DQizgnNaHWZoYwxXWMjCbj-bzkbxmOzcV6WZsyO_Ow%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/CAEhPkLEJrcfCXsj3C-i058ABE0_1i7Hd%3DCBbS84A9DtqbYa3aQ%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/205D5E6D-03B1-48A8-BE44-1DEDE11BFE8A%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/CAP5HUWrtksGXqCwX5-hgwS7gJHzWxk52KoFBbsoxY3Gud%3DYxPg%40mail.gmail.com.


Re:

2019-11-28 Thread vaneet bawa
First of all thanks Saswat for the response but i have already done this thing 
on my views.py but my html file is not displaying anything rather it throws an 
exception templatedoesnot exit

I hope you are geeting what i am saying 

Best Regards
Vaneet



> On 28-Nov-2019, at 5:42 PM, Saswat Ray  wrote:
> 
> 
> Django app expects a response from your  view file to render and show to 
> user.You need add a template to render. like in views.py
> return render(request, "xyz.html")
> 
> https://docs.djangoproject.com/en/2.2/topics/http/shortcuts/
> 
> 
> render
> Thanks,
> Saswat
> 
> 
> 
> 
> 
>> On Thu, Nov 28, 2019 at 5:35 PM vaneet bawa  wrote:
>> Exception Type: TemplateDoesNotExist 
>> 
>> Could someone please tell me that i m getting this error how I can handle 
>> it...
>> 
>> what i m trying to do is i have created a input field and in that field i m 
>> providing a message and then i want that on button click that message should 
>> be displayed on my console
>> 
>> Best Regards
>> Vaneet
>> -- 
>> 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/CAKubXnzO%3DQizgnNaHWZoYwxXWMjCbj-bzkbxmOzcV6WZsyO_Ow%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/CAEhPkLEJrcfCXsj3C-i058ABE0_1i7Hd%3DCBbS84A9DtqbYa3aQ%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/205D5E6D-03B1-48A8-BE44-1DEDE11BFE8A%40gmail.com.


Re:

2019-11-28 Thread Saswat Ray
Django app expects a response from your  view file to render and show to
user.You need add a template to render. like in views.py
return render(request, "xyz.html")

https://docs.djangoproject.com/en/2.2/topics/http/shortcuts/


render
*Thanks*,
*Saswat*





On Thu, Nov 28, 2019 at 5:35 PM vaneet bawa  wrote:

> Exception Type: TemplateDoesNotExist
>
> Could someone please tell me that i m getting this error how I can handle
> it...
>
> what i m trying to do is i have created a input field and in that field i
> m providing a message and then i want that on button click that message
> should be displayed on my console
>
> Best Regards
> Vaneet
>
> --
> 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/CAKubXnzO%3DQizgnNaHWZoYwxXWMjCbj-bzkbxmOzcV6WZsyO_Ow%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/CAEhPkLEJrcfCXsj3C-i058ABE0_1i7Hd%3DCBbS84A9DtqbYa3aQ%40mail.gmail.com.


[no subject]

2019-11-28 Thread vaneet bawa
Exception Type: TemplateDoesNotExist

Could someone please tell me that i m getting this error how I can handle
it...

what i m trying to do is i have created a input field and in that field i m
providing a message and then i want that on button click that message
should be displayed on my console

Best Regards
Vaneet

-- 
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/CAKubXnzO%3DQizgnNaHWZoYwxXWMjCbj-bzkbxmOzcV6WZsyO_Ow%40mail.gmail.com.


Django retry query when error.

2019-11-28 Thread Mateusz MTB90
Hi it is possible to catch e.g connection error and retry query in Django 
2.2? 

-- 
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/94948c17-0542-4f36-b9d4-a842b31107fd%40googlegroups.com.


Retrying query when connection error

2019-11-28 Thread Mateusz MTB90
Hi It is possible to catch connection error in Django and retry query?  
How this can be done?

Scenario:
query -> connection error occurs -> catch connection error -> create new 
connection -> retry query

-- 
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/1f251660-f6a3-44a8-984a-c4ec9d4db2c6%40googlegroups.com.


Re: Choosing MySQL or PostGres on Heroku

2019-11-28 Thread Leon Vaks
Hello Tim,

I was given the same advice to convert to PostgreSQL because PostgreSQL is
Horizontally scalable.
I did some research:
Horizontal scaling means that you scale by adding more machines into your
pool of resources whereas Vertical scaling means that you scale by adding
more power (CPU, RAM) to an existing machine.
MySQL has many different storage engines:
https://dev.mysql.com/doc/refman/8.0/en/storage-engines.html

The most popular storage engine among developers is InnoDB. For MySQL
version 8, it can go up to 64 Terabytes per server.
However, storage engine - ndb allows unlimited horizontal scaling by adding
nodes. Ndb stands for network db and used by number of telcos and gaming
publishers. Ndb is super fast because it is in memory database (similar to
SAP Hana); however, it requires more knowledge to setup and configure then
Innodb storage engine. Innodb storage engine is more popular among
development teams because it is more simple to configure and administer.
Both engines can handle transactions. In addition, both engines can work
with SQL data as well as NoSQL data i.e. you do not need to add additional
databases like Mongodb. For Big data, using Hadoop and MySQL, use Hadoop
Applier. MySQL team developed Analytical Engine which can do data analytics
in the cloud; however, I am not sure if this service will be officially
available in this coming release.

I hope this helps,
Happy Holiday to Everyone.
Leon


On Wed, Nov 27, 2019 at 6:34 PM Tim Johnson  wrote:

> Using python 3.7.2, Django 2.1.5 on Linux development workstation with
> deployment to Heroku.
>
> I retired several ago, primarily coding in python and mostly working in
> legacy CGI systems with MySQL backends and still use mysql on my
> workstation.
>
> I am now essentially a hobbyist who wishes to use a django website to
> publish articles, memoirs and essays.
>
> Some have urged me to convert to PostGresql as it is "baked into"
> heroku. However, my comfort level is with mysql.
>
> Given my situation I'd welcome any reason why I should convert to
> postgresgl. I am not interested in stirring up controversy. Should there
> be a pressing reason to convert to PG I'd sooner do it now than when
> I've a couple of hundred articles published.
>
> Any insights would be appreciated.
>
> 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/6a3619c5-6c72-0c80-49c4-de0926a5041f%40akwebsoft.com
> .
>


-- 
Warmest Regards,
Leon.

-- 
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/CACV5%2B_WzGovE%3DmhXVN%2B%2BZwGsOOzV%3DqY%2B9jdxnLJeQQxZWfEpPQ%40mail.gmail.com.


Re: basic_app not provide the User how to reslove ?

2019-11-28 Thread nikitha malkapuram
In models.py in onetoone field remove User from quotes. It is now 'User'
make it to User and try once.

On Thu 28 Nov, 2019, 9:41 AM MEGA NATHAN,  wrote:

> Hi.
>
>
>
> PS C:\Users\Meghanathan\Desktop\django\django_levelfive\learning_users>
> python manage.py migrate basic_app
> SystemCheckError: System check identified some issues:
>
> ERRORS:
> basic_app.UserProfileInfo.User: (fields.E300) Field defines a relation
> with model 'User', which is either not installed, or is abstract.
> basic_app.UserProfileInfo.User: (fields.E307) The field
> basic_app.UserProfileInfo.User was declared with a lazy reference to
> 'basic_app.user', but app 'basic_app' doesn't provide model 'user'.
> PS C:\Users\Meghanathan\Desktop\django\django_levelfive\learning_users>
>
> And i have attached the snipscreen blow .
>
> Regards
> Meganathan G,
>
> --
> 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/164892b0-aaba-4b55-b864-3cdbce1c0f20%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/CAFzCJgntsSoASMLzCGmG%3D6Zhqtd1f%2BNf95oOvtE1%2BQWq6BJwdQ%40mail.gmail.com.


Re: Internship

2019-11-28 Thread Dvs Khamele
Hello We do interns for our firm Pythonmate,
Interested candidates please do share resumes at pythonmatedivy...@gmail.com
Many Thanks,
Divyesh Khamele

On Thu, 28 Nov 2019 at 08:37, Aniket Jain  wrote:

> Yes I already have an experience with remote working
>
> On Thu, 28 Nov, 2019, 2:17 AM John McClain, 
> wrote:
>
>> what experience with django do you have
>> Do you speak good English
>>
>> Do you have criteria for your internship?
>>
>> On Wed, 27 Nov 2019 at 17:25, Aniket Jain 
>> wrote:
>>
>>> Ya I am
>>>
>>> On Wed, 27 Nov, 2019, 10:36 PM John McClain, 
>>> wrote:
>>>
 are you interested in working remotely as an intern?

 On Wed, 27 Nov 2019 at 17:00, Aniket Jain 
 wrote:

> Hello everyone,
> I am Aniket Mehta, of 3rd year currently pursuing my BTech from Jain
> deemed-to-be University Bangalore, and I am searching for the winter
> internship as full stack or backend developer in Bangalore.
> Please let me know.
>
> Regards
> Aniket mehta
>
> --
> 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/CADV%2BovJmuPeaCr3bcOiy4-EOyPhCb%2BMErpwZ-0kJTPE4SYvOew%40mail.gmail.com
> 
> .
>


 --
 John McClain

 Cell: 085-1977-823
 Skype: jmcclain0129
 Email: jmcclain0...@gmail.com

 --
 You received this message because you are subscribed to the Google
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to django-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/django-users/CAN-hv_pmz12g%2BYwRJsLqw7PnOwkTFMs_D8E20vgQ6ipjCjOQcw%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/CADV%2BovKZFwt1wSztQmYXuzwdaEDR4P-Nux7tqd5s3qqp4ejGrg%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> John McClain
>>
>> Cell: 085-1977-823
>> Skype: jmcclain0129
>> Email: jmcclain0...@gmail.com
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAN-hv_oVpg6khzx14N061SYfGh%2BV7ciy-pGYhahAf6oMi9g%2B2w%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/CADV%2BovJyb3XgGL%2BLVu9-3LU9rM5DUZU6e0qHphgq0KGkdEQjCw%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/CAH9mneXuHH3ajnYVZom%3Dk8fyXDFpZ7rf8Gr04E6gsWCaN%3DrG%2BA%40mail.gmail.com.


Re:

2019-11-28 Thread RAJAT MAAN


can someone help me where I am getting wrong? Unable to compare df1 == df2.


import mysql.connector as mysql
import socket
import sys  

def server_program():
HOST = '192.168.0.115' 
PORT = 
 
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

print('socket created')

try:
s.bind((HOST, PORT))
except socket.error as err:
print('Bind Failed, Error Code: ' + str(err[0]) + ', Message: ' + 
err[1])
sys.exit()
 
print('Socket Bind Success!')
 
s.listen(10)
print ('Socket is now listening')
 
 
while 1:
conn, addr = s.accept()
print ('Connect with ' + addr[0] + ':' + str(addr[1]))
df1 = conn.recv(1024).decode()
print(df1)
break
conn.close()
s.close()

mydb=mysql.connect(
user = 'rajat',
passwd = 'rajat',
host = 'localhost',
database = 'myforum'
)

mycursor=mydb.cursor()
mycursor.execute("SELECT * FROM form_simpleform WHERE id=1")

df2=mycursor.fetchone()
print(df2)

if df1 == df2:
print('yes Data Exists')
else:
print('No Data')

if __name__ == '__main__':
server_program() 

-- 
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/4ef1565c-9f61-4da3-beb2-cb4176556ae6%40googlegroups.com.


Re: basic_app not provide the User how to reslove ?

2019-11-28 Thread Forrest Hartley
You don't have a model called "user".

On Wed, Nov 27, 2019 at 11:11 PM MEGA NATHAN 
wrote:

> Hi.
>
>
>
> PS C:\Users\Meghanathan\Desktop\django\django_levelfive\learning_users>
> python manage.py migrate basic_app
> SystemCheckError: System check identified some issues:
>
> ERRORS:
> basic_app.UserProfileInfo.User: (fields.E300) Field defines a relation
> with model 'User', which is either not installed, or is abstract.
> basic_app.UserProfileInfo.User: (fields.E307) The field
> basic_app.UserProfileInfo.User was declared with a lazy reference to
> 'basic_app.user', but app 'basic_app' doesn't provide model 'user'.
> PS C:\Users\Meghanathan\Desktop\django\django_levelfive\learning_users>
>
> And i have attached the snipscreen blow .
>
> Regards
> Meganathan G,
>
> --
> 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/164892b0-aaba-4b55-b864-3cdbce1c0f20%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/CABd3-ADaY7u2a_TbaV%3DsDjff_1-jm8iXT896fHUa8uJ6OjZajg%40mail.gmail.com.


Re: basic_app not provide the User how to reslove ?

2019-11-28 Thread Vignesh Kumar
machii nee return panrathu andha model la iruka field tha return
pananum.. *return
self.User*

On Thu, Nov 28, 2019 at 9:41 AM MEGA NATHAN 
wrote:

> Hi.
>
>
>
> PS C:\Users\Meghanathan\Desktop\django\django_levelfive\learning_users>
> python manage.py migrate basic_app
> SystemCheckError: System check identified some issues:
>
> ERRORS:
> basic_app.UserProfileInfo.User: (fields.E300) Field defines a relation
> with model 'User', which is either not installed, or is abstract.
> basic_app.UserProfileInfo.User: (fields.E307) The field
> basic_app.UserProfileInfo.User was declared with a lazy reference to
> 'basic_app.user', but app 'basic_app' doesn't provide model 'user'.
> PS C:\Users\Meghanathan\Desktop\django\django_levelfive\learning_users>
>
> And i have attached the snipscreen blow .
>
> Regards
> Meganathan G,
>
> --
> 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/164892b0-aaba-4b55-b864-3cdbce1c0f20%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/CAGU70mtkLFPe4cVm7KbfQe1GG31j9%2Byewn-h2F9hdeOpHDshOQ%40mail.gmail.com.