Re: Installing django on red hat linux box

2014-10-23 Thread Thomas G Lockhart
On Oct 22, 2014, at 9:57 AM, robert brook wrote: > I have python 3.3. If you are running RHEL6, python 2.6 is supported through yum etc. You will need to do your own installation if you want a more recent version, but afaik you will not need to. 2.6 is sufficient. If it were me, "good enough"

Re: Database "postgres" does not exist error when running test command

2014-11-15 Thread Thomas G Lockhart
On Nov 15, 2014, at 6:02 AM, Daniel Grace wrote: > On Saturday, 15 November 2014 00:58:32 UTC, Aliane Abdelouahab wrote: > how about this > http://stackoverflow.com/a/19426770/861487 > > > That link, what is that about? > > Anyway, I manually created a database called "postgres" and the error

Re: I plan to have lots of data tables with similar structure. How do you recommend I model them?

2018-01-11 Thread Thomas G Lockhart
You may want to have several tables linked by foreign keys. A Census Tract table, a County table, a State table, etc. That reduces the amount of duplicate data and the chances for inconsistent entries. The downside is a bit more work on the part of the computer to do lookups, but particularly i

Re: How to make https work fine under django server?

2015-09-04 Thread Thomas G Lockhart
On Sep 4, 2015, at 11:41 AM, vincent.j@gmail.com wrote: > Hi, everyone. I'm a new user of Django. > I have established an app and run a server on Django. > However, when I open a URL of my app(e.g. https://example.com/.../), it > always shows the following error on the command line. > > You

Re: Weighing Scale & TCP IP connectivity

2018-07-12 Thread Thomas G Lockhart
You can use Django REST framework to get data into Django and a separate Python (or other) program to feed it in. Have the Python program connect to the scale and use whatever mechanisms are required there to get your data. If the scale has a browser interface, then use urllib to read a page and