Re: regarding django hosting

2019-01-26 Thread Ousseynou Diop
Try DigitalOcean with ubuntu it's well documented. https://gist.github.com/bradtraversy/cfa565b879ff1458dba08f423cb01d71 Le sam. 26 janv. 2019 à 07:56, tribhuvan kishor < tribhuvankishor...@gmail.com> a écrit : > can you please help me with some elaboration because i am completely > beginner in

Re: forms with get_or_create and inlineformset_factory

2019-01-26 Thread Elias Coutinho
could be but in the context of my client's need this would be inversely to what the project proposes. When he needs to choose the questions he must choose a form and when he wishes all he chooses another. so there are two way and two Views. Em sáb, 26 de jan de 2019 14:31, Mohammad Etemaddar < moh

forms with get_or_create and inlineformset_factory

2019-01-26 Thread Mohammad Etemaddar
I think the answer is in your signal-connected function in your question query which you choosed all() questions. I did not understand the project, but you should choose questions in signal and not all questions I think. -- You received this message because you are subscribed to the Google Grou

Re: Access to the last object of model inside model itself

2019-01-26 Thread Mohammad Etemaddar
I commented out the default value and then ran the makemigrations again, and then uncommented again and worked. Of course by lambda. -- 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 i

Re: Access to the last object of model inside model itself

2019-01-26 Thread Mohammad Etemaddar
Im not agree. Managers are created for custom query. But here the query is last. I think I got the philosophy. The default value should not be a manager, because the database does not understand it. Maybe I am wrong! -- You received this message because you are subscribed to the Google Groups "

Re: ValueError at /news/ Value: None must be instance of Model:

2019-01-26 Thread team . alphav3
This usually happens when you have added and EmbeddedModel and not passing any value to that field while creation. Hope this helps. On Sunday, 19 August 2018 19:32:49 UTC+5:30, Sagar wrote: > > Hi, > I'm trying to create embedded documents in mongodb using django. I'm > facing this error when I

Re: Setting up Django on GoDaddy Deluxe Shared Hosting

2019-01-26 Thread chandrashekhar Damahe
hii, i am follow these steps but i got error " The requested URL /dispatch.py/ was not found on this server. " will you help me to solve these error On Saturday, December 29, 2007 at 3:50:38 AM UTC+5:30, Donald H wrote: > > Has anyone had success in setting up Django on GoDaddy's Deluxe shared

forms with get_or_create and inlineformset_factory

2019-01-26 Thread Elias Coutinho
Good morning my friends. I have two forms that I use to insert data into the same models in different situations: class SearchFormCompleto(forms.ModelForm): class Meta: model = Search fields = ( 'search_key', 'person', 'researched',

Re: Queryset - exclude one data over two

2019-01-26 Thread Stéphane Manguette
Thanks ! It works perfectly ! Le vendredi 25 janvier 2019 17:07:05 UTC+1, C. Kirby a écrit : > > You can use islice from itertools in this way > > islice('ABCDEFG', 0, None, 2) --> A C E G > > In your case you would replace > chart = temp_db.objects.filter(date__gte=beg_range) > > with > chart =

Re: Questions about MySQL notes in Django docs

2019-01-26 Thread Carsten Fuchs
Hi Jason, Am 24.01.19 um 14:47 schrieb Jason: > It doesn't look like the fixes were backported to 1.11, after looking in the > django 1.11 release notes. > As Tim said,  >> Based on the commits there, it looks like Django 2.0.7 and above >> received the fixes Yes, that's part of my problem.