Re: Anyone used RENDER product for hosting?

2019-10-08 Thread Devender Kumar
Digital ocean On Tue 8 Oct, 2019, 3:02 PM ram.mullapudi, wrote: > > Hello, > > I'm looking for cheaper, secure and reliable way to host my website? The > site is being developed on DJango FWK. We are currently on GCP and also > reviewed other popular vendors too. I recently came to know about

Daphne behavior question: Application close timeout and caching

2019-10-08 Thread DeVonte Applewhite
Hello, I am using Daphne to run a Quart app ( https://pgjones.gitlab.io/quart/index.html#) and I wanted to use caching to improve performance. I looked at the settings for Daphne and have a question about the below option: --application-close-timeout APPLICATION_CLOSE_TIMEOUT

Re: Barcode 128Code generation with Django

2019-10-08 Thread Ehab Al-Qabbani
Hi, If you use python3 you can install python-barcode and use it Read its documentation: https://pypi.org/project/python-barcode/ Warmest Regards, Ehab From: django-users@googlegroups.com on behalf of Shazia Nusrat Sent: Wednesday, October 9, 2019 12:15 AM

Barcode 128Code generation with Django

2019-10-08 Thread Shazia Nusrat
Hi I am looking for some help to generate a barcode for my practice project and I need commercial code128 generation help. I need to add my customer ID and product ID in the barcode. Any help would be appreciated. Regards, Shazia -- You received this message because you are subscribed to the

Re: QuerySet not iterable

2019-10-08 Thread Abhijeet Viswa
Hello, Thank your for your reply. I'm not using Python 2. I have attached the traceback as is emailed by Django to the Admin. Traceback: > > File > "/home/user/api/env/lib/python3.6/site-packages/django/core/handlers/exception.py" > > in inner > 34. response =

[no subject]

2019-10-08 Thread Raja Sekar Sampath
Hi, I'm facing challenges to get the result of below problem,I have two models in my application i.e., class UserMenu(models.Model): name = models.CharField(max_length=50) def __str__(self): return self.name class MenuMapping(models.Model): user_menu =

Re: Widgets not working for dynamically added formset forms

2019-10-08 Thread Dmitri S.
At first I hoped not to dive in JS and mostly use django things, but ok, now I see it's not that simple. Thanks for help. вторник, 8 октября 2019 г., 16:49:08 UTC+3 пользователь lemme smash написал: > > okay, i think i got it. you probably need to provide some snippet to > reload list of

Re: text data types

2019-10-08 Thread Bill Freeman
TextField() On Tue, Oct 8, 2019 at 12:42 PM Mohsen Pahlevanzadeh < m.pahlevanza...@gmail.com> wrote: > I need to create text data type in model.py, CharField() has max_len as > mandatory, What do you recommend instead of CharField() ? > > -- > You received this message because you are subscribed

Possible bug in Media class.

2019-10-08 Thread Roman Telezhynskyi
Hello, Today for my project I tried to find a solution for an issue with duplicate assets. Combining several approaches I managed to build an app to solve it. While debugging the app, I think, I found a bug in Media class. File *django/forms/widgets.py* @html_safe class Media: def

Re: [Django] Trying to open a form on button click getting Error:Failed lookup for key [%s] in %r during template rendering

2019-10-08 Thread Dilipkumar Noone
Hi, This issue is fixed to me by instantiating the FormHelper() in forms.py. I referred : https://django-crispy-forms.readthedocs.io/en/latest/crispy_tag_forms.html class ApplyGSPForm(ModelForm): *helper = FormHelper()* class Meta: model = ApplyGSP fields =

text data types

2019-10-08 Thread Mohsen Pahlevanzadeh
I need to create text data type in model.py, CharField() has max_len as mandatory, What do you recommend instead of CharField() ? -- 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,

Re: my first view

2019-10-08 Thread Motaz Hejaze
Please follow the link in my last email On Tue, 8 Oct 2019, 5:05 pm Felipe Gregório USA, wrote: > how i do this? > > -- > 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

Re: my first view

2019-10-08 Thread Felipe Gregório USA
how i do this? -- 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 view this discussion on the web visit

Re: my first view

2019-10-08 Thread Motaz Hejaze
nothing wrong , you just need to link your view with a route .. please go for the official django tutorial to understand the basics https://docs.djangoproject.com/en/2.2/intro/tutorial01/ On Tue, Oct 8, 2019 at 4:36 PM Felipe Gregório USA wrote: > Please tell me what is wrong with my first

my first view

2019-10-08 Thread Felipe Gregório USA
Please tell me what is wrong with my first view https://github.com/Fgregorio1/ftgtraderexample.git -- 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

Re: ListView from 2 model

2019-10-08 Thread Jani Tiainen
Hi, ListView and most other generic views are designed mostly to work with single model. There are few ways to tackle your problem depending on your needs. to 3. lokak. 2019 klo 0.53 Yann Mbella kirjoitti: > hi everyone, > I got a problem in listing two models from a listview that is, a list

Re: ListView from 2 model

2019-10-08 Thread lemme smash
you probably may want to implement `get_context_data` method like: def get_context_data(self): context = super(BlogView, self).get_context_data() context.update({ 'authors': Author.objects.filter(posts__isnull=False).distinct(), 'tags':

Re: Widgets not working for dynamically added formset forms

2019-10-08 Thread lemme smash
okay, i think i got it. you probably need to provide some snippet to reload list of choices to newly added form. try to look some examples of using django-select2 with formsets... by pure js i mean not necessarily vanila js, but pure client code, without rendering templates on server. all the

Re: QuerySet not iterable

2019-10-08 Thread Simon Charette
Hello there, >From looking at your code (super() calls) it seems like your are using Python 2. We've seen similar reports about stdlib functions hiding system level exceptions instead of surfacing them[0] so that might it. It's hard to tell without the full traceback though. Best, Simon

Anyone used RENDER product for hosting?

2019-10-08 Thread ram.mullapudi
Hello, I'm looking for cheaper, secure and reliable way to host my website? The site is being developed on DJango FWK. We are currently on GCP and also reviewed other popular vendors too. I recently came to know about Render platform and am wondering if anyone tried it? Regards, ~Ram --