Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
Docker-compose doesn't work on ubuntu 20.04 [permission denied entrypoint.sh]
My docker-compose works fine and runs on Windows 10 but when i tried to run it from ubuntu 20.04 i get this error: ERROR: for container_web_1 Cannot start service web: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/usr/src/app/entrypoint.sh": permission denied: unknown ERROR: for web Cannot start service web: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/usr/src/app/entrypoint.sh": permission denied: unknown ERROR: Encountered errors while bringing up the project. I can't understand why do i get Permission denied for entrypoint.sh? I use chmod +x to avoid this... My entrypoint.sh #!/bin/sh if [ "$DATABASE" = "postgres" ] then echo "Waiting for postgres..." while ! nc -z "$SQL_HOST" "$SQL_PORT"; do sleep 0.1 done echo "PostgreSQL started" fi exec "$@" My Dockerfile FROM python:3.10.0-alpine WORKDIR /usr/src/app ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 RUN pip install --upgrade pip RUN apk update RUN apk add postgresql-dev gcc python3-dev musl-dev COPY requirements.txt . RUN pip install -r requirements.txt COPY entrypoint.sh . RUN sed -i 's/\r$//g' /usr/src/app/entrypoint.sh RUN chmod +x /usr/src/app/entrypoint.sh COPY .. . ENV HOME=/home/app ENV APP_HOME=/home/app/web RUN mkdir $HOME RUN mkdir $APP_HOME WORKDIR $APP_HOME COPY … -
Need to store Cart Item in Django
I have to store CartItem: {"title": "bread", "price": "100.0"} in Django REST framework. App name: BackendDjangoApp But I am getting error: "return Database.Cursor.execute(self, query, params) django.db.utils.OperationalError: no such table: BackendDjangoApp_cartitem [26/Feb/2023 11:53:06] "POST /api/cartItems/ HTTP/1.1" 500 192021" views.py: class CartItemView(generics.ListCreateAPIView): queryset = CartItem.objects.all() serializer_class = CartItemSerializer serializers.py: class CartItemSerializer(serializers.ModelSerializer): class Meta: model = CartItem fields = '__all__' models.py: from django.db import models from django.contrib.auth.models import User class CartItem(models.Model): title = models.CharField(max_length=255) price = models.DecimalField(max_digits=10, decimal_places=2) I am making POST request: http://127.0.0.1:8000/api/cartItems/ POST body: {"title": "bread", "price": "100.0"} I am not maintaining any User session. -
iam unable to use my Multiple product slides on Homepage in Django
I am attempting to display two product slides on the homepage of my website built with the Django framework. Upon reloading the page, I am able to view both slides, however, I am encountering an issue where I am unable to see all the buttons to control both slides. Currently, I am only able to view the buttons for one slide. I am unsure of what mistake I may have made #This is my view.py from math import ceil from django.shortcuts import render from django.http import HttpResponse from .models import Product # Create your views here. def index(request): products = Product.objects.all() n = len(products) nslides = n//4 + ceil((n/4)-(n//4)) allprods=[[products,range(1,nslides),len(products)],[products,range(1,nslides),len(products)]] params={'allprods':allprods} return render(request, "shop/index.html", params) def about(request): return render(request, "shop/about.html") def contact(request): return render(request, "shop/about.html") def product(request): return HttpResponse("we are at product") def checkout(request): return HttpResponse("we are at checkout") def tracker(request): return HttpResponse("we are at tracker") def search(request): return HttpResponse("we are at search") and this is my index.py {% extends "shop/basic.html" %} {% block title %} Link. {% endblock %} {% block css %} .col-md-3 { display: inline-block; margin-left:-4px; } .carousel-indicators .active { background-color: blue; } .col-md-3 img{ width: 227px; max-height: 242px; } body .carousel-indicator li{ background-color: blue; } body … -
alter __bases__ inherit in class and save new changes with python
Is there a way to alter an apiview class where by means of a Command I add a mixin class from which it must inherit and see the change reflected in the code after having executed the command Example: mixin.py class Mixin(object): pass views.py class ApiExampleApiView(generics.ListAPIView): pass example_command.py class Command(BaseCommand): def handle(self, *args, **options): ApiExampleApiView.__bases__ += (Mixin, ) **here I do not know if something should go to save and after executing the command, the api will see the change reflected as follows views.py class ApiExampleApiView(Mixin, generics.ListAPIView): pass -
I am trying to create an application, with react front end and django backend that would call a third party API named betaface
I created the frontend form that would take namespace and the file as an input and send it to the backend. When i was trying to test it, i received the following errors. Error upload_image_to_betaface() missing 1 required positional argument: 'file_path' Here's my views.py file url = "https://www.betafaceapi.com/api/v2/media/file" payload = { 'api_key': 'd45fd466-51e2-4701-8da8-04351c872236', 'set_person_id': f'random@{namespace}' } files = [('file', ('image.jpg', open(file_path, 'rb'), 'image/jpeg'))] headers = {} response = requests.request("POST", url, headers=headers, data=payload, files=files) return response.text``` models.py ```class UploadedImage(models.Model): image = models.ImageField(upload_to='uploads/') uploaded_at = models.DateTimeField(auto_now_add=True) def __str__(self): return self.image.name``` urls.py ```urlpatterns = [ path('upload/', upload_image_to_betaface), ]``` -
How to display two complete images in the same div size, like behance?
First of all, sorry for my bad english It turns out that I am trying to make a section where several images are shown, the format is that the user previously loads the images and the number of columns per block/div from a form. Now my problem is when the images within the same block/div are of different sizes, I don't know if it is because of different height or width. What I managed to do is make them both have the same size, all inside the block/div, but they lose the content, that is, they don't look complete. Now I pass two screenshots, where the first is how it fits me, and the second is how I would like it, which would be a style to behance with the grids. Because of my bad English my case behance case Now I pass you part of the code that I am implementing! <section id="content-body" class=" " style=""> <input id="{{project.id}}" type="text" class="pid" style="display:none;"> <div class=" mt-20 mb-10 grid place-items-center" style=""> {% for data in projectImages %} <div x-data="{dropdownOpen: false}" @click.outside="dropdownOpen = false" class="relative group/cuadricula"> <div class="grid max-w-7xl mb-3 gap-3" style=" grid-template-columns: repeat({{data.columns}}, minmax(0, 1fr)); "> {% for img in data.images.all %} … -
why domain name points to root directory index.html[Congratulation page]in linux django, but not to AWS lightsail instance ip address
I have an AWS lightsail account [Linux, Django]. I managed to point my domain name to my lightsail Ip address. This page displays the Congratulation setup page, which is in the root directory and the file is the index.html [Default landing page]. I created a simple lightsail instance page with views.py and urls.py. In the browser, if I type the domain name, it resolve the index.html page, only. But when I type the Ip address, it resolve to my AWS instance page. Problem, how do I get Domain Name to resolve to my instance Ip address. I managed to properly point the domain name to my Ip address [the Congratulation page, default page] but not my AWS instance Ip address [for my website]. -
How to use railway PostgreSQL Database with Django
It is my first time working with the railway PostgreSQL database, I used postgres connection URL and my connection is working fine but I can't find the database table I created in models.py Models.py from django.db import models # Create your models here. class Todos(models.Model): # item = models.CharField(max_length=300) I have checked resources online but don't seem to find any solutions, I'm not sure if am doing something wrong. Can someone help me with this pls -
Exception Value : no such table: users_customuser
I am working on a group django project, and I created a 'customuser' model in an app called 'users'. I have created the model and changed everywhere that referenced django's base user model to reference my user model. In our app, we want the CustomUser to hold a list of events from the Event Model. #users.py from django.db import models from django.contrib.auth.models import AbstractUser from cal.models import Event # Create your models here. class CustomUser(AbstractUser): events_attending = models.ManyToManyField(Event,blank=True) The webapp runs locally, but when I try to log in or register as a user I get the error that there is no such table as customUser. my migrations are as follows: C:\Users\joe4a\Desktop\Newest\STAJJ>python manage.py showmigrations admin [X] 0001_squashed_0001_initial (1 squashed migrations) [X] 0002_logentry_remove_auto_add [X] 0003_logentry_add_action_flag_choices auth [X] 0001_initial [X] 0002_alter_permission_name_max_length [X] 0003_alter_user_email_max_length [X] 0004_alter_user_username_opts [X] 0005_alter_user_last_login_null [X] 0006_require_contenttypes_0002 [X] 0007_alter_validators_add_error_messages [X] 0008_alter_user_username_max_length [X] 0009_alter_user_last_name_max_length [X] 0010_alter_group_name_max_length [X] 0011_update_proxy_permissions [X] 0012_alter_user_first_name_max_length cal [X] 0001_initial cockycal [X] 0001_initial [X] 0002_initial contenttypes [X] 0001_initial [X] 0002_remove_content_type_name sessions [X] 0001_initial users [X] 0001_initial Environment: Request Method: POST Request URL: http://127.0.0.1:8000/register/ Django Version: 4.1.3 Python Version: 3.10.10 Installed Applications: ['cockycal.apps.CockycalConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'crispy_forms', 'cal', 'users'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', … -
Comment form not working when separating views
I received some advice on separating my comment function into a separate view from 'ViewPost' view. When I do this the comment section no longer displays comments, and form doesn't appear to add a new one. Please see attached image for the code combined(I don't want to clog the question with code) I am lost for ideas and hoping some one has some input to share. My views separated def ViewPost(request, slug): try: post = BlogPost.objects.get(slug=slug) except BlogPost.DoesNotExist: print("Blog with this slug does not exist") post = None return render(request, 'mhpapp/view-post.html', {'post': post, 'slug': slug,}) def PostComment(request, slug): template_name = 'view-post.html' post = get_object_or_404(BlogPost, slug=slug) comments = post.comments.filter(status=True) user_comment = None # Comment posted if request.method == 'POST': comment_form = CommentForm(request.POST) if comment_form.is_valid(): # Create Comment object but don't save to database yet user_comment = comment_form.save(commit=False) # Assign the current post to the comment user_comment.post = post # Assign comment to user user_comment.user = request.user # Save the comment to the database user_comment.save() else: comment_form = CommentForm() return render(request, template_name, {'post': post, 'comments': comments, 'user_comment': user_comment, 'comment_form': comment_form}) COMBINED WORKING CODE -
Vue app on server cannot communicate with DRF back-end on same VPS using caddy
It's my first time that I'm deploying Vue and DRF(Django rest frame work) app on production server. I used npm run build to build my Vue app as my front-end and I moves the dist folder to /var/www/html/frontend/. I'm calling my request using fetch api from Vue and this is the base url of all request: import {defineStore} from 'pinia' export const useGeneralConfig = defineStore('generalConfig',{ state: () => { return { BASE_URL : "http://127.0.0.1:6000/api" } } }) I'm using caddy as server and here is the Caddyfile content: :80 root * /var/www/html/frontend/dist encode gzip zstd try_files {path} {path}/ /index.html reverse_proxy /api/* localhost:6000 file_server Now when I enter X.X.X.X (my VPS IP address) in the browser I can see that Vue app is serving but it does not communicate to DRF back-end and I cant see any request log in my backend logs. I run the backend like this: python3 manage.py runserver 6000 And here is the output: System check identified no issues (0 silenced). February 26, 2023 - 02:23:18 Django version 4.1.5, using settings 'project_name.settings' Starting development server at http://127.0.0.1:6000/ Quit the server with CTRL-BREAK. Any help would be appreciated. -
django bootstrap select element one column
i use djando and bootstrap. I use a form with a method POST and "select" option. I try to select elements belong to a table. I can see the database elements, but elements it's not showing in a column, they showing in a row (one consecutive to another). I try to figure what is the error, but i not fix it. It's my firts time with django and python;-)! Thanks in advance! Elements in a row The code: ` <form method="POST" action="{% url 'consorcio' %}">{% csrf_token %} <div class="row"> <div class="col"> <input type="text" class="form-control" id="name_consorcio" required name="name_consorcio" placeholder="Nombre Consorcio:"><br/> </div> <div class="col"> <input type="text" class="form-control" id="direccion_consorcio" required name="direccion_consorcio" placeholder="Direccion Consorcio:"><br/> </div> <div class="col"> <input type="text" class="form-control" id="cuit" required name="cuit" placeholder="CUIT:"><br/> </div> <div class="col"> <select class="form-select"> <option selected>Seleccionar Administracion: <option value="1"> <ul> {% for a in all_consorcio %} <li>{{ a.administracion.name_administracion }}</li> {% endfor %} </ul> </option> </option> </select> </div> </div> <input type="submit" class="btn btn-primary" value="Guardar">` </form><br> I tried to modificate the blucle for and add other stuff, like and , etc... -
Override default behavior of def destroy() in ModelViewSet to allow query parameters
I understand the intended DELETE behavior in DRF ModelViewSet is that a pk must be specified. For example, DELETE /api/document/1/. However, I'm trying to implement DELETE using query parameters which I understand should be acceptable in a REST API. For example, DELETE /api/document/?product_id=1, which would DELETE all documents associated with a product_id. When you pass query parameters to Django with DELETE, it returns: { "detail": "Method \"DELETE\" not allowed." } Remove the parameters and specify a pk and it works fine. If that is the case, if you are wanting to delete all documents related to a product_id, you'd first need to query to get the list of documents related to that product_id, iterate through it and DELETE on each pk. Seems like there should be a better way. I'm testing if I can even override the destroy(), grab the query parameters, and do what I need to do: class DocumentToProductViewSet(viewsets.ModelViewSet): queryset = DocumentToProduct.objects.all() serializer_class = DocumentToProductSerializer def destroy(self, request): print('destroy test') pass The request doesn't reach the method before I get that error since 'destroy test' doesn't print out in the console. I'm using SimpleRouter() which is likely where the error is generated from, and have also have tried … -
How do you efficiently load 10 million rows, run a function on them and then write some changes back to the db
Say you have 10 million rows in a db table represented by a django model. How do you efficiently load all of these, run a function on them and then write some changes back to the db. I am trying to find the correct course of action when dealing with such a problem -
chained select_related from many tables in django
Here I have the following models: class GenericUserData(AbstractUser): username = None id = models.UUIDField(primary_key=True, default=uuid4, editable=False) email = models.EmailField(max_length=100, unique=True) date_joined = models.DateTimeField(auto_now_add=True) .... class NormalSellerDetails(models.Model): userid = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, primary_key=True,db_column='UserID', unique=True) # from table user. mobileauthenticationenabled = models.IntegerField(db_column='MobileAuthenticationEnabled', default=0) # Field name made lowercase. ..... class UserBan(models.Model): user_id = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, primary_key=True,db_column='UserID', unique=True) # from table user. from_date = models.DateField(null=False) and I want to perform a select like the following: SELECT * FROM genericuserdata, normalsellerdetails, userban WHERE genericuserdata.id = normalsellerdetails.UserID AND genericuserdata.id = userban.UserID I also have there seializers: class GenericUserRetrievalSerializer(serializers.ModelSerializer): class Meta: model = GenericUserData fields = [ "email", "first_name", 'last_name', 'is_seller', 'is_normal', 'is_emp', 'is_male', 'bdate'] class AccountNormalSerializer(serializers.ModelSerializer): userid = GenericUserRetrievalSerializer(many=False) class Meta: model = NormalSellerDetails fields = ['mobileauthenticationenabled', 'emailauthenticationenabled', 'mobilephone', 'profilepiclink', 'userid', 'userban' ] I could link between GenericUserData, and NormalSellerDetails by doing so: class NormalAccountList(generics.ListAPIView): serializer_class = AccountNormalSerializer def get_queryset(self): queryset = NormalSellerDetails.objects.all().select_related('userid') return queryset but I couldn't link between all three into one query, noting model NormalSellerDetails relates to GenericUserData which in turn has an inverse relation to UserBan My question is: 1- how to do that link? 2- userban table has rows for users who only are banned, How do create an output field … -
Getting an error in entering time when default value for time is given in Django
I made the below Django form. class SearchTimeSlotsForm(forms.Form): available_from = forms.TimeField(widget=TimeInput(attrs={'class': 'unbold-form'}), initial=time(0)) available_till = forms.TimeField(widget=TimeInput(attrs={'class': 'unbold-form'}), initial=time(23,59,59)) As you can see that I have given default value to the form but when entering a value, I am getting an error 'Please select a valid value'. Here is the screen shot of the error. Please note the user can enter any time, it has got nothing to do with the default value or its format so the above error should not come. Can someone tell me why it is coming? -
How do i implement a web app based on keystroke dynamics authentification
I am interested in coding an application that uses keystroke dynamics recognition for user authentication. I would like to build a web-based application using Python and Django. What are the key steps involved in building such an application, and what are the best practices for implementing keystroke dynamics recognition in web-based applications? Are there any specific libraries or frameworks that I should use? Any tutorials or resources where i could start would be greatly appreciated. -
Dynamic Data sent back to views.py in POST request Django
I have a dynamically generatyed HTML file that displays quizzes for a class that was gathered from an API request. Within this page, I have a scan button that will scan the selected quiz and kick off a python script on the backend. When the scan button is clicked, I need that specific class data sent back to my views file so I can kick off an API request on the back end for the scan. The issue I am having is that when the scan button is pressed, only the last element in the list (of the dynamically generated html page) is sent back to my views.py file. How do I set up my POST reuquest on button click to handle the dynamic data so the data that gets sent back is correct as. Images below will show what is happening. Image of html page Dynamic HTML page code <div class="container"> <form method="post"> {% csrf_token %} {% for quiz in assignment_data %} <div class="assignment hide-content"> <div class="row assignment-header"> <div class="col">{{quiz.title}}</div> <div class="col">published: {{quiz.published}}</div> <div class="col">Questions: {{quiz.question_count}}</div> <div class="col-sm toggle-col"> <i class="toggle-drop-icon drop-icon-down fa-sharp fa-solid fa-caret-down"></i> <i class="toggle-drop-icon drop-icon-up fa-sharp fa-solid fa-caret-up"></i> </div> </div> <div class="row assignment-content"> <div class="col"> <button … -
Can not validate the AuthForm
I'm developing the Login view of my app, in order to do that I used the Django's built-in authentication form, but when I try to validate the form it returns False and I don't know why. I let here my code... models.py class User(AbstractUser): ''' Model that represents a user in the database ''' first_name = models.CharField(max_length=50, null=False, blank=False) last_name = models.CharField(max_length=50, null=False, blank=False) username = models.CharField(max_length=50, null=False, blank=False, unique=True) email = models.EmailField(null=False, blank=False, unique=True) password1 = models.CharField(max_length=25) password2 = models.CharField(max_length=25) birthday = models.DateField(null=False, blank=False) verified = models.BooleanField(default=False) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) def __str__(self): return f'{self.first_name}: {self.email}' forms.py class AuthForm(AuthenticationForm): ''' Form that uses built-in AuthenticationForm to handel user auth ''' email = forms.EmailField(required=True, widget=forms.TextInput(attrs={ 'placeholder': 'Correo electrónico', 'name': 'email', 'type': 'email', 'class': 'form-control' })) password1 = forms.CharField(max_length=25, required=True, widget=forms.PasswordInput(attrs={ 'placeholder': 'Contraseña', 'name': 'password1', 'type': 'password', 'class': 'form-control' })) class Meta: model = User fields = ('email','password1', ) login.html <form action="{% url 'users:login' %}" method="post"> {% csrf_token %} <div class="mb-3">{{ form.email }}</div> <div class="mb-3">{{ form.password1 }}</div> <div class="mb-3"><button class="btn btn-primary shadow d-block w-100" type="submit">Iniciar sesión</button></div> <p class="text-muted">Recuperar contraseña</p> </form> views.py def login_page(request): if request.method == 'POST': form = AuthForm(request.POST) if form.is_valid(): email = form.cleaned_data.get('email') password = form.cleaned_data.get('password1') user … -
How to put description under fields in Django
fieldsets = [ ('ALERT', { 'classes': ['collapse'], 'fields': [ ('field_1'), ('field_2'), ('field_3'), ], 'description': "Some helpful text", }), ('NEXT', { 'classes': ['collapse'], 'fields': [ ('field_5'), ('field_6'), ('field_7'), ], 'description': "Some helpful text", }), ] When using this code, the description text is placed above the fields. I need to place description text below the fields. Please advise how to move the text down or maybe there is another way to place the description text after the fields. I'm trying to add descriptive text to each section, but it appears at the top of the fields and interferes with filling in the fields. But in all the options that I used, the text is placed above the fields and I do not know how to place it below, below the fields. -
Handling header form in Django
I have some pages on my blog site: news, explore and my_profile. On header i have a form to add new article. How can I to RENDER and HANDLE a form in header on ANY page? Because any page includes header. I tried to register new jinja tag with my form: # myapp/templatetags/my_tags.py from django import template from myapp.forms import ArticleForm register = template.Library() @register.simple_tag def article_form(): return ArticleForm() But I don't think it's a good idea. -
Django - No module named 'webapp'
Settings.py INSTALLED_APPS = [ 'webapp', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ] Apps.py class WebappConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'webapp' Error ModuleNotFoundError: No module named 'webapp' Am I missing something here? Same result when using mysite.webapp... -
Send 'User' name and 'Form content' in email notification
I'm trying to get the form to send an email notification of the 'Users' username and content of the 'Comment' its self. I have managed to get the title of the post working but nothing else. Need a little help. Thanks in advance Views def ViewPost(request, slug): try: post = BlogPost.objects.get(slug=slug) except BlogPost.DoesNotExist: print("Blog with this slug does not exist") post = None comments = post.comments.filter(status=True) user_comment = None if request.method == 'POST': comment_form = CommentForm(request.POST) if comment_form.is_valid(): user_comment = comment_form.save(commit=False) user_comment.post = post user_comment.user = request.user user_comment.save() messages.success(request, ("Comment successfully posted, thank you...")) send_mail('You have recieved a comment on a blog post', post.title, post.user # not working , #reference comment here [ 'codewithdmh@gmail.com']) else: comment_form = CommentForm() return render(request, 'mhpapp/view-post.html', {'post': post, 'slug': slug, 'comments': user_comment, 'comments': comments, 'comment_form': comment_form}) Comment Model class BlogComment(models.Model): post = models.ForeignKey(BlogPost, related_name="comments", on_delete=models.CASCADE) user = models.ForeignKey(User, editable=False, on_delete=models.CASCADE, default="",) name = models.CharField('Name',max_length=100, default="") text = models.TextField('Comment',max_length=1000, default="") date = models.DateTimeField(auto_now_add=True) status = models.BooleanField(default=True) class Meta: ordering = ("date",) def __str__(self): return '%s -> %s'%(self.post.title, self.user) -
Run two commands, one after the other, on digitalocean app platform
I want to automatically start huey (a background task manager) going when I deploy a Django site on Digital Ocean's "App" platform. It provides a "run command" box where one can input commands when deploying (after the server is built). I cannot work out why this isn't working: gunicorn --worker-tmp-dir /dev/shm core.wsgi; python manage.py run_huey I've tried the "&&" separator but that doesn't work either. The "python manage.py run_huey" command just doesn't get run. -
Why am I getting 500:INTERNAL_SERVER_ERROR on vercel when trying to deploy a django app?
Basically, I am trying to deploy a django project to vercel using the default settings, however I get this error when doing so 500: INTERNAL_SERVER_ERROR Code: FUNCTION_INVOCATION_FAILED ID: iad1::kgz72-1677350120288-41179987b8c3 The vercel website simply tells me to read the logs, The logs only provide the follwoing message [GET] /favicon.ico 12:35:20:58 [ERROR] Runtime.ImportModuleError: Unable to import module 'vc__handler__python': No module named 'django' Traceback (most recent call last): Heres the repository I am trying to deploy