Re: Challenge teaching Django to beginners: urls.py

2016-09-13 Thread Ares Ou
mentioned, we might better research a bit first. Understanding how third-party libraries implemented this kind of simple URL could be very helpful. Thanks. Best regards, Ares Ou *Software Engineer / Full-Stack Python Developer* *Blog:* http://aresou.net | *Github:* https://github.com/aresowj

Re: Challenge teaching Django to beginners: urls.py

2016-09-13 Thread Ares Ou
into Regex and store it into the map. Cheers, Best regards, Ares Ou *Software Engineer / Full-Stack Python Developer* *Blog:* http://aresou.net | *Github:* https://github.com/aresowj *Stack Overflow:* http://stackoverflow.com/users/5183727/ares-ou Ares Ou On Mon, Sep 12, 2016 at 11:37 PM, Anthony

Re: Challenge teaching Django to beginners: urls.py

2016-09-13 Thread Ares Ou
in different apps by using such simple method. Looking forward to more ideas! Best regards, Ares Ou *Software Engineer / Full-Stack Python Developer | **Phone:* (510) 328 - 5968 *Blog:* http://aresou.net | *Github:* https://github.com/aresowj | *Stack Overflow:* http://stackoverflow.com/users

Re: Add past/present/future validations for Date and DateTime types

2016-08-30 Thread Ares Ou
Actually I remember you can use field__lt to compare with a datetime object (e.g. datetime.now()) and validate it. Best regards, Ares Ou *Software Engineer / Full-Stack Python Developer | **Phone:* (510) 328 - 5968 *Blog:* http://aresou.net | *Github:* https://github.com/aresowj

Re: Django default PK type setting

2016-08-30 Thread Ares Ou
to be integrated into the official code. See Automation Primary Key Fields: https://docs.djangoproject.com/en/1.10/topics/db/models/#automatic-primary-key-fields Best regards, Ares Ou *Software Engineer / Full-Stack Python Developer | **Phone:* (510) 328 - 5968 *Blog:* http://aresou.net