Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
Django AttributeError: 'QuerySet' object has no attribute 'objects'
when i run this query i'm getting the error above and some times i got an empty list [''] for the same query !, i already have in my admin some product attached to the category that i'm trying to filter the query i run product1 = product.objects.all() product2 = product.objects.filter() the class code class customer(models.Model): name = models.CharField(max_length=200, null=True) phone = models.CharField(max_length=15, null=True) Email = models.CharField(max_length=100, null=True) date_created = models.DateTimeField(auto_now_add=True) def __str__(self): return self.name class product(models.Model): category_list = [ ('in door', 'in door'), ('out door', 'out door'), ] name = models.CharField(max_length=200, null=True) price = models.FloatField() category = models.CharField(max_length=200, null=True, choices=category_list) description = models.CharField(max_length=200, null=True, blank=True) date_created = models.DateTimeField(auto_now_add=True) tags_pro = models.ManyToManyField(tags) def __str__(self): return self.name -
Is there a way to run a separate looping worker process that references a Django app's models?
I have a webapp that monitors sites that users add for any changes. To do this, I need to have some sort of separate background thread/process that is constantly iterating through the list of sites, pinging them one at a time, and emailing any users that are monitoring a site that changes. I am currently using a thread that I initialize at the end of my urls.py file. This works fine with Django's development server, but it begins to break down once I deploy it to Heroku with Gunicorn. As soon as there are multiple connections, multiple copies of the worker thread get started, as Gunicorn starts more worker threads to handle the concurrent connections (at least, this is what I think is the reason behind the extra threads is). This causes duplicate emails to be sent out, one from each thread. I am now trying to find another means of spawning this worker thread/process. I saw a similar inquiry here, but when I tried the posted solution, I was unable to reference the models from my Django app and received this error message when I tried to do so: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. I have also tried using … -
Django: change queryset data with custom list of dicts
I have a CustomManager that uses CustomQuerySet class CustomQuerySet(QuerySet): def pre_process(self): return [{'id': 1}, {'id': 2}, {'id': 2}] def post_process(self): pass class CustomManager(models.Manager): def get_queryset(self): return CustomQuerySet(model=self.model, using=self._db, hints=self._hints) And something like Article.objects.pre_process(), is, obviously a list of dicts, and .post_process() could not be called anymore Is there a way to wrap returning list of dicts somehow to be able to call .post_process(), like: def pre_process(self): return self.clone([{'id': 1}, {'id': 2}, {'id': 2}]) I understand that I can create another class for that, but, just for science -
Ajax call to get list of objects clicked on
I am trying to use an AJAX call to send data to my django view, which I then hope to use in another view. When a user clicks on a particular word, known_words must go up by one (this part works). But I also want to know which word the user clicked on (I have access to this in the template: {{item.0}}. And this is the part that I cannot get to work. The relevant part of my html (this is the last column of my table, the first column contains {{item.0}}): <a href="javascript:" class="word_known btn btn-warning btn-sm" data-word="{{item.0}}" data-songpk="{{song_pk}}" data-userpk="{{user_pk}}">Yes</a> My js: $(document).ready(function() { var known_words = 0; var clicked_words = [] $(".word_known").click(function() { known_words++; var reference = this; var songpk = $(this).data('songpk'); var userpk = $(this).data('userpk'); var clicked_words = $(this).data('clicked_words'); //I know this part is wrong, how can I append the word to the list? $.ajax({ url: "/videos/songs/vocab/known/"+songpk+"/"+userpk+"/", data: {known_words: known_words, clicked_words: clicked_words}, success: function(result) { $(reference).removeClass("btn-warning"); $(reference).addClass("btn-success"); $(reference).text("Known"); }, failure: function(data) { alert("There is an error!") } }) }); }) Views: def word_known(request, pk_song, pk_user): if request.method =='POST': pass elif request.method == 'GET': known_words = request.GET.get('known_words', '') clicked_words = request.GET.get('clicked_words', '') request.session['known_words'] = known_words clicked_words = [] … -
How to have a database that can hold millions of field of data in Django?
So I've been coding python and more specifically using Django to build web applications. I've been building an app that I would eventually like to put out onto the web and since this app has a total of six models(a number which would most likely increase in the future) and each have about 3-6 model fields, I am worried that the database would reach its limit too fast even using a database such as PostgresSql. So my question is how could I cope with such a scenario and have a database that can store millions of fields of data? I know instagram uses django and they have hundreds of millions of users, so how could I replicate that large of a database? -
django: redirecting to referred page after login
In my django project I use the LoginView from contrib.auth to let users login. Currently a user is redirected to the mainpage, when he successfully logged in. But since I'm adding some features that require authentication, I'd like to redirect unauthenticated users to the login page and then back to the page they originally requested once they are logged in. In the internet I found several solutions, but none of them works for me, either because they are outdated or because they use custom login methods. Although I could implement my own login method, I would like to stick to the built in functionality if possible. Here is my code so far: urls.py from django.contrib import admin from django.urls import path from django.conf.urls import include from django.contrib.auth import views as auth_views urlpatterns = [ path('', include('Mainpage.urls')), path('index/', include('Mainpage.urls'), name='index'), path('login/', auth_views.LoginView.as_view(template_name='login/login.html', redirect_field_name='next'), name='login'), path('test/', include('test.urls'), name='test'), ] login-template {% extends "base.html" %} {% block content %} {% if not user.is_authenticated %} <h2>Logge dich in deinen Account ein:</h2> {% if form.errors %} <p style="color: red">Benutzername und/oder Passwort war falsch. Bitte versuche es erneut.</p> {% endif %} <form method="post"> {% csrf_token %} {% if request.POST.next %} <input type="hidden" name="next" value="{{ request.POST.next }}" … -
Using Django with Python - Views is not defined when trying to import
I am working through the following YT vid on Django and Python as I am looking to make my first app and trying to learn how Django works: https://www.youtube.com/watch?v=F5mRW0jo-U4 I am working on adding new Views to an app called Pages and trying to import the views from that app but for some reason keep getting: NameError: 'views' is not defined. I am sure this is something small that I am missing due to my newness with python in general and importing. Here is my current code: from django.contrib import admin from django.urls import path #from Pages import views from Pages.views import homepage_view, toybox_view, lounge_view, gym_view urlpatterns = [ path('', views.homepage_view, name='home'), path('toybox/', views.toybox_view, name='toybox'), path('lounge/', views.lounge_view, name='lounge'), path('gym/', views.gym_view, name='gym'), path('admin/', admin.site.urls), ] The second 'from' statement is the one that does not work - the commented out statement does work, I was just trying to be more specific with my imports. I have the 'src' folder that has my project - DogtopiaWeb and two apps, Dogs, and Pages. Inside of the Pages app is the views.py that I am trying to import with the above from statement. Any idea why it can't identify the views.py inside the Pages … -
zsh: command not found: virtualenv
I am trying to install virtualenv on Mac Terminal for Django but its showing me - zsh: command not found: virtualenv and i also tried following command @macbook-air trydjango % virtualenv-p python3 . zsh: command not found: virtualenv -p @macbook-air trydjango % pip install virtualenv zsh: command not found: pip I also tried to run the commands ad per this article https://opensource.com/article/19/5/python-3-default-mac#what-to-do $ brew install pyenv but not working How can i install this. I have no idea where to begin researching this. -
/wsgi.py' cannot be loaded as Python module Error
I have configured Django 2.1.15 on Centos 7 with Apache 2.4.6-93., mod_wsgi, Virtualenv and Postgres. The Apache log error: [wsgi:error] [pid 4829] mod_wsgi (pid=4829, process='myapp', application=''): Loading WSGI script '/var/www/myapp/myapp/wsgi.py'. [wsgi:error] [pid 4829] mod_wsgi (pid=4829): Target WSGI script '/var/www/myapp/myapp/wsgi.py' cannot be loaded as Python module. [wsgi:error] [pid 4829] mod_wsgi (pid=4829): Exception occurred processing WSGI script '/var/www/myapp/myapp/wsgi.py'. [wsgi:error] [pid 4829] Traceback (most recent call last): [wsgi:error] [pid 4829] File "/var/www/myapp/myapp/wsgi.py", line 12, in <module> [wsgi:error] [pid 4829] from django.core.wsgi import get_wsgi_application [wsgi:error] [pid 4829] ModuleNotFoundError: No module named 'django.core' [wsgi:info] [pid 4829] [remote 192.168.146.168:54553] mod_wsgi (pid=4829, process='myapp', application=''): Loading WSGI script '/var/www/myapp/myapp/wsgi.py'. [Fri Jul 10 23:27:22.057619 2020] [wsgi:error] [pid 4829] [remote 192.168.146.168:54553] mod_wsgi (pid=4829): Target WSGI script '/var/www/myapp/myapp/wsgi.py' cannot be loaded as Python module. [wsgi:error] [pid 4829] mod_wsgi (pid=4829): Exception occurred processing WSGI script '/var/www/myapp/myapp/wsgi.py'. [wsgi:error] [pid 4829] Traceback (most recent call last): [wsgi:error] [pid 4829] File "/var/www/myapp/myapp/wsgi.py", line 12, in <module> [wsgi:error] [pid 4829] from django.core.wsgi import get_wsgi_application [wsgi:error] [pid 4829] ModuleNotFoundError: No module named 'django.core' And here is my apache conf file: <VirtualHost *:80> DocumentRoot /var/www/ Alias /static /var/www/myapp/static <Directory /var/www/myapp/static> Options FollowSymLinks Order allow,deny Allow from all Require all granted </Directory> ErrorLog /var/www/myapp/logs/apis_error.log CustomLog /var/www/myapp/logs/apis_access.log combined LogLevel info … -
how to get latitude and longitude from users web browser or mobile device with geodjango?
how to get latitude and longitude from users web browser or mobile device with geodjango? I want to get the latitude and longitude of the user currently logged in. I will save it as a form at front end and save it to the db. But I need to get latitude and longitude via the web browser or mobile device they are using. -
App crashed error while deploying Django app to Heroku
The app works fine locally with python manage.py runserver The error 2020-07-10T22:41:50.994030+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" [removed for privacy] dyno= connect= service= status=503 bytes= protocol=http Things which I confirm Procfile created with web: gunicorn appname.wsgi requirements.txt is complete no static files git configured -
What is best practice for dealing with blank ('') string values on non-nullable model fields?
In Django/postgres if you have a non-nullable field, it's still possible to store a blank str value '' for certain field types (e.g. CharField, TextField). Note I am not referring to blank=False, which simply determines if the field is rendered with required in a modelForm. I mean a literal blank string value. For example, consider this simple model that has null=False on a CharField: class MyModel(models.Model): title = models.CharField('title', null=False) The following throws an IntegrityError: MyModel.objects.create(title=None) Whilst the following does not, and creates the object: MyModel.objects.create(title='') Is this an unintended consequence of combining postgres with Django, or is it intended / what practical uses does it have? If it's unintended, what's best practice to deal with this? Should every CharField and TextField with null=False also have a CheckConstraint? E.g. Class Meta: constraints = [ models.CheckConstraint( check=~models.Q(title=''), name='title_required' ) ] -
geckodriver not opening firefox on ubuntu using selenium with django
I have spent the whole day tackling this problem. my selenium code works on widows,i needed celery and my best option was to switch to my ubuntu os(version 20.) The page were it is supposed to display the scraped data shows message:connection refused. geckodriver is version 26 This is the error. File "/home/maro/Desktop/crypto/cert/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "/home/maro/Desktop/crypto/cert/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "/home/maro/Desktop/crypto/cert/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/maro/Desktop/crypto/forex/views.py", line 80, in pricelist driver = webdriver.Firefox(executable_path='/usr/bin/geckodriver') File "/home/maro/Desktop/crypto/cert/lib/python3.8/site-packages/selenium/webdriver/firefox/webdriver.py", line 170, in __init__ RemoteWebDriver.__init__( File "/home/maro/Desktop/crypto/cert/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__ self.start_session(capabilities, browser_profile) File "/home/maro/Desktop/crypto/cert/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/home/maro/Desktop/crypto/cert/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/home/maro/Desktop/crypto/cert/lib/python3.b/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: connection refused i have updated my firefox from version 75 to 80 and still no change. i have changed driver path multiple times and still and the error still remains the same. this is my geckodriver log 1594416320001 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileS5CJqR" the geckodriver is executable, i have also checked the hosts to see if localhost was attached to 127.0.... … -
How to show all categories in one django template
I have been working on a project in which a user can make a post and put it on diferent categories, I have a view that is supposed to display all the posts from all the categories but it is displaying all the categories in order and the posts have to be displayed in a random order mixing all the categories. The error here is that the view is displaying all the categories in order, like first all the posts from the action category and then all the posts from the sports category when it should be mixed. What can I do to display all the posts from all the categories in a mixed order? views.py def matesmain(request): if request.user.has_posts(): action = Mates.objects.filter(categories='action') sports = Mates.objects.filter(categories='sports') context = { 'action' : action, 'sports' : sports, } print("nice3") return render(request, 'mates.html', context) mates.html {% for act in action %} {% if act %} I have the posts from action category here {% endif %} {% endfor %} {% for sprt in sports %} {% if sprt %} I have the posts from sports categpry here {% endif %} {% endfor %} -
Django: Saving foreign key
I'm new in Django, From the Models below i don't want to let user choose the customer, but i want to save the customer_id in Fleet Model. How can i do that? Models class Customer(models.Model): customer_name = models.CharField(max_length=250) class Fleet(models.Model): customer = models.ForeignKey(Customer, on_delete=models.CASCADE) fleet_name = models.CharField(max_length=250) Forms class FleetForm(forms.ModelForm): class Meta: model = Fleet fields = ['fleet_name'] -
Invalid command WSGIDaemonProcess, while hosting site on plesk. plese help, django hoting
I was hosting my website on a brand new vps, however, when I tried to configure plesk files I am getting error saying Invalid Apache configuration: AH00526: Syntax error on line 1 of /var/www/vhosts/system/mysite.com/conf/vhost.conf: Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module not included in the server configuration WSGIDaemonProcess mysite.com python-path=/var/www/vhosts/mysite.com/httpdocs:/var/www/vhosts/mysite.com/Envs/venv/lib/python2.7/site-packages WSGIProcessGroup mysite.com Alias /media/ /var/www/vhosts/mysite.com/httpdocs/media/ Alias /static/ /var/www/vhosts/mysite.com/httpdocs/static/ <Directory /var/www/vhosts/mysite.com/httpdocs/static> Require all granted </Directory> <Directory /var/www/vhosts/mysite.com/httpdocs/media> Require all granted </Directory> WSGIScriptAlias / /var/www/vhosts/mysite.com/httpdocs/testproj/wsgi.py <Directory /var/www/vhosts/mysite.com/httpdocs/testproj> <Files wsgi.py> Require all granted </Files> </Directory> Please help. -
Python model to store data in Firebase
I'm going to write a web app using Django. Firebase will be used as the database. I'm just starting out with python/Django but I've some experience with Firebase. From the Django documentation, it seems like model is a way to store data in python. Is it like an object that I can then send to firebase and retrieve later? I'm really confused and I got no answers from searching google. -
Anonymous DB in AWS RDS
I am using EBS with an AWS Postgres RDS for a Django app. I am collecting emails and survey responses. I want to have one DB where everything is stored, so emails and survey responses (PII), to populate the UI of the website. And I want to have a second DB where just the survey responses are stored (anonymous) so I can run analytics on them. This is to comply with GDPR. How can I achieve this? Thanks!! -
Django auto StatReloader
I'm working on a Django CMS project with wagtail (not an expert) and I have to constantly add new images to the page so I have a class that checks for files in a folder and then adds the images to the page, and it works ok, the problem is when a new image is added to the folder, it doesn't reload (not a cache problem), I have to go to any file of the project (views.py, models.py..) and then crtl save and then the new image is added. I checked this two questions How to automatically reload Django when files change? and Django Not Reflecting Updates to Javascript Files? and I implemented django-livereload-server which works fine, it adds the new image without doing f5 but I still have to make the crtl save to any project file to make it happen this is what I have in my models.py class ItemsFolder(): files_folder=os.listdir('C:/Users/g-aka/Desktop/EnsayoImagenes') class Folders(Page): template = "almacen_folders/folders.html" description = models.TextField( blank=True, max_length=500, ) internal_page = models.ForeignKey( 'wagtailcore.Page', blank =True, null = True, related_name = '+', help_text = 'Seleccionar una pagina interna', on_delete = models.SET_NULL, ) external_page = models.URLField( blank= True, ) button_text = models.CharField( blank=True, max_length=500, ) folder_image = … -
Gateway Timeout Error : Django deployment in Hostgator VPS - PHP and Python on same server - easyapache24 and mod-wsgi
I'm trying to run django using mod_wsgi module in easyapache4 on CentOS 7 VPS provided by Hostgator. PHP and Django on same server What I tried so far: created venv and project in /home/user/public_html/demo/django/ and added additional virtual host configuration at the end of the existing virtual host config for www.ourdomain.com by loading external config file. There was no errors in config file. Apache restarted successfully. PHP projects are running fine. This is a part of the main apache conf file of our main domain www.ourdomain.com <VirtualHost ipaddress:80> ServerName ourdomain.com ServerAlias www.ourdomain.com DocumentRoot /home/user/public_html ServerAdmin webmaster@ourdomain.com UseCanonicalName Off # configuration to load modules # To customize this VirtualHost use an include file at the following location Include "/etc/apache2/conf.d/userdata/std/2_4/user/ourdomain.com/*.conf" </VirtualHost> I've added a conf file at /etc/apache2/conf.d/userdata/std/2_4/user/ourdomain.com/ which includes Alias /demo/django/static /home/user/public_html/demo/django/static <Directory /home/user/public_html/demo/django/static> Require all granted </Directory> Alias /demo/django/media /home/user/public_html/demo/django/media <Directory /home/user/public_html/demo/django/media> Require all granted </Directory> <Directory /home/user/public_html/demo/django/testproject> <Files wsgi.py> Require all granted </Files> </Directory> WSGIDaemonProcess testdjango python-path=/home/user/public_html/demo/django python-home=/home/user/public_html/demo/django/venv/lib/python3.6/site-packages WSGIProcessGroup testdjango WSGIScriptAlias /demo/django /home/user/public_html/demo/django/testproject/wsgi.py Checked if mod_wsgi is loaded # sudo /usr/sbin/httpd -M [sudo] password for user: Loaded Modules: core_module (static) so_module (static) http_module (static) ... suphp_module (shared) wsgi_module (shared) passenger_module (shared) # When I try to access http://ourdomain.com/demo/django with … -
Django with simple-jet authentication credentials not provided
I have a Django project using simple-jwt, with a test view that returns hello world. settings.py REST_FRAMEWORK = { 'DEFAULT_PERMISSION_CLASSES': [ 'rest_framework.permissions.IsAuthenticated', ], 'DEFAULT_AUTHENTICATION_CLASSES': [ 'rest_framework_simplejwt.authentication.JWTAuthentication', ], } SIMPLE_JWT = { 'AUTH_HEADER_TYPES': ('Bearer',) } CORS_ORIGIN_ALLOW_ALL = True CORS_ALLOW_CREDENTIALS = True view.py from rest_framework.views import APIView from rest_framework.response import Response from rest_framework.permissions import IsAuthenticated class HelloView(APIView): permission_classes = (IsAuthenticated,) def get(self, request): content = {'message': 'Hello, World!'} return Response(content) I have an interceptor in angular 9. import { Injectable } from '@angular/core'; import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http'; import { AuthService } from './auth.service'; import { Observable } from 'rxjs/Observable'; @Injectable() export class TokenInterceptor implements HttpInterceptor { constructor(public auth: AuthService) {} intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { request = request.clone({ withCredentials: true, setHeaders: { Authorization: 'Bearer ${this.auth.getToken()}', } }); console.log(request) return next.handle(request); } } all requests are returned 401 authentication details not provided. Please help? -
Django Many Catagories to Many Subcatagories in Template
I am using Django to create an application that displays data on various variables. I have these all categorized, but since many variables fall under multiple categories, it's a many to many relationship. I am trying to modify my base template to use drop down menus where each category is a selection, and then the variable names appear on sub menus. In order to make this work, created a custom context processor which holds views to make some global template tags, so that I can bring in the views on my base template. How would I go about either writing a new view or aranging the template tags so that this menu structure will work? Custom context processor: from .models import Category, Subcategory, Indicator from django import template # The context processor function def categories(request): all_categories = Category.objects.all() return { 'categories': all_categories, } def indicators(request): all_indicators = Indicator.objects.all() return { 'indicators': all_indicators, } Models: from django.db import models from django.contrib.auth.models import User class Indicator(models.Model): name = models.CharField(max_length = 200, blank=False) short_name = models.CharField(max_length = 200, blank=False) context_link = models.URLField(blank=True, null=True) category = models.ManyToManyField(Category, blank=True) subcategory = models.ManyToManyField(Subcategory, blank=True) notes = models.TextField(blank=True, null=True) def __str__(self): return self.name class Category(models.Model): name = … -
"Method Not Allowed (Post): /" error while using ontact us form on home
I've added the contact us functionality in the footer using inclusion tag and form on my website. It's working perfectly fine on all the pages except the "home" page, throwing this error: Method Not Allowed (POST): / Method Not Allowed: / [11/Jul/2020 01:31:18] "POST / HTTP/1.1" 405 0 Following are the inclusion tag and the form: @register.inclusion_tag('contact_us.html', takes_context=True) def contact_form(context): request = context['request'] context['success']=False if request.method == 'POST': form = ContactUsForm(request.POST) if form.is_valid(): msg =form.save(commit=False) msg.contact_user =request.user msg.save() # messages.success(request, 'Your message has been successfully sent!') context['success']=True form = ContactUsForm() context['contact_form']=form return context class ContactUsForm(forms.ModelForm): def __init__(self,*args,**kwargs): super(ContactUsForm,self).__init__(*args,**kwargs) self.fields['message'].widget.attrs['rows']=4 self.fields['message'].widget.attrs['placeholder'] = 'Your Message' self.fields['message'].label ='' class Meta: model =ContactUs fields =('message',) It's throwing error 405 only on the home page. -
Django framework benefit for websites?
The official documentation for Django states to not use Django as a web server in production. "We're in the business of making Web frameworks, not Web servers". They also don't recommend using the python sqllite DB. Yet a online search states multiple companies are using Django in production. I am guessing this means they are using the framework and not the webserver service. Since the Django is built on Python, does this just mean that they chose Django so they could build the application in python? What other pros does using the django framework provide if you're not supposed to use the stock webserver or sql databases in production? -
Nginx django react proxy pass
I am trying to deploy django and react app, these are two separate app. like, django will be run as proxy pass and static file will be get in root by default: this is my current config: server { listen 80; server_name eddddddxxxxxcompute.amazonaws.com; client_max_body_size 4G; location = /favicon.ico { access_log off; log_not_found off; } location / { alias /home/ubuntu/frontend/dist/; try_files $uri @proxy_to_app; } location @proxy_to_app { proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $server_name; proxy_pass http://unix:/home/ubuntu/backend/config.sock; } } Django is running on gunicorn and proxy passed there and it is working good in django app, there is nothing in root, it is actually api url like /api/v1/blabla the problem is, the aws url only showing Django app url but react build static file not showing. I want, react build file should appear in root url but it is not appearing anywhere. only I see Django URL only. Can anyone help me to get it done? i need the static/react build file in root and django/proxy_pass should appear following their routing,