Django Static Files Not Loading After EC2 Deployment with Nginx

2024-08-29 Thread Kiran Barai
Hello everyone, 1. I’m having trouble with my Django project after deploying it on an EC2 instance. The issue is that my static files (CSS, JavaScript) are not loading correctly. 2. second issues in URL: - issue with a Django project where the URL generated using the {% url %

AttributeError at /invoice/add_invoice/ 'int' object has no attribute '_meta' while using in_bulk

2022-07-10 Thread Kiran Chavan
I want to convert the model instances into a JSON object and then pass it to the HTML file. However, I get an AttributeError at this line: `data = serializers.serialize("json", Inventory.objects.in_bulk())` The full `views.py`: def add_invoice(request): form = InvoiceForm(request.POST

Uncaught TypeError: data.find is not a function

2022-07-10 Thread Kiran Chavan
I am trying to convert the model instances into a JSON object and then according to the value selected in the dropdown menu, I want to assign its amount to the `line_one_unit_price` text field in the form. Javascript code: {{ data|json_script:"hello-data" }} const data = JSON.

Re: MongoDB connection with django

2022-01-18 Thread Sai Kiran Mekala
ql', 'oracle', 'postgresql', 'sqlite' These is the error On Tue, 18 Jan 2022, 16:07 Sai Kiran Mekala, wrote: > Same brother , > > I tried with mongoengine still persist with same exception error . > > Thanks , > Saikiran > > On Tue, 18

Re: MongoDB connection with django

2022-01-18 Thread Sai Kiran Mekala
Same brother , I tried with mongoengine still persist with same exception error . Thanks , Saikiran On Tue, 18 Jan 2022, 15:53 Kasper Laudrup, wrote: > On 18/01/2022 03.44, Sai Kiran Mekala wrote: > > Yes , I was notified with the same error but I was unable to connect > > M

Re: MongoDB connection with django

2022-01-17 Thread Sai Kiran Mekala
t; On 17/01/2022 12.09, Sai Kiran Mekala wrote: > > Hi All, > > > > Can someone please assist to connect mongodb with django where I was > > notified an error > > > > django.core.exceptions.ImproperlyConfigured: 'djongo' isn't an available &g

MongoDB connection with django

2022-01-17 Thread Sai Kiran Mekala
Hi All, Can someone please assist to connect mongodb with django where I was notified an error django.core.exceptions.ImproperlyConfigured: 'djongo' isn't an available database backend or couldn't be imported. Check the above exception. To use one of the built-in backends, use 'dja ngo.db.bac

Re: Fetching data from database

2020-10-28 Thread Kiran Bangde
://docs.djangoproject.com/en/3.1/ref/django-admin/#loaddata> commands. > I suspect this is what you are looking for. > > > > On 29 Oct 2020, at 05:33, Kiran Bangde wrote: > > Hi everyone, > > Iam stuck at a point ...I want to fetch a data from a database , where &g

Fetching data from database

2020-10-28 Thread Kiran Bangde
Hi everyone, Iam stuck at a point ...I want to fetch a data from a database , where data should be insert manually , plz help me how to do that how to fire a queries in DB and how to use primary key and foreign key over here. Please help me ,Iam new to Django . Thanks in advance -- You received

Re: How to migrate MySQL -> PostgreSQL?

2019-06-03 Thread Kiran Capoor
Hi, As said by ankhi, change to pgsql in settings before that use the django fixtures feature to take a backup of the data etc. try in test env only as this has breaking potential. Regards, Kiran Capoor On Tue, 4 Jun 2019 at 01:33, Ankhi Roy wrote: > Hey Victor, > > Do you me

Re: ModelForm for model that includes multiple items of one kind

2019-03-30 Thread Kiran Capoor
Hi, To connect multiple forms you should use: FormSets https://docs.djangoproject.com/en/2.1/topics/forms/formsets/ Or https://docs.djangoproject.com/en/2.1/topics/forms/modelforms/#using-an-inline-formset-in-a-view Read about it in the above links. Regards, Kiran Capoor On Sunday, March

Re: REG: Why my django email settings not sending email notifications?

2019-02-18 Thread Kiran Capoor
you create a dummy/ Dev only gmail account. Regards, Kiran Capoor Sent from my iPhone > On 18-Feb-2019, at 13:41, Siddharth Tamang > wrote: > > if you have MFA enabled on your gmail, you may have to disable it > >> On Mon, Feb 18, 2019 at 1:08 PM Onkar Narkar >> wr

Re: saleor error NoReverseMatch at /en/

2018-09-04 Thread Ravi Kiran Katukam
any one developed kivy app for enterprise needs along with django web need help On Tue, Sep 4, 2018 at 5:46 PM, Julio Biason wrote: > Hey Tim, > > Are you sure your view is defined with spaces in the urls.py? Shouldn't it > be {% url 'manifest' %} instead, with no spaces around the name? > > O

Re: Error while doing django tutorial part 2

2018-05-26 Thread Kranthi Kiran
xt AttributeError: 'Choice' object has no attribute 'question_text' >>> On Saturday, 26 May 2018 22:49:04 UTC+5:30, Kranthi Kiran wrote: > > Hello User, > > I am following django tutorial at > https://docs.djangoproject.com/en/2.0/intro/tutorial02/

Error while doing django tutorial part 2

2018-05-26 Thread Kranthi Kiran
Hello User, I am following django tutorial at https://docs.djangoproject.com/en/2.0/intro/tutorial02/ After modifying polls/models.py and when running python3.6 manage.py shell again I am getting the following error at the following >>> q = Question.objects.get(pk=1) # Display any choices

Modelform with reverse foreignkey

2016-09-27 Thread Kiran
down votefavorite I am trying to create a ModelForm for movie Model from which it must be possible to select a number of theatre for each movie.Since theatre is reverse foreignkey i think ModelForm doesn't auto

Re: Architecture of multiple Sites

2016-03-23 Thread Sai Kiran
5:30, jorr...@gmail.com wrote: > > But if I don't set the SITE_ID in settings.py I can't use the > CurrentSiteManager, correct? > > > On Tuesday, March 22, 2016 at 1:33:39 PM UTC+1, Sai Kiran wrote: >> >> If you need to use single projects for more than do

Re: Architecture of multiple Sites

2016-03-22 Thread Sai Kiran
If you need to use single projects for more than domains, create an entry in django_site model by giving domain as well as verbose name. Don't give any SITE_ID in settings.py, instead of this you can use Site.objects.get_current() in your view and compare the domain names and change the header

Make Money working Online. I Make $850 in 7 Days....

2008-01-11 Thread Kiran
Make Money working Online. I Make $850 in 7 Days Only because of http://cashplus.freehostia.com The Only Source where i can make money without investment. http://cashplus.freehostia.com --~--~-~--~~~---~--~~ You received this message because you are subscribed