Re: best way to generate PDFs in django - handling concurrency

2018-12-28 Thread Shashank Singh
Celery + django + rabbitmq + template+ django-hardcopy https://github.com/loftylabs/django-hardcopy On Sat, 29 Dec, 2018, 9:17 AM Danny Blaker Great. Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this

Re: best way to generate PDFs in django - handling concurrency

2018-12-28 Thread Danny Blaker
Great. Thanks -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: Building a framework

2018-12-28 Thread Muhammad Zuhair Askari
Yes, What if I move towards building such framework like Flask, I even want to make more simpler and having less features (just basic features) framework, will that be useful for learning web in a bit deeper and is it worthy for a final Year Project for an under-graduate level student? Or

Re: Building a framework

2018-12-28 Thread Muhammad Zuhair Askari
On Friday, December 28, 2018 at 7:27:16 PM UTC+5, Muhammad Zuhair Askari wrote: > > Hi! I want to develop a framework like Django, Flask etc. using python as > a final year project of my graduation. This may be very useful for learning > purpose. Can anybody tell me how much time will it

db_index=True not working, and indexes in class Meta yes

2018-12-28 Thread Gonzalo Amadio
I have a model like this (simplified code): class Agreement(modes.Model): job = models.ForeignKey(...) class Meta: indexes = ( models.Index(fields=['job']), ) And when run migrations, the index is created. BUT, after doing this:

Re: Building a framework

2018-12-28 Thread Jani Tiainen
Hi, If you consider that Django has been in development over 10 years now and been developed by several individuals. So building a framework like Django doesn't happen overnight. Flask is microframework, containing very minimal set of tools and relying on external components. Building something

Re: Building a framework

2018-12-28 Thread Jason
That is highly ambitious and may not be all that attainable given you describe your exprience as a not well experienced python developer. You might find it a better learning exercise to create a plugin or package that can be used by Django or Flask. That would give you exposure to the

Building a framework

2018-12-28 Thread Muhammad Zuhair Askari
Hi! I want to develop a framework like Django, Flask etc. using python as a final year project of my graduation. This may be very useful for learning purpose. Can anybody tell me how much time will it take for a not well experienced python developer? And is it a good Final Year Project? --

Re: MySQL accepts 0 for a primary key but Django does not

2018-12-28 Thread Simon Charette
Hello Derek, There's no setting but this is controlled by the allows_auto_pk_0 feature flag [0]. Database feature are set to the default database configurations so Django can minimized the number of introspection queries required to work appropriately each time a connection is opened. In order

Re: channels and https

2018-12-28 Thread Andrew Godwin
You should use an ASGI server (uvicorn/daphne) with an SSL-terminating server (e.g. nginx) in front of it and proxying to it. Django-sslserver is a WSGI-based server and so can't support WebSockets. Andrew On Tue, Dec 25, 2018 at 4:44 PM wrote: > How can I use channels with https at

MySQL accepts 0 for a primary key but Django does not

2018-12-28 Thread Derek
I am working with some legacy data and need to preserve the existing record ID's which, in some tables, include the value of 0 for their auto-increment field. I have updated the configuration file for MySQL such that the sql_mode is set to include 'NO_AUTO_VALUE_ON_ZERO'. I can check that this

Re: Django channels communication not asynchronous

2018-12-28 Thread Andrew Godwin
Channels request/response cycles must be natively non-blocking all the way from the application code up through the server. If you even so much as slightly block you're going to disrupt everything and maybe deadlock it, which is why you need to be careful about when you call synchronous things.