Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
drf-spectacular define request schema as JSON Array (like Serializer(many=True))
Is it possible to define "many" serializer schema in drf-spectacular? The request should take this data (JSONArray): MonthlyIncomeSerializer(many=True) Which is a list of objects/dictionaries: [ {'year':..., 'month':..., 'amount': ...}, {'year':..., 'month':..., 'amount': ...}, {'year':..., 'month':..., 'amount': ...}, ] I tried: class PartialDTIPrenajomView(APIView): @extend_schema(parameters=[MonthlyIncomeSerializer(many=True)]) def post(self, request, **kwargs): which doesn't render anything in Swagger. -
Django/Docker: web container not up-to-date code
I use Django docker app and do not manage to apply code update to my web container. I've tried to delete all containers (docker rm -f ID ; docker system prune) and images (docker rmi -f ID ; docker image prune) related to my app and re-build with docker-compose -f docker-comose.preprod.yml build Then I run docker-compose -f docker-comose.preprod.yml up but for some reasons when I connect to my web running container (docker exec -it web sh) and read my updated files, I observe that update are not applied... How should I do to make my update applied? -
Django get count of related objects with value and add it to an annotation
If I want to annotate the number of related objects to each parent object, I would do this: Agent.objects.annotate(deal_count=Count('deal')) If my Deal objects have a closed boolean, how would I annotate the number of deals marked as closed? -
designating/connecting a model to a user - django
Im trying to make a social media site and wanted to connect a user to work experience. My current form is from django import forms from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.forms import UserCreationForm, AuthenticationForm class RegisterForm(UserCreationForm): it takes in regular registration parameters like email, name, etc. If i was to make a several other models in the models.py does user = models.OneToOneField(User, on_delete=models.CASCADE) act as a connection? I want to connect several models to a certain user, so im assuming i'd have to drop one to one and instead use foreign key to reference the forms. Or is there a better approach to connecting a user with several other models along with ability to edit profiles -
How to use formset to get data from localstorage - DJANGO
i want to get data from local storage (because i don't use database), i use form NOT MODALS. views.py : def homepage(request): form_class = Audio_store form = form_class(request.POST or None) if request.method == "POST": form = Audio_store(request.POST, request.FILES) if form.is_valid(): handle_uploaded_file1(request.FILES['password']) handle_uploaded_file(request.FILES['audio']) return render(request, "homepage.html", {'form': form}) return render(request, "homepage.html", {'form': form}) def song(request): songmp3 = formset_factory(Audio_store) if request.method == 'POST': formset = songmp3(request.POST, request.FILES) if formset.is_valid(): audiomp3 = formset.get.context('audio') pass else: formset = songmp3() return render(request, 'homepage.html', {'formset': formset}) form.py : from django import forms class Audio_store(forms.Form): password=forms.FileField(widget=forms.FileInput(attrs={'style': 'width: 300px;', 'class': 'form-control', 'text-align' : 'center;'})) audio=forms.FileField(widget=forms.FileInput(attrs={'style': 'width: 300px;', 'class': 'form-control', 'text-align' : 'center;'})) can i use formset to get data from local storage? -
How do I iterate every item in a Django field using the <input type="select">?
I am a newbie in Django and I followed a video and used class Meta in creating the Django form. I wanted to modify the way the fields appear using HTML. Here is my code for Form: class AddForum(forms.ModelForm): class Meta: model = Forum fields = '__all__' labels = { 'post_title': 'Title of your post:', 'post_body': 'Content of your post:', 'author': 'Author:', 'forum_image': 'Attach image:', } def __init__(self, *args, **kwargs): super(AddForum, self).__init__(*args, **kwargs) self.fields['forum_image'].required = False I learned how to use <input> to add the post_title: <input class="for_post_title" type="text" name="post_title" placeholder="Forum Title"> like so. However, the author field as shown in Form must be entered using the dropdown menu. How should I iterate every existing author in the Django database and have it shown using the <select> element? -
Not able to pass post values from views.py to index.html in django
I am trying to show the form data received from the POST request on an HTML table. I have used JavaScript fetch API to submit the form and fetch the data in views.py . I am able to fetch the form data in views.py but I am not able to send it back to the HTML file to show the same data on a table. Without the fetch API submit, everything is working fine as per my need. I can't get what my mistake is. I have tried to remove all unnecessary parts to debug. Please let me know where I am going wrong. views.py def home(request): context={} if request.method=="POST": options_value=request.POST['dropdown_val'] value=request.POST['val'] print(options_value,value) context={"options_value":options_value, "value":value} return render(request, 'index.html',context) index.html <form method="POST" action="" id="form"> {% csrf_token %} <select class="form-select" aria-label="Default select example" name="options_value" id="dropdown_val" > <option disabled hidden selected>---Select---</option> <option value="1">Profile UID</option> <option value="2">Employee ID</option> <option value="3">Email ID</option> <option value="4">LAN ID</option> </select> <input type="text" class="form-control" type="text" placeholder="Enter Value" name="value" id="value" /> <input class="btn btn-primary" type="submit" value="Submit" style="background-color: #3a0ca3" /> </form> <table style="display: table" id="table"> <tbody> <tr> <th scope="row">ProfileUID :</th> <td>{{options_value}}</td> </tr> <tr> <th scope="row">First Nane :</th> <td>{{value}}</td> </tr> </tbody> </table> <script> let form = document.getElementById("form"); let dropdown_val = document.getElementById("dropdown_val"); let val … -
django rendering a search result based on which submit button
when i try to search from the navbar i want a simple query to execute based on an input type="submit" and name="searchInput" when i submit the second form from the searchPage i want a different kind of query to happen and render me the searchPage with the data in it however it keeps redirecting me to the home Page def home(request) : q = request.GET.get('searchInput') if q!=-1: offres = Offre.objects.filter( Q(title__icontains=q) | Q(user__username__icontains=q) | Q(description__icontains=q) | Q(wilaya__name__icontains=q) ) context = { 'offres': offres, } return render(request,'searchPage.html',context) return render(request,'index.html',{}) def is_valid_query_parameter(parameter): return (parameter!='' and parameter is not None) def search(request) : if request.GET['submit'] == 'searchInput': q = request.GET.get('searchInput') if request.GET.get('searchInput') !=None else '' offres = Offre.objects.filter( Q(title__icontains=q)| Q(user__username__icontains=q)| Q(description__icontains=q)| Q(wilaya__name__icontains=q)| Q(category__value=q) ) context = { 'offres':offres, } return render(request,'searchPage.html',context) wilaya = request.GET.get('wilaya') hotel = request.GET.get('hotel') house = request.GET.get('house') land =request.GET.get('land') nbedrooms = request.GET.get('bedrooms') nbathrooms = request.GET.get('bathrooms') minPrice = request.GET.get('minPrice') maxPrice = request.GET.get('minPrice') wifi = request.GET.get('wifi') kitchen = request.GET.get('kitchen') furniture = request.GET.get('furniture') # mustInclude = {'wifi' : wifi, # 'kitchen' : kitchen, # 'furniture' :furniture } # excludeList = [] qs = Offre.objects.all() if is_valid_query_parameter(wilaya) : qs.filter(wilaya__number = wilaya) if not is_valid_query_parameter(hotel) : qs.exclude(category__value = 'hotel' ) if not is_valid_query_parameter(house) : qs.exclude(category__value … -
Django. Star rating multiple form displayed in a grid view not working
I've got a little problem. I have a page that is used to rate ski resorts. They are displayed in a grid view and each resort has a star rating form beneath. The problem is that only the first item in the grid can be rated. I tried to assign each form an unique id but that didn't work. Here is the code: class AddRatingForm(forms.ModelForm): class Meta: model = ResortUserRating fields = '__all__' widgets = { 'resort_rating': forms.RadioSelect() } def __init__(self, pk, *args, **kwargs): super(AddRatingForm, self).__init__(*args, **kwargs) self.pk = pk self.fields['user'].initial = self.pk def clean(self): return self.cleaned_data {% for resort in dashboard_resorts %} <div class = "grid-item"> {% if resort.img %} <img class="card-img-top" src="{{resort.img.url}}" alt ="Card image cap" height="300px" width="380px"> {% endif %} <p> <b>{{resort.name|upper}} </b></p> <p> <b>{{resort.id|upper}} </b></p> <form method="post" action = "{% url 'aplicatie2:rating' %}"> {% csrf_token %} <input type = "hidden" name = "user" value = "{{user.id}}"> <input type = "hidden" name = "resorts" value = " {{resort.id}}"> <div class="rate"> <input type="radio" name="resort_rating" id="rating1" value="1" required /><label for="rating1" title="1"> </label> <input type="radio" name="resort_rating" id="rating2" value="2" required /><label for="rating2" title="2"> </label> <input type="radio" name="resort_rating" id="rating3" value="3" required /><label for="rating3" title="3"> </label> <input type="radio" name="resort_rating" id="rating4" value="4" required /><label … -
django submit multiple forms
have concocted the following so far. pretty sure its sloppy code, but its meant for some crude maintenance and seems to work up to the point i would like it to work. point is i get a long list of forms, i can use Ajax to select them them all or assign them all to the category all at once, that is exactly what i want. what i can not figure out however is to submit all these forms in one go, the code as is works that i can submit 1. but just like the select all and categorize all code, after selecting those i also would like to SUBMIT ALL <script language="JavaScript"> function toggle(source) { checkboxes = document.getElementsByName('blockbutton'); for(var i=0, n=checkboxes.length;i<n;i++) { checkboxes[i].checked = source.checked; } } </script> <script language="javascript"> function setDropDown() { var index_name = document.getElementsByName('ForceSelection')[0].selectedIndex; var others = document.getElementsByName('Qualifications'); for (i = 0; i < others.length; i++) others[i].selectedIndex = index_name; } </script> <input type="checkbox" onClick="toggle(this)" /> Toggle All<br/> <select name="ForceSelection" id="ForceSelection" onChange="javascript:return setDropDown();"> <option value="" selected="selected">Select Category</option> {% for category in categories %} <optgroup label="{{ category.name }}"> {% for item in category.subcategory_set.all %} <option val="{{ item.name }}"> {{ item.name }} </option> {% endfor %} </optgroup> {% … -
how to add slug argument to url in django?
i want to add slug in url using django like this <a href="{% url 'tutorials:tutorial' topic.tutorial_category.slug topic.tutorial_topic_category.slug topic.slug %} </a> i dont really know how to pass in triple slug in the url for example: i want to access the programming > html > introduction-to-html like this http://127.0.0.1:8000/tutorial/programming/html/introduction-to-html error Reverse for 'tutorial' with arguments '('', 'html', 'introduction-to-html')' not found. 1 pattern(s) tried: ['tutorial/(?P<main_category_slug>[^/]+)/(?P<topic_category_slug>[^/]+)/(?P<tutorial_slug>[^/]+)$'] topic.html {% for topic in topic %} <a href="{% url 'tutorials:tutorial' topic.tutorial_category.slug topic.tutorial_topic_category.slug topic.slug %}">{{topic.title}} - Start Now</a> {% endfor %} views.py def tutorial(request, main_category_slug, topic_category_slug, tutorial_slug): tutorial_category = TutorialCategory.objects.get(slug=main_category_slug) tutorial_topic_category = TutorialTopicCategory.objects.get(slug=topic_category_slug) topic = Topic.objects.filter(tutorial_topic_category=tutorial_topic_category) tutorial = Topic.objects.get(slug=tutorial_slug) # Getting all topics context = { 'topic': topic, 'tutorial':tutotial, } return render(request, 'tutorials/tutorial.html', context) urls.py path("<slug>", views.tutorial_topic_category, name='tutorial-topic-category'), path("<slug:main_category_slug>/<slug:topic_category_slug>", views.topic, name='topic'), path("<main_category_slug>/<topic_category_slug>/<tutorial_slug>", views.tutorial, name='tutorial'), `` -
How to quickly reset Django DB after changes?
I'm often experimenting around creating different models, changing relations and so forth. This usually happens when starting a new project. At this phase I do not want to create any migrations but instead just get the thing up and running. So i very often do this: rm db.sqlite3 rm -r project/apps/app/migrations/* python manage.py makemigrations app python manage.py migrate app python manage.py createsuperuser bla bla Is there any way to have this "reset" function more quickly? I frustratingly found out, that django does not allow superusers to be created by a shell script. Is there any way to purge the db without removing the users? How do you do this? -
How to send data with Url Django
I want to send {{order.id}}, but getting error like pictuce in bellow, please helping me to solve problem Image Error View.py def Detail_pem(request, idor): print(idor) return render(request, 'store/detail.html' ) pemby.html <!-- <a href="{% url 'Detail_pem' %}"><button data-product="{{order.id}}" data-act="{{order.name}}" class="btn btn-warning id_order btntam" >Detail</button> </a> --> <button data-product="{{order.id}}" data-act="{{order.name}}" class="btn btn-warning id_order btntam" >Detail</button> <a href="{% url 'Detail_pem' idor=order.id %}"></a> </td> </tr> {% endfor %} </tbody> </table> </div> <!-- <script type="text/JavaScript" src="{% static 'js/pem.js' %}"></script> --> <script> var id_order = document.getElementsByClassName('id_order') for (i = 0; i < id_order.length; i++) { id_order[i].addEventListener('click', function(){ var orid = this.dataset.product var ornm = this.dataset.act console.log('orid :', orid) console.log('ornm :', ornm) window.location.href = "{% url 'Detail_pem' %}" }) } urls.py path('Detail_pem/<idor>', Detail_pem, name='Detail_pem'), -
Password encryption in Django's model
I hope you are doing fine, I am currently working on a Django project and it's my first one so I have found lots of problems which I am fixing one by one, but I've really got stuck with this one. It's about Django's password encryption in the database records, it simply doesn't encrypt the password for all the users except the admin. I hope that u can help me and thank you for your time :D models.py from django.db import models from django.db.models import Model from passlib.hash import pbkdf2_sha256 from django.utils.translation import gettext_lazy as _ from .manager import * # Create your models here. class User(Model): id = models.AutoField(primary_key=True, unique=True) email = models.EmailField( _("email"),max_length = 254 ,null=False) password = models.CharField(max_length= 255, null=False) first_name = models.CharField(max_length=255) last_name = models.CharField(max_length=255) is_superuser = models.BooleanField(default=False) is_staff = models.BooleanField(default=False) is_active = models.BooleanField(default=False) objects=CustomUserManager() USERNAME_FIELD="email" REQUIRED_FIELDS= ["password"] class Meta: abstract = True verbose_name = _("user") verbose_name_plural = _("users") def __str__(self): return self.first_name + " " + self.last_name def getID(self): return self.id def getEmail(self): return self.email def getPass(self): return self.password def getFirstName(self): return self.first_name def getLastName(self): return self.last_name def checkIfSuperUser(self): return self.is_superuser def checkIfStaff(self): return self.is_staff def checkIfActif(self): return self.is_active def verify_password(self, raw_password): return pbkdf2_sha256.verify(raw_password, self.password) … -
AttributeError: module 'collections' has no attribute 'Iterator' python 3.10 django 2.0
Hello its a clone project but when ı try "python manage.py makemigrations" ım getting this error how can ı fix it? requirements django==2.0 django-ckeditor==5.4.0 django-cleanup==2.1.0 django-crispy-forms==1.7.2 django-js-asset==1.0.0 this error -
Convert a nested dictionary into list of tuples like (date,value)
I have a dict like this: {'2022':{'01':{'20':55,'25':80,'30':70},'08':{'04':14,'10':18}}} and I want convert it to list of tuples or lists like this: [("2022-01-20",55),("2022-01-25",80),("2022-01-30",70),("2022-08-04",14),...] The keys of dict are as year,month and day In other words, the keys must be converted to date -
I want to get different id of multiple select boxes after click on add button in ajax and using POST method send those value in django
When I click on add, then it will be adding and I'm getting same values of select and input boxes but I want the different id's every time for ajax call and change the value dynamically and send those values in django. I have tried 1 solution but after applying that my add functionality stop working. I have tried multiple solution and have been working on it for 2-3 weeks, but I didn't get what I want. $(document).ready(function() { var maxField = 10; //Input fields increment limitation var addButton = $('.add_button'); //Add button selector var wrapper = $('.field_wrapper'); //Input field wrapper var fieldHTML = '<section class="row"><div class="col-md-3 mt-2"><label for="CustomerCity" class="">Select Product</label><select class="form-control selectitem" name="item[]" id="selectitem" required><option selected>Select Item</option></select></div><div class="col-md-2 mt-2"><label for="CustomerCity" class="">Unit Price</label><input name="customer_city" id="customer_city" type="text" class="form-control" value="" placeholder="Unit Price" required></div><div class="col-md-2 mt-2"><label for="CustomerCity" class="">Quantity</label><input name="customer_city" id="customer_city" type="text" class="form-control" value="" placeholder="Quantity" required></div><div class="col-md-2 mt-2"><label for="CustomerCity" class="">Tax Amount</label><input name="customer_city" id="customer_city" type="text" class="form-control" value="" placeholder="Tax Amount" required></div><div class="col-md-2 mt-2"><label for="CustomerCity" class="">Extended Total</label><input name="customer_city" id="customer_city" type="text" class="form-control" value="" placeholder="Extended Total" required></div><div class="col-md-1 mt-2"><a href="javascript:void(0);" class="remove_button btn btn-danger mt-4 p-2 form-control">Delete</a></div></section>'; //New input field html var x = 1; //Initial field counter is 1 //Once add button is clicked $(addButton).click(function() { //Check maximum number … -
How to limit the number of responses to my for loop to 3 in Django Templates?
In my current Django template I have two models in use, which are defined in my views.py as: 'tasks' : IndividualTask.objects.all(), 'updates' : TaskUpdate.objects.all(), I have set up signals so that when there is an update to a task, an update is created. Currently, I iterate through each task, then each of their updates and pull out the relevant updates for each task, as shown below. {% for task in tasks %} {% for update in updates %} {% if task.id == update.task.id %} {{ update.update }} {% endif %} {% endfor %} {% endfor %} However, I would like to limit the number of updates I show to three. I have tried using slice, show below, but this limits all updates to the top 3 of all updates as opposed to the top 3 of each individual task's updates. {% for task in tasks %} {% for update in updates|slice:":3" %} {% if task.id == update.task.id %} {{ update.update }} {% endif %} {% endfor %} {% endfor %} I would be grateful for any advice as to how I can limit the number of updates shown for each task to 3 please? -
How can I access database of Worldpress website in Django Application?
I have multiple blogging websites which are made in WordPress and hosted on hostinger. I want to access my WordPress database so that I can keep a record of when I have added articles on which website. How can I do that? -
How to use toastr in django to display messages
So django has built-in messages framework to display appropriate messages. I'm trying to display these messages as a toast notification rather than the default list as shown in the documentation or as a div message like those in bootstrap for which I'm trying to use toastr. I've tried a couple of things but nothing seems to work. I've also gone through this question but I couldn't figure out where to import the messages.html code. Below is the base.html <!DOCTYPE html> <html lang="en"> {% load static %} <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Kaushal Sharma</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.css" integrity="sha512-3pIirOrwegjM6erE5gPSwkUzO+3cTjpnV9lexlNZqvupR64iZBnOOTiiLPb9M36zpMScbmUNIcHUqKD47M719g==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <style> html { scroll-behavior: smooth; } </style> </head> <body> {% block content %} {% endblock %} <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" integrity="sha512-VEd+nq25CkR676O+pLBnDW09R7VQX9Mdiij052gVCp5yVH3jGtH70Ho/UUv4mJDsEdTvqRCFZg0NKGiojGnUCw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> {% block scripts %} {% endblock scripts %} </body> </html> I have a home.html which extends the base.html and includes all my other html pages like below {% extends 'base.html' %} {% block content %} <!-- include pages --> {% endblock %} {% block scripts %} {% include 'messages.html' %} {% endblock scripts %} and here is my messages.html {% block scripts %} {% if messages %} {% for message … -
Django error "Please correct the error below"
Please guide me as I have already gone through most of the posts submitted here and I am still not able to find a solution. I have created a custom user model and manager in Django. Also created a change form and creation form. I am able to create a user using the manage.py shell but when I try to create a user using the Django admin interface I am getting an error "Please correct the error below" but this error does not provide any error information. There are many questions her asked about this but none of them are able to resolve my issue. Here is my user manager class UserManager(BaseUserManager): def create_user(self, email, first_name, last_name,contact_no, password=None,is_staff=False, is_admin=False, is_active=True): if not email: raise ValueError('Users must have an email address') if not password: raise ValueError('Users must have a password') if not first_name: raise ValueError('Users must have a First Name') if not last_name: raise ValueError('Users must have a Last Name') if not contact_no: raise ValueError('Users must have a Contact No') user = self.model( email=self.normalize_email(email), ) user.set_password(password) user.first_name = first_name user.last_name = last_name user.contact_no = contact_no user.active = is_active user.staff = is_staff user.admin = is_admin user.save(using=self._db) return user def create_staffuser(self, email, first_name, … -
How i can to pass parameter to model method in django template?
Hi everyone i have a question about django template and models method include function parameter. example code in models.py class Item(models.Model): name = models.CharField(max_length=30) price = models.IntegerField() owner = models.ForeignKey('User',on_delete=models.CASCADE) def get_something(self,requestuser): # <-- pass request.user here // calculate something here return "output" in views.py def assets(request): return render(request, 'index.html', {'items':Item.objects.filter(owner=request.user)}) in template {% for item in items %} <h1>{{item.name}}</h1> <h2>{{item.price}}</h2> <h2>{{item.get_something(request.user) }}</h2> <!-- How to inject request.user to get_something Here --> {% endfor %} -
Form post data is not passing back to html file in django
I am creating a Django app and I am trying to show the data received from a POST request on an HTML table. I have used JavaScript fetch API to submit the form and fetch the data in views.py . I am able to fetch the form data in views.py but I am not able to send it back to the HTML file to show the same data on a table. Without the fetch API submit, everything is working fine as per my need. I can't get what my mistake is. I have tried to remove all unnecessary parts to debug. Please let me know where I am going wrong. views.py def home(request): if request.method=="POST": options_value=request.POST['dropdown_val'] value=request.POST['val'] print(options_value,value) return render(request, 'index.html',context) index.html <form method="POST" action="" id="form"> {% csrf_token %} <div class="d-flex justify-content-center" style="margin-top: 6rem"> <div class="dropdown" style="display: flex" id="dropdown"> <select class="form-select" aria-label="Default select example" name="options_value" id="dropdown_val" > <option disabled hidden selected>---Select---</option> <option value="1">Profile UID</option> <option value="2">Employee ID</option> <option value="3">Email ID</option> <option value="4">LAN ID</option> </select> </div> <div class="col-3 bg-light" style="margin-left: 2rem"> <input type="text" class="form-control" type="text" placeholder="Enter Value" name="value" id="value" /> </div> <div style="margin-left: 2rem"> <input class="btn btn-primary" type="submit" value="Submit" style="background-color: #3a0ca3" /> </div> </div> </form> <table style="display: table" id="table"> <tbody> <tr> … -
type object is not subscriptable - I understand the error, but I don't know why it happens
Disclaimer: this code worked on python 2.7, I just migrated to 3.7 :) The error that's happening does happen in Django 1.11 I have this line of code which throws me the 'type object is not subscriptable' error: from ..settings import Settings skinurl = join(url_base, 'css/skins/skin-%s.min.css' % Settings['THEME.SKIN']) The settings class is this: class Settings(SettingsBase): store = DEFAULT_SETTINGS __metaclass__ = Meta def __getitem__(self, key): print(self.store['THEME.SKIN']) return self.iget(key) in DEFAULT_SETTINGS, I have THEME.SKIN: 'THEME': { 'SKIN': 'green', }, I have an idea why it might happen - that print in getitem doesn't return anything. If I change it to print(self.store['THEME']['SKIN']) it does, though. If I also change that join call to this skinurl = join(url_base, 'css/skins/skin-%s.min.css' % Settings['THEME']['SKIN']) I still get type object is not subscriptable. What is happening here and how can I fix it? -
Setup Django on Apache server
I need help with install #django on Apache using wsgi.py Thanks in advanceenter image description here