Re: Virtual Groups for learning Django

2018-11-05 Thread bill . torcaso . oxfam
I hear good things about Django Girls (https://djangogirls.org/). On Sunday, November 4, 2018 at 8:52:38 AM UTC-5, Expo Tor wrote: > > Anyone can recommend any online virtual groups for Django? I mean it > should be sth more than online tutorials - where users can come in > real-time with

Re: Where to create a Django project

2018-11-02 Thread bill . torcaso . oxfam
Hope this helps When working on an AWS Elastic Beanstalk instance, you can log into the system using Secure Shell (SSH), with a key pair. For EBeanstalk, that key pair was either created or selected from existing keys at the time that you created the server. >From there you have a

Re: Running a custom code after the server is up

2018-11-02 Thread bill . torcaso . oxfam
If I understand your situation, you want to run a management command fairly promptly after Django-server reboot, and not again for the duration of the server's uptime. Cron is useful and convenient for repeated tasks. And it can be made to handle once-and-done tasks, if you keep a bit of

Re: Creating seperate unique ids within the same table

2018-10-22 Thread bill . torcaso . oxfam
Joel said this was a requirement: One of the important criteria I had was that these IDs should be easily memorable. Unfortunately UUIDs are not memorable, being too long to remember. A primary key that appears in a URL is just an implementation detail - the implementation could change, and

Re: Creating seperate unique ids within the same table

2018-10-22 Thread bill . torcaso . oxfam
Joel, I completely agree that UUIDs are not memorable. I still think you would be well-served to make a UUID the basis for uniquely defining a person. If you want to further add a short name, you could make an object class that has a UUID and, say, an 8-digit number. If you assert that the

Re: Creating seperate unique ids within the same table

2018-10-22 Thread bill . torcaso . oxfam
Hello all, The previous discussion shows a method that will work. but I think it has disadvantages, and I want to suggest another approach. The disadvantage of using a primary key from a table, any table, is that you are committing to that table and that primary key for all eternity. this

Re: Update django 1.8 project to 2.0 lts

2018-09-24 Thread Bill-Torcaso-Oxfam
I strongly recommend this approach: My experience is that the best thing to do is to do minor upgrades - 1.8 -> 1.9.x -> 1.10.x -> 1.11.x (where x is the last patched version of each minor version). Further, at the completion of one Django version, I recommend saving a snapshot of your

Re: Running django tests with postgres

2018-09-18 Thread Bill-Torcaso-Oxfam
I two comments, and as always Your Milage May Vary. - I wonder if you have the right indexes on your Postgres database? The previous people report much faster completion times for test that use Postgres as the database. Perhaps your domain is just hard (and you description makes

Re: Different results of running pure SQL query from Django and from PGAdmin

2018-09-11 Thread Bill-Torcaso-Oxfam
I'd be interested to see a printout of 'columns' and 'cursor.description'. One explanation would be that your for-loop is not actually accessing the data that you think it is, or that your query is not actually fetching the data that you think it is. No criticism of your query implied -