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

2018-12-27 Thread mazz ahmed
Use wkhtmltopdf package for that bro. On Fri, Dec 28, 2018 at 12:02 PM Danny Blaker wrote: > 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 d

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

2018-12-27 Thread Carsten Fuchs
Hello, in my project, using ReportLab exactly as documented works very well. Best regards, Carsten Am 28.12.18 um 00:05 schrieb Danny Blaker: > we're building an app for the council where users fill in a form, then we > generate a PDF (containing a page of text), and users get a download link

Re: Error while running local server

2018-12-27 Thread Shekhar Nunia
Thank you guys, I got the error, I installed the package and installed it in my settings but after uninstall forgot to remove it. 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 f

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

2018-12-27 Thread Danny Blaker
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 django-users@googlegroups

How we can use just like Django admin panel in tornado but i am not want to use django-admin-panel in tornado app?

2018-12-27 Thread mazz ahmed
Hello, hope everyone doing well. I am working on tornado framework. I want to use admin panel for that app but I am getting a single solution using Django alongside of tornado for admin panel. I want to use some package in the tornado which gives me admin panel. If anyone knows let me know Please.

Re: How can I read child model class' DecimalField attribute 'decimal_places' from inside a parent Meta class

2018-12-27 Thread Mikkel Kromann
Ah! It turns out that there is a _meta method for that. class Vehicles(models.Model): def get_speed_decimal_places(self): return self._meta.get_field('speed').decimal_places Though I'm still wondering why my first shot at the problem worked from within the child class, but not

template {% url %} tag is giving server's absolute path

2018-12-27 Thread Paul Lanza
I have recently changed my django project (using A2 hosting) from fcgi to wsgi. I have successfully gotten the project to work, but I am experiencing a minor caveat I am trying to solve. Now, when I use the {% url %} tag in the templates to form a link, I get the absolute path of the server (

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

2018-12-27 Thread Peter van der Does
On 12/27/18 6:05 PM, Danny Blaker wrote: > we're building an app for the council where users fill in a form, then > we generate a PDF (containing a page of text), and users get a > download link on the homepage.  > we expect many users to submit forms concurrently. > > I see 2 approaches: > > 1. Ge

Re: how can I work with multi model forms

2018-12-27 Thread Danny Blaker
https://docs.djangoproject.com/en/2.1/topics/forms/modelforms/#inline-formsets https://github.com/elo80ka/django-dynamic-formset/blob/master/docs/usage.rst https://github.com/elo80ka/django-dynamic-formset/blob/master/INSTALL.rst clone the above, then check the examples On Wednesday, 26 Decem

Re: Error while running local server

2018-12-27 Thread Danny Blaker
run pip freeze in terminal and make sure its installed in your virtual env On Friday, 28 December 2018 01:25:15 UTC+11, Shekhar Nunia wrote: > > Two days ago my project was working properly but now when I start my > project I get this error and I'm not able to figure out what the problem > is, i

Re: DJANGO FOR FINANCE !

2018-12-27 Thread Danny Blaker
depending on processing time for formulars, you might want to consider a broker setup : https://realpython.com/asynchronous-tasks-with-django-and-celery/ if processing time is negligible then no need On Saturday, 22 December 2018 07:29:20 UTC+11, Mohamed Hashi wrote: > > i have a problem with mo

best way to generate PDFs in django - handling concurrency

2018-12-27 Thread Danny Blaker
we're building an app for the council where users fill in a form, then we generate a PDF (containing a page of text), and users get a download link on the homepage. we expect many users to submit forms concurrently. I see 2 approaches: 1. Generate in the view as per documentation : https://do

How can I read child model class' DecimalField attribute 'decimal_places' from inside a parent Meta class

2018-12-27 Thread Mikkel Kromann
Hello. I have a parent Meta class and some child classes. I would like to read the decimal_places attribute from DecimalField of my child instances using a function in my parent class. I am able to read the attribute from inside my child classes, but I cant crack how to read from a function in

Re: Error while running local server

2018-12-27 Thread Shashank hegde
Somewhere 'flag' has been imported improperly or there is no module called flag. On Thu, 27 Dec 2018 at 19:54, Shekhar Nunia wrote: > Two days ago my project was working properly but now when I start my > project I get this error and I'm not able to figure out what the problem > is, if anyone ab

Re: Can I define classes in Django settings, and how can I override such settings in tests?

2018-12-27 Thread Derek
You don't need to create a class; you can just define new settings in the settings file. For example, I have added a setting called CUSTOMER. I could have logic which defines other behavior based on that: from django.conf import settings if setttings.CUSTOMER == 'ABC Corp': logo = 'ABC' el

Re: how can I work with multi model forms

2018-12-27 Thread Ira Abbott
Hi, Model forms have one model. To have the form update fields in other models, you can overload form_valid in views so that it writes the addition form field to their respective models. Ira Sent from my iPhone > On Dec 26, 2018, at 9:45 AM, Nur Mohsin wrote: > > Hi, in views.py form.save(

Re: Can I define classes in Django settings, and how can I override such settings in tests?

2018-12-27 Thread Ira Abbott
You need an instance to evaluate member variables. These are mutable, so can be different per instance. Settings should use a dictionary. Sent from my iPhone > On Dec 27, 2018, at 3:15 AM, אורי wrote: > > Hi, > > We are using Django for Speedy Net and Speedy Match (currently Django > 1.11

Can I define classes in Django settings, and how can I override such settings in tests?

2018-12-27 Thread אורי
Hi, We are using Django for Speedy Net and Speedy Match (currently Django 1.11.17, we can't upgrade to a newer version of Django because of one of our requirements, django-modeltranslation). I want to define some of our settings as classes. For example: