Re: url () to path()

2018-05-01 Thread Mike Morris
I'm not sure I understand the question, but here's my input: * You can use either url() or path() and achieve the same thing o However, I assume that the older url() is being deprecated, so you should use the newer path() if your version supports it * My cheat sheet is often the

Re: Simple file uploading app

2018-01-08 Thread Mike Morris
Though it is not a Drupal app, there is an excellent drop box type app in PHP called "Download Ticket Service"... simple, no frills, entirely cross-platform and open: http://www.thregr.org/~wavexx/software/dl/ I have no idea if it could be readily incorporated into your app, but just FYI

Re: Wich OS for develop?

2018-01-02 Thread Mike Morris
I've been linux only for many years - the last Windows I used was 2000 Professional so you can guess my recommendation on OS :-) As for IDE, I found "Eric 6" (https://eric-ide.python-projects.org/), which is pretty great, and free. Installation was bumpy since it has some pre-requisites,

Re: [OT] Is Trump planning to break the Internet?

2017-12-12 Thread Mike Morris
May I suggest: http://www.politicalforum.com/index.php Would *insist* help??? On 12/12/2017 05:14 AM, mccc wrote: I agree with Matthew's sentiment; also, I'd like to point out that the words you (Larry) posted are not your own but are literally coming off of foxnews.com

Re: Send email - user data for complete registration

2017-11-30 Thread Mike Morris
Earlier comment is correct that you shouldn't email a password. It's actually not necessary, or even possible. The stored version is a "one way hash" -- which is not reversible; there's no way to get the password from the hash -- and you (should) only have access to the hashed value.

Re: DJANGO app loose path from batch file

2017-11-06 Thread Mike Morris
On 11/06/2017 10:12 AM, Xristos Xristoou wrote: i am windows user My condolences. -- 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

Re: Django Upsert Transaction

2017-08-25 Thread Mike Morris
what's the point of doing this I assume it is "atomicity" -- making sure the update/insert pair is indivisible and that it is impossible to do one without the other. Depending on application, that could be catastrophic... On 08/25/2017 04:39 AM, Fendy Purnomo wrote: Hi, I'm

Re: Cannot access imported functions in django shell by pipeline command

2017-08-25 Thread Mike Morris
Wild guess: Different default directory. Try setting PYTHONPATH, or add "os.chdir('some/dir')" to top of script... On 08/24/2017 10:33 PM, Cheng-Hung Hsueh wrote: It is a python script `|tshi3.py|` : | 在此輸入代碼... |importcsv defli2ho2():print(csv)li2ho2()| | I copied this code and

Re: include template in a page

2017-08-25 Thread Mike Morris
I may be alone in this, but perhaps it will help piceofkayk2718 to know that I completely ignore his (?) posts because there is never any context On 08/23/2017 12:01 PM, pieceofkayk2...@gmail.com wrote: Do you have an action on your register form? Like -- You received this message

Re: Row based permissions: In DB or App? ... farewell pain

2017-08-07 Thread Mike Morris
I have no expertise in the field, but I've chosen not to let that stop me from making a suggestion :-) How about splitting the difference: 1. Assign & track permissions on the application side, then 2. Pass the permission level/parameters into a Stored Procedure in the database If the

Re: Math filter

2017-07-19 Thread Mike Morris
On 07/19/2017 06:20 PM, Vijay Khemlani wrote: I'm guessing he's using the mathfilters package https://github.com/dbrgn/django-mathfilters Arggghhh... my ignorance is showing! I hope I included an "I'm new here" disclaimer in the original post!!! Anyway, never heard of it, I'll take a look!

Re: Math filter

2017-07-19 Thread Mike Morris
Of course, if they're integers you could implement the "mul" as a loop of "add"s... clumsy, but would work. On 07/19/2017 03:39 PM, Mike Morris wrote: I am a newbie, but I think the answer is that you can't do that in the template - instead, calculate the number

Re: Math filter

2017-07-19 Thread Mike Morris
I am a newbie, but I think the answer is that you can't do that in the template - instead, calculate the number in the view and pass it to the template in the context dictionary. I think it's a design philosophy of Django Template Language to not support this as it muddies the border between

Re: Django beginner

2017-07-13 Thread Mike Morris
Start with the Tutorial on the djangoproject.com website. Finish it. Then, some other sources I like: * https://tutorial.djangogirls.org/en/ * http://www.tangowithdjango.com/ Google "django tutorials", there are lots On 07/13/2017 04:48 PM, Amir Pirmoradian wrote: Hey Guys, i'm a

Re: Django Teachers-Subject-Classroom Question

2017-07-10 Thread Mike Morris
This is more a DB Q than a Django Q, but googling ""schema" course teacher student classroom" yields a useful first hit: https://dba.stackexchange.com/questions/22064/database-schema-design-for-school-system On 07/10/2017 06:05 PM, Cristian Torzsa wrote: Hello, I what is the best database

Re: The best database for django

2017-07-10 Thread Mike Morris
PostgreSQL or Oracle is the most "robust" of supported DB. (Certainly an opinion, but I doubt its a very controversial one.) If you had Oracle, you'd probably be required to use it so I'm assuming you can choose... which means you want PostgreSQL (free and very, very nearly as good - better

Re: How to create a fixed-length binary field with a unique constraint?

2017-07-10 Thread Mike Morris
From your description (save a SHA-256 checksum), you do not need a binary field. Binaries are always of indeterminant length; they can hold photos, executables, sound files, etc. By definition, a SHA -256 is 256 bytes of ASCII. You probably want a CharField(length=256). On 07/10/2017