Re: regarding django hosting

2019-01-25 Thread tribhuvan kishor
can you please help me with some elaboration because i am completely beginner in hosting i am completely unaware with nginx and gunicor n On Sat, Jan 26, 2019 at 1:09 PM Anirudh Jain wrote: > AWS EC2 is good with nginx and gunicorn > > On Sat, 26 Jan 2019, 13:04 tribhuvan kishor wrote: > >> >>

Re: regarding django hosting

2019-01-25 Thread Anirudh Jain
AWS EC2 is good with nginx and gunicorn On Sat, 26 Jan 2019, 13:04 tribhuvan kishor > can you guys please help which is best hosting solution for django > -- > regards > Tribhuvan Kishor Bhaskar > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

regarding django hosting

2019-01-25 Thread tribhuvan kishor
can you guys please help which is best hosting solution for django -- regards Tribhuvan Kishor Bhaskar -- 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: Admin form_url breakout problem

2019-01-25 Thread Mike Dewhirst
Matthew I think I'll back everything out and start again. There must be a basic blunder somewhere. Just talking it through, I can definitely launch payment_view from the Admin when all the ducks are in a line. That view populates the hidden ..._id fields and Stripe API fields in the form

Re: Job Request

2019-01-25 Thread Khushal Kumar
I'll be happy to help. On Fri, 25 Jan 2019, 11:49 pm Roshan Shah I do have a project that I want to get built on. Can I get some help from > people who are starting in Django to work on it? > > Roshan > Founder Cogdina Inc > http://www.cogdina.com > > On Fri, Jan 25, 2019 at 11:47 AM Okware Aldo

Re: Job Request

2019-01-25 Thread Nitin Kalmaste
Yes you can start it on GitHub we will definitely contribute On Fri, Jan 25, 2019, 11:50 PM Roshan Shah I do have a project that I want to get built on. Can I get some help from > people who are starting in Django to work on it? > > Roshan > Founder Cogdina Inc > http://www.cogdina.com > > On

Re: how can I reference a field from one model to another model

2019-01-25 Thread carlos
Thank Mike Dewhirst is working well Cheers On Fri, Jan 25, 2019 at 6:49 AM 'Amitesh Sahay' via Django users < django-users@googlegroups.com> wrote: > hi, > > All the above should work. If you are working on django REST, then you can > use ModelSerializer helper function. This will automatically

Re: Job Request

2019-01-25 Thread shinan nazar
can you hire me?? On Fri, Jan 25, 2019 at 11:50 PM Roshan Shah wrote: > I do have a project that I want to get built on. Can I get some help from > people who are starting in Django to work on it? > > Roshan > Founder Cogdina Inc > http://www.cogdina.com > > On Fri, Jan 25, 2019 at 11:47 AM

Re: Job Request

2019-01-25 Thread Nitin Kumar
@Roshan I am interested. On Fri, Jan 25, 2019 at 11:49 PM Roshan Shah wrote: > I do have a project that I want to get built on. Can I get some help from > people who are starting in Django to work on it? > > Roshan > Founder Cogdina Inc > http://www.cogdina.com > > On Fri, Jan 25, 2019 at 11:47

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

2019-01-25 Thread Jason
This really should be in a custom model manager, and not the model itself. -- 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: Job Request

2019-01-25 Thread Roshan Shah
I do have a project that I want to get built on. Can I get some help from people who are starting in Django to work on it? Roshan Founder Cogdina Inc http://www.cogdina.com On Fri, Jan 25, 2019 at 11:47 AM Okware Aldo wrote: > I am looking for projects I can contribute on. so if you have a

Access to the last object of model inside model itself

2019-01-25 Thread Mohammad Etemaddar
Hello I need the last object of model inside it. for example I have: class Field(models.Model): category = models.ForeignKey(Category, related_name='fields', on_delete= models.CASCADE, default = get_last_factory_field_category()) def get_last_factory_field_category(): return

Re: Job Request

2019-01-25 Thread Okware Aldo
I am looking for projects I can contribute on. so if you have a project I can contribute on. I am happy to help 2 hours of code in a week for free. On Fri, Jan 25, 2019 at 3:51 PM Nitin Kalmaste wrote: > Where can I find Live Projects to work on So that I can Improve My python > Skills > > On

Re: Queryset - exclude one data over two

2019-01-25 Thread C. Kirby
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 = [x for x in islice(temp_db.objects.filter(date__gte=beg_range), 0, None, 2)] That will give you every

Re: Charfield variable length

2019-01-25 Thread C. Kirby
https://docs.djangoproject.com/en/2.1/ref/models/fields/#binaryfield -- 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.

Re: Noob question about model and view

2019-01-25 Thread Arturo Fernandez
The new form that I'm trying to make is the one with the variable: form, I forgot to mention that On Friday, January 25, 2019 at 10:08:03 AM UTC-5, Arturo Fernandez wrote: > > Hello, I'm trying to make a simple form so I can dissect it and learn but > from the guide that I'm reading, they are

Noob question about model and view

2019-01-25 Thread Arturo Fernandez
Hello, I'm trying to make a simple form so I can dissect it and learn but from the guide that I'm reading, they are doing it differently from what I'm trying to accomplish. This are the two links: model.py: https://tutorial.djangogirls.org/en/django_models/ view.py, forms.py:

RE: Admin form_url breakout problem

2019-01-25 Thread Matthew Pava
Based on the error message, it looks like you’re trying to call reverse(‘admin’) somewhere, but that’s not in the code you shared. Actually, you probably want to use a reverse call when populating content[‘link’]. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On

Re: validator not working in serializers.ModelSerializer

2019-01-25 Thread Andréas Kühne
If you want to change the output, you can override the fields that you output in your serializer. That's what the fields are for? I think it would be helpful if you provide more information because at least I don't really understand your use-case. The way I would do it is to change the fields

Queryset - exclude one data over two

2019-01-25 Thread Stéphane Manguette
Hello; I've a DBB with a lot of values which are recorded every 2 minutes (this cannot be changed). I'm trying to get all values recorded over the last 24h def dashboard(request): version = version_global end_range = datetime.now() beg_range = end_range - timedelta(days=1) chart =

DjangoJSONEncoder does not aware of UUID

2019-01-25 Thread VladT
though it looks that it suggested to . In source for DjangoJSONEncoder we see class DjangoJSONEncoder(json.JSONEncoder): ... elif isinstance(o, (decimal.Decimal, uuid.UUID, Promise)): return

Re: Looking for a Django Co-Founder.

2019-01-25 Thread 'Amitesh Sahay' via Django users
@Zack,  I am available on Skype. You can search for me by amitesh.sa...@yahoo.com, or share your skype ID, I will add you. Probably we can discuss 10.30 am EST if you are available. Or, just let me know what is your preferred time. Morning or Evening. We can sync accordingly. Regards,

Re: Job Request

2019-01-25 Thread Nitin Kalmaste
Where can I find Live Projects to work on So that I can Improve My python Skills On Thursday, January 24, 2019 at 9:05:39 PM UTC+5:30, Motaz Hejaze wrote: > > Hi all , > > Is there any remote job regarding Django , i am a beginner to mid-level in > Django .. > > Thanks all .. > -- You

Re: how can I reference a field from one model to another model

2019-01-25 Thread 'Amitesh Sahay' via Django users
hi,  All the above should work. If you are working on django REST, then you can use ModelSerializer helper function. This will automatically sync with the table fields, and if there are any foreign key and primary key. They would be mapped automatically.  Regards, Amitesh Sahay91-750 797 8619

Re: Job Request

2019-01-25 Thread Pyngineer Systems
Gain expertise and then try for a job. Beginners are not hired unless its a training company's scam project my sincere advise On Fri, Jan 25, 2019 at 8:53 AM amit pant wrote: > why all non IT and cs student be in IT and cs? > > On Thu, Jan 24, 2019 at 11:28 PM RETAIL CYBER > wrote: >

Re: how can I reference a field from one model to another model

2019-01-25 Thread Anirudh Jain
You can do this easily by creating creating an object of that model from which you want to get the value or input a value by using 'get_object_or_404' or 'get_list_or_404' by importing from django.shortucts. Reas about these two functions and difference between them in documentation. Use them,

Re: how can I reference a field from one model to another model

2019-01-25 Thread NAveeN Kumar Reddy
You can use this where you want you to link tables with foreign key models.ForeignKey(Model_Name,on_delete=models.CASCADE) That's it both tables will be in relation after migration of models into database On Fri, Jan 25, 2019 at 12:20 PM Mike Dewhirst wrote: > On 24/01/2019 5:28 pm, carlos

Re: Admin form_url breakout problem

2019-01-25 Thread Mike Dewhirst
On 25/01/2019 2:40 am, Matthew Pava wrote: Hi Mike, I'm not really seeing why this is throwing errors at you. It seems like you've done everything right. Could you provide the code (or the relevant parts) for the Substance Admin form? Thanks!