Re: Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-02-04 Thread ludovic coues
My current job is working on the django backend of a SPA/JS. Truth is, our django does not serve any JS file. The whole SPA is a bunch of static files, served by nginx. Every and only request with a path starting with /api are routed to Django. On Tue, Feb 5, 2019, 04:16 Curtis Maloney On 2/5/19

Re: Help needed on Django-Guardian.

2019-02-04 Thread Carlton Gibson
Excellent. The place to follow up is on the Guardian repo. (Make PRs that close issues!) I’m sure from there you can work out with Adam the best way forward (be that as a collaboration or Jazzband or ...). Here I’m just passing on the need for help. Thanks for the positive response all!

Re: Help needed on Django-Guardian.

2019-02-04 Thread Asif Saif Uddin
Hi Carlton, If needed I could be a collaborator of that. I get some monthly payment for my open source python works :) On Monday, February 4, 2019 at 3:01:38 AM UTC+6, Carlton Gibson wrote: > > Hi all. > > Adam Dobrawy who runs Django-Guardian, could do with some help maintaining > there. >

Re: Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-02-04 Thread Curtis Maloney
On 2/5/19 1:09 PM, Cristiano Coelho wrote: Pointing to Django Rest Framework should be more than enough. Anyone starting a project with Django and a SPA/JS architecture, will pretty much end up with DRF. Correct me if I'm wrong. It's likely they'd end up with DRF, however there are

Re: Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-02-04 Thread Dan Davis
I kind of disagree that saying it works with DRF is enough. One issue that needs to be addressed is matching any possible path with re_path, so that an SPA that takes over the browser history API will work with bookmarks. Django is opinionated. The winning strategy for npm frameworks is to let

Re: Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-02-04 Thread Jason Johns
Tom Christie wrote this about what DRF brings to the table over plain Django: Django REST framework isn't required, but it helps you get a lot of things right that will be time consuming and error prone if you're working from core Django. • Serializers The Django serializers are not really

Re: Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-02-04 Thread Cristiano Coelho
Pointing to Django Rest Framework should be more than enough. Anyone starting a project with Django and a SPA/JS architecture, will pretty much end up with DRF. Correct me if I'm wrong. El lunes, 4 de febrero de 2019, 19:52:42 (UTC-5), Maciek Olko escribió: > > I didn't find this topic being

Re: Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-02-04 Thread Curtis Maloney
On 2/5/19 11:52 AM, Maciek Olko wrote: I didn't find this topic being discussed before. I guess it wouldn't take much to say "Just like any other server-side framework that can parse and generate arbitrary content, Django can be used to support any Javascript or Mobile app that talks

Re: Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-02-04 Thread Kye Russell
Say what you want about the arguably unnecessary proliferation of complex JavaScript applications / build pipelines upon the Internet over the past 5 or so years, but there’s no denying it’s becoming a necessary component in a large portion of complex web projects. I also think that—if it hasn’t

Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-02-04 Thread Maciek Olko
I didn't find this topic being discussed before. It seems to me to be good idea to place "How do I get Django and my JS framework to work together?" or similar question and answer to it in FAQ in Django's docs. Having very big popularity of JS frameworks now it is indeed very common question

Re: django.utils.dateparse

2019-02-04 Thread Giuseppe De Marco
Hi Augustin, my name Is Giuseppe, i before u :) At this point I think we can agree on why we disagree :-) > Great! > First, I believe that the function responsible for converting datetimes > stored in ISO 8601 format in SQLite databases should parse ISO 8601 and not > do anything else. I'm -1

Re: django.utils.dateparse

2019-02-04 Thread Aymeric Augustin
Hello Guiseppe, At this point I think we can agree on why we disagree :-) First, I believe that the function responsible for converting datetimes stored in ISO 8601 format in SQLite databases should parse ISO 8601 and not do anything else. I'm -1 on changing it to accept localized datetimes. (A

Re: Fellow Reports -- January 2019

2019-02-04 Thread Carlton Gibson
Hi all. Calendar Week 5 -- ending 03 February. Triaged: https://code.djangoproject.com/ticket/30144 -- Support passing timedelta for cache timeout (wontfix) https://code.djangoproject.com/ticket/30139 -- django.contrib.auth.forms.UserCreationForm() doesnt call default managers

Re: Google Summer of Code 2019

2019-02-04 Thread Carlton Gibson
And thank you Tim, yes, exactly what I need. To all: I will put in the org application today. We'll then see about the proposals. The main thing is that we need to know who you are, and have confidence in you in order to commit to the project with you. For people to mentor you is a big

Re: Google Summer of Code 2019

2019-02-04 Thread Tim Graham
It's a private wiki that only Django team members like Carlton can access. It contains the information for Django to apply for GSoC. On Monday, February 4, 2019 at 9:07:40 AM UTC-5, Giuseppe De Marco wrote: > > Hi Tim, > > It returns 404 to me > >

Re: django.utils.dateparse

2019-02-04 Thread Giuseppe De Marco
Thank you Andreas, finally I can see a real benchmark on my laptop: python3 -m timeit -s "from django.utils.dateparse import parse_datetime" "print(parse_datetime('2018-04-01 09:07:04'))" 10 loops, best of 3: 11.1 usec per loop python3 -m timeit -s "import datetime"

Re: django.utils.dateparse

2019-02-04 Thread Andreas Pelme
On 4 Feb 2019, at 15:04, Giuseppe De Marco wrote: > > python3 -m timeit -s "import sys, os; sys.path.append(os.getcwd()); from > datetime_heuristic_parser import datetime_heuristic_parser; > print(datetime_heuristic_parser('04/12/2018 09:7:4Z'))" That command is not correct. timeit -s

Re: Google Summer of Code 2019

2019-02-04 Thread Giuseppe De Marco
Hi Tim, It returns 404 to me https://github.com/django/django-team-wiki/wiki/Google-Summer-of-Code-Application-Info Il giorno lun 4 feb 2019 alle ore 13:05 Tim Graham ha scritto: > All answers are at > https://github.com/django/django-team-wiki/wiki/Google-Summer-of-Code-Application-Info > --

Re: django.utils.dateparse

2019-02-04 Thread Giuseppe De Marco
I also added tzinfo as it come from parse_date, I just copy some code and make get_fixed_timezone as a FixedTimeZone classmethod. Regarding our doubts about benchmarks, you'll always find them commented in the top of the file, I hope to make them as many immediate as possible to avoid waste of

Re: App static files (#29586)

2019-02-04 Thread Claude Paroz
Hi Carlton, I'm currently in "pause mode" for Django master. I didn't receive any input until now with my proposal. I think Django would benefit of such a development, not necessarily with my suggested approach, but something similar. As for GSoC, it's difficult to say. I'm always concerned by

Re: Help needed on Django-Guardian.

2019-02-04 Thread sibasish mohanty
Hi, I will go through the code base and try to contribute. Thanks Sibasish On Mon, 4 Feb 2019, 2:31 a.m. Carlton Gibson Hi all. > > Adam Dobrawy who runs Django-Guardian, could do with some help maintaining > there. > > The project seems to be in good shape. (It's up to date) But needs a bit >

Help needed on Django-Guardian.

2019-02-04 Thread Aleksi Häkli
We have had good success in project maintenance with the Jazzband organization which collaboratively tends to a number of Django projects. I think that the crowd of maintainers could help in the Guardian project infrastructure and take care of things like versioning, allowing better focus for

Re: Google Summer of Code 2019

2019-02-04 Thread Tim Graham
All answers are at https://github.com/django/django-team-wiki/wiki/Google-Summer-of-Code-Application-Info On Monday, February 4, 2019 at 4:19:06 AM UTC-5, Carlton Gibson wrote: > > Hey Tim. > > > For each year your organization has participated, provide the counts of > successful and total

Re: django.utils.dateparse

2019-02-04 Thread Tom Forbes
For me, I get: In [4]: %timeit datetime_heuristic_parser('2019-02-03T17:27:58.645194') 18.9 µs ± 431 ns per loop (mean ± std. dev. of 7 runs, 10 loops each) And for Django: In [3]: %timeit parse_datetime('2019-02-03T17:27:58.645194') 6.97 µs ± 408 ns per loop (mean ± std. dev. of 7 runs,

Re: App static files (#29586)

2019-02-04 Thread Carlton Gibson
Hi Claude. Is this something you're still interested in? Do you think it might make a good GSoC project? C. On Monday, 23 July 2018 17:36:05 UTC+2, Claude Paroz wrote: > > Hi, > > I just created a new feature request [1] to be able to define static > files per application, including a POC

Re: django.utils.dateparse

2019-02-04 Thread Giuseppe De Marco
Hello everyone, first of all I am grateful for your time and your attention. @Tom Forbes The first time I runned it I thought the same thing! Please use https://github.com/peppelinux/Django-snippets/blob/master/datetime_heuristic_parser.py and not the previous pasted one. I'm quite sure that all

Re: Google Summer of Code 2019

2019-02-04 Thread Carlton Gibson
Hey Tim. > For each year your organization has participated, provide the counts of successful and total students. (e.g. 2016: 3/4) I have no idea about this, could you advise? Thanks. -- You received this message because you are subscribed to the Google Groups "Django developers

Re: Google Summer of Code 2019

2019-02-04 Thread Carlton Gibson
Hey Parth, Yes, you're right: > Students can register and submit their applications to mentor organizations. All proposals must be submitted by April 9, 2019 20:00 (CEST). There's time. I was thinking tomorrow was the full proposal deadline. (That's my lack of familiarity with it.) I

Re: Google Summer of Code 2019

2019-02-04 Thread PARTH PATIL
Hey, I am really enthusiastic for doing GSoC with Django, I had been working for a few months to get myself familiar with the code base. I have quite a few unpolished ideas in my mind for projects like the one posted here