InlineFormset Factory Django Not Uploading Image

2020-03-09 Thread manas srivastava
I am trying to make an inlineforms through django. I have made a model to save the uploaded Image. Unfortunately the image is not getting uploaded through the form. I am not able to track why the image is not getting saved in the folder. models.py - This file contains all the models. ``` class

Re: How to create entire basic of website design without using django-admin panel

2020-03-09 Thread Omar Abou Mrad
The django admin is optional, you do not need to use it. Start with the official django tutorial: https://docs.djangoproject.com/en/3.0/intro/tutorial01/ On Mon, Mar 9, 2020 at 8:22 AM maninder singh Kumar < maninder.s.ku...@gmail.com> wrote: > You could go to django docs > > > [image: --] > >

alternative to smart_selects

2020-03-09 Thread Manos Zeakis
Hi all I need to implement a dynamic dropdown menu field on a Model that is depended on another of its fields and I saw that there is smart_selects for that. I installed it and followed the instructions and declared ChainedForeignKey but the field is finally empty. The fields gets available v

using two foreign keys in one django model

2020-03-09 Thread namo
i'm working on a project the scenario : teacher model can upload courses , then if the teacher has not a profile the institute(model) which working at will upload the courses does this is write way i have tried in the course model? class Course(models.Model): course_name = models.CharField(

Django Searchfilter not functioning I don't understand why

2020-03-09 Thread mick
views.py class UserListView(generics.ListAPIView): queryset = User.objects.all() serializer_class = UserSerializer filter_backends = [filters.SearchFilter,OrderingFilter,] search_fields = ['first_name'] def get(self,request): users=User.objects.all() serializer=UserSerializer(users,

Re: send free sms on phone and email to user

2020-03-09 Thread Ryan Nowakowski
On March 9, 2020 1:17:22 AM CDT, sagar ninave wrote: >hello community, > >i want to send free sms on mobile phone and email through django so how >i >can do it For email, Django has great support built-in. For SMS, I think Twilio might have a free tier. -- You received this message because

Re: using two foreign keys in one django model

2020-03-09 Thread Ryan Nowakowski
On March 9, 2020 5:13:40 AM CDT, namo wrote: >i'm working on a project the scenario : teacher model can upload >courses , >then if the teacher has not a profile the institute(model) which >working at >will upload the courses does this is write way i have tried in the >course > model? When yo

CONN_MAX_AGE and Oracle

2020-03-09 Thread Dan Davis
One or my power users claims that CONN_MAX_AGE is not working properly with Oracle. I've written a minimal backend to wrap the standard Oracle backend, and to log connection creation. I am seeing multiple connections sometimes in the same second with a CONN_MAX_AGE of 300. I am currently atte

Re: Django-React with webpack or create-react-app

2020-03-09 Thread Dan Davis
If you wish to use cache busting, or create-react-app sets that up by default, you can configure some special logic for loading the bundles. Mine is per-process based, and assumes that since the bundle will be cached, it reasonable not to create a new static file loader: https://gist.github.com/

Re: send free sms on phone and email to user

2020-03-09 Thread Adam Bouras
We can create an account with Twilio, which provides step-by-step to send text message using python. https://www.twilio.com/docs/libraries/python On Monday, March 9, 2020 at 1:17:22 AM UTC-5, sagar ninave wrote: > hello community, > > i want to send free sms on mobile phone and email through dja

unable to read POST parameters sent by payment gateway

2020-03-09 Thread Sreekanth
I am unable to read POST parameters sent by payment gateway after payment was processed. Payment gateway redirects to returnUrl (I pass this to payment gateway before payment was processed) with some parameters by POST request. In url.py path('cashfreeresponse/',views.cashfree_response, name

activating models

2020-03-09 Thread Atıl Ardıç
I added polls app in below place;But i am getting errors while i was running makemigrations INSTALLED_APPS = [ 'polls.apps.PollsConfig' 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages',

Re: activating models

2020-03-09 Thread Omar Abou Mrad
We need to see your directory structure. meanwhile see if 'polls' works instead 'polls.apps.PollsAppConfig' On Mon, Mar 9, 2020, 11:14 PM Atıl Ardıç wrote: > > I added polls app in below place;But i am getting errors while i was > running makemigrations > > INSTALLED_APPS = [ > 'polls.apps.

Re: activating models

2020-03-09 Thread SHANKAR JHA
I think you forget to put a comma (,) at the last. Try using the polls and check if it's working or not. It's best practice to put your app at the last because you want all the package to load in first when you open your website. INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.