Re: Proposal to format Django using black

2019-04-22 Thread Jamesie Pic
Thanks for sharing some of your insight. On Mon, Apr 22, 2019 at 10:57 AM Nick Sarbicki wrote: > Even moreso if it lowers the barrier to entry (I don't think anyone is > saying it raises it?). > I'm just saying that if "As contributor, I can haz automatic code formatter to lower the barrier"

Re: Proposal to format Django using black

2019-04-22 Thread Jamesie Pic
Just note that the coala python package ( https://coala.io ) seems to be the alternative to black that will let you make some compromises, might be worth considering as well. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to

Re: Development story for CBV FormViews using GET

2019-04-18 Thread Jamesie Pic
Hi Kye, Sorry for mispelling your name above, but it's a really long thread and non-native. And I can tell, there's rarely a better way than discussing in foreign languages to make a nice little fool of myself xD This time I will share my story with CBV, a story with love, and code and aggressive

Re: GSOC Proposal (Bundler for Django)

2019-04-08 Thread Jamesie Pic
PS: also check how other python frameworks deal with static files, particularly the cubicweb framework. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving

Re: GSOC Proposal (Bundler for Django)

2019-04-08 Thread Jamesie Pic
Hi Ashik, Thanks for your proposal that I find revelant because there needs to be a new version of staticfiles. Supporting NPM, one way or another, is the main way to enjoy the same development workflow with frontend code as with pip. For me it would make sense to support it, one way or another.

Re: Development story for CBV FormViews using GET

2019-03-14 Thread Jamesie Pic
Kyle, is it possible to show the code you are talking about ? -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to

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

2019-02-27 Thread Jamesie Pic
FTR I published my own writeup here: https://blog.yourlabs.org/post/183077442308/django-js-research-report -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving

Re: Official Django Docker Container Deprecated

2019-02-27 Thread Jamesie Pic
> most people currently lean towards a microservice architecture and therefore > towards flask. "according to the 2018 JetBrains Developer Survey" and some people. Why start a project with flask in 2019 instead of Quart which or Starlette is another question that I suppose is out of the scope of

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

2019-02-25 Thread Jamesie Pic
On Mon, Feb 25, 2019 at 10:39 PM Jamesie Pic wrote: > component = dict( > template_name='django/forms/widgets/textarea.html', > script='your/textarea.js', > style='your/style.css' > ) Actually do NOT try this, for static i think the more efficient refactor would be to

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

2019-02-25 Thread Jamesie Pic
Also in Django maybe try to change things like: class Textarea(Widget): template_name = 'django/forms/widgets/textarea.html' With component = dict( template_name='django/forms/widgets/textarea.html', script='your/textarea.js', style='your/style.css' ) Or something

Re: Post mortem on today's packaging error.

2019-02-11 Thread Jamesie Pic
Hi Carlton ! Seems like you're having as much fun as I had when doing releases manually :D Just sharing some food for thought here. Nowadays I have it automated and rely on setupmeta to keep myself away from touching setup.py, and just have to push git tags : http://github.com/zsimic/setupmeta

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

2019-02-07 Thread Jamesie Pic
Well, there's also Graphene. It's at least REST or GraphQL. Le mar. 5 févr. 2019 à 03:09, Cristiano Coelho a écrit : > 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

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

2019-02-05 Thread Jamesie Pic
Throwing in some food for thought that may be worth mentioning and that we like to play with: - django-webpack-loader merged code chunking recently - transcrypt allows coding ie with react in Python, transcrypt also supports webpack - chp is a project that aims to replace templates as we know

Re: Potential suspension of Channels development

2019-01-30 Thread Jamesie Pic
On Sun, Jan 20, 2019 at 3:19 PM Shrawan Poudel wrote: > > Hello, i am interested in helping in this project. Please guide thought the > process for helping . > I have been using these projects in many of my Production app . Watch the repository on github, read the pull requests and ask

Re: thoughts for Django fellowship applicants

2019-01-13 Thread Jamesie Pic
Hello Tim, Debugging over ip with non-natives is very hard indeed. Thank you for completing your mission with extremely high achievement. Your engagement is the most beautiful inspiration for any fellow. I hope to read other posts from you even long after. I'm deeply sorry for the times when I

Re: Database connection retry

2018-12-15 Thread Jamesie Pic
Nope, uwsgi in docker... -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com.

Re: Database connection retry

2018-12-14 Thread Jamesie Pic
Hi all, Sorry to bump this, but I didn't find another thread, and I'm pretty sure re-trying the database connection is the sane thing to do. Otherwise, Django will remain in failed state after reboot in some cases: psycopg2.OperationalError: FATAL: the database system is starting up It would

Re: Widening participation (Thoughts from DjangoCon)

2018-12-11 Thread Jamesie Pic
Thanks Josh, love your link, seems like it dates from 2017 during the period when GitLab UI was redesigned. But GitLab is still emerging as a standard tool no matter what. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django

Re: Widening participation (Thoughts from DjangoCon)

2018-12-11 Thread Jamesie Pic
Gitlab should be mentioned as a vastly superior alternative to trac + GitHub + jenkins. Le mar. 11 déc. 2018 à 14:01, Hanne Moa a écrit : > Whenever I've had to move from one issue-system to another, the main > pain point has always been issue/comment ownership[*]. This is because > many

Re: django.contrib.auth CLI

2018-10-11 Thread Jamesie Pic
Hi smart nerds, I'm sorry if my sense of humour was too much to handle for you. But to compensate I offer the unfrustrating python CLI package, and at the same time most awesome CLI CRUD for Django to my knowledge, on yourlabs.io/oss/clilabs One last thing, verrry important for the record, in

Re: django.contrib.auth CLI

2018-10-11 Thread Jamesie Pic
Forgot a note about extreme devops: It's when you have an automatic deployment per feature branch (example ). GitLab even has a feature to help it called dynamic environments

Re: django.contrib.auth CLI

2018-10-11 Thread Jamesie Pic
Hello Ludovic, I'm glad this little joke tickled you, sorry for being that childish but sometimes I can't help it (I don't see how anybody could feel rationnaly offended since this joke talking about me). In reality, I've just been automating Django deployments for 10 year. So, if it takes 50

Re: django.contrib.auth CLI

2018-10-11 Thread Jamesie Pic
Sorry, I forgot to answer about the loaddata proposal. So, loaddata will not do user removal for one thing. About user creation, the process we have is: - add the user to the users list, - set the password in `ansible-vault create passwords/username` - CM will execute createsuperuser for users,

Re: django.contrib.auth CLI

2018-10-11 Thread Jamesie Pic
Hi Adam, Yeah it would be funny, maybe I'm even the only Django user that automates deployments with a CM, or to take "ootb automation experience" up to that point (maybe because I have extreme DevOps expertise ?). Implementing this in a third party app is pointless: it will be more useful as

django.contrib.auth CLI

2018-10-10 Thread Jamesie Pic
Hi all, Currently, django has user management commands createsuperuser and changepassword , which allow to automate some user management with an automated Configuration Management (CM) tool, such as Ansible.

Re: Model default modelform

2018-08-25 Thread Jamesie Pic
Hi Claude, Thanks for your feedback, it's a great idea to make modelform a callable registry instance or something. In some project we're going to try to acheive this kind of coupling and work with Python components instead of templates for example: status =

Re: Model default modelform

2018-08-24 Thread Jamesie Pic
Thank for your feedback. It's the eternal misunderstanding of django's pattern, confusion between table, and model, model is de factores what couples table and form, I've posted articles about it already. I call this the elephant in the room but if I'm the only one to see it it means it's my

Model default modelform

2018-08-20 Thread Jamesie Pic
Hi all, Currently when you want a model to be edited from a custom modelform, you need to make use of that new modelform manually in your create/update views and admin. Would it be possible to add a new overridable method in the model to generate a default modelform ? Then, default

django.contrib.admin.models audit

2018-05-05 Thread Jamesie Pic
Hello everybody, I have published a django.contrib.admin.models audit in a repository of mine , that is like the admin package but aspires to be useful also outside the admin: - uses a TextField for object_id

django-adapters audit

2018-03-08 Thread Jamesie Pic
Hi all! It’s been probably 30 hours I’ve spent trying to contribute to the django-adapters

Re: DEP Pre-posal: Re-Designing Django Forms

2018-02-03 Thread Jamesie Pic
On Thu, Feb 1, 2018 at 12:46 PM, Marc Tamlyn wrote: > This is a huge project to achieve everything you mentioned in your email, and it has implications across a large number of Django packages (not least the admin). I don't want to discourage you, but don't underestimate

Form.factory

2017-12-18 Thread Jamesie Pic
Hello everybody, Currently, we can set extra request/view arguments in a form by overriding a CBV get_form* method. This way, we can add things such as request.user, if we also override the Form constructor to accept such arguments. I'd like to suggest that we add a factory(cls, view) method to

Re: Vendoring Select2

2017-12-16 Thread Jamesie Pic
Note that jquery-autocomplete could be a backup solution in case select2 looses maintainer traction in the future. ​ https://www.devbridge.com/sourcery/components/jquery-autocomplete/ Best <3 -- You received this message because you are subscribed to the Google Groups "Django developers

Re: Django benchmark is low

2017-12-16 Thread Jamesie Pic
Well, they're using tornado as frontend serveur, perhaps they should try with uwsgi. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send

Re: Extract LogEntry from django.contrib.admin

2017-11-08 Thread Jamesie Pic
I'm sure we can have many interresting features: - admin page to view logged requests/responses with replay feature - admin page to view logentries per object, - add level/source and support being a python logging handler Perhaps more ? -- You received this message because you are subscribed

Extract LogEntry from django.contrib.admin

2017-11-07 Thread Jamesie Pic
Hello Have we considered extracting LogEntry from django.contrib.admin in its own contrib module ? It would open doors for new features such as automatic request/response trace & exceptions loggers and views in the admin perhaps ? <3 -- ∞ -- You received this message because you are

Re: New Permissions Scheme

2017-09-22 Thread Jamesie Pic
Have you tried of django-guardian ? What do you think about it ? TBH I never actually used it (I've been doing Django for 9 years and have never used a permission table), but I think it does what you want. >From my experience, permissions are thought of something that can be calculated on the

Re: Why Django Document site always redirect to an earlier version

2017-09-22 Thread Jamesie Pic
Amazing, what's the output when you try `curl -I https://docs.djangoproject.com/en/stable/ | grep Location` ? If none, try without the `| grep Location`. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To

Re: Decoupling Forms from Model

2017-09-18 Thread Jamesie Pic
Thanks Tim, I had completely forgotten about this episode. I've given up the idea of changing this (amongst other things) in Django and decided to work a layer on top of Django instead ( https://github.com/yourlabs/crudlfap ). As far as I'm concerned, we can close this. Thanks a heap for

Decoupling Forms from Model

2017-09-17 Thread Jamesie Pic
Hello everybody ! Currently, it's possible to override a model field to override the formfield method. This allows to generate a default form from a model with the ModelForm. This is something that other maintainers of small django apps providing with new form fields might also have seem users

Re: Vendoring Select2

2017-06-18 Thread Jamesie Pic
Awesome, hope this will help drag in maintainer activity on select2 <3 Best -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: Vendoring Select2

2017-06-06 Thread Jamesie Pic
I was just thinking that changing the js widget would not require to rewrite the python code, barely the js widget support. I'm not trying to push it, just make sure we are taking the right facts into consideration, but I'm happy with select2 myself. -- You received this message because you are

Re: Vendoring Select2

2017-06-06 Thread Jamesie Pic
Thanks for asking, my name is ∞, but you've known my as James Pic / YourLabs. Nice to speak with you again <3 I think it would make sense for a core dev to advocate against this change, because we'd be breaking BC before having enough information to know if this is going to have a generally more

Re: #26369: default formfield callback override

2017-04-17 Thread Jamesie Pic
Hi David, Yep, I'm with you on this, another good reason to close this PR. I'm building DAL's next feature on your fork, so you'll have my feedback for sure at some point ;) Best <3 -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions

Re: #26369: default formfield callback override

2017-04-16 Thread Jamesie Pic
Ooops yes this is correct, it doesn't work in the advised file, apps.py Thank you so much for your feedback, I need to ditch this patch just find a way to make Django default usable date, time, image, relations form fields useable ootb by marrying a JS framework. Best <3 -- You received this

Re: DJANGO_SETTINGS_FILE

2017-04-14 Thread Jamesie Pic
If this is about making deployment easier, then it might take long before anybody contributes windows support. After inheriting from the projects settings "from myproject.settings import *", I have not experienced the caveats. Something as simple as overriding a settings file as never been