Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
Making an Order button on Details page work-Django
i am developing my ecommerce platform using django. I have implemented the order functionalities. When the user click s on teh add to cart, it works okay. But when he cicks on the product, to get more details, when he wants to click now the add to cart button, it doesnt respond. I have given it the same functionality like other button before coming to details page of single product. The problems seemed to be teh place where it doesnt find teh correct path. How can i implement that one button. Here is my views.py def processOrder(request): transaction_id = datetime.datetime.now().timestamp() data = json.loads(request.body) print(data) if request.user.is_authenticated: customer = request.user order, created = Order.objects.get_or_create( customer=customer, complete=False) total = order.get_cart_totals order.transaction_id = transaction_id if total == order.get_cart_totals: order.complete = True order.save() if order.shipping == True: print("Wrong") ship = ShippingAddress( customer=customer, order=order, firstname=data['shipping']['firstname'], lastname=data['shipping']['lastname'], address=data['shipping']['address'], city=data['shipping']['city'], zipcode=data['shipping']['zipcode'] ) ship.save(force_insert=True) else: print("User doesn't exist") print('Data:', request.body) return JsonResponse('Payment Submitted', safe=False) Here is my model.py class Order(models.Model): customer = models.ForeignKey( User, on_delete=models.SET_NULL, null=True, blank=True) date_ordered = models.DateTimeField(auto_now_add=True) complete = models.BooleanField(default=False) transaction_id = models.CharField(max_length=100, null=True) def __str__(self): return str(self.id) @property def shipping(self): shipping = False orderItems = self.orderitem_set.all() for i in orderItems: if i.product.digital == False: … -
ERREUR: la relation « map_place » n'existe pas [closed]
Bonjour, je suis en train d'essayer d'adapter cet exemple pour réaliser une application géographique Django : https://github.com/simon-the-shark/django-mapbox-location-field#admin-interface-usage Cependant, lorsque je clique sur le bouton pour ajouter un nouveau lieu j'obtiens cette erreur mais je ne comprends pas à quoi elle est due (sûrement postgreSQL mais je ne vois pas comment faire) : Voici mes éléments : map\models.py from django.db import models from mapbox_location_field.models import LocationField, AddressAutoHiddenField class Place(models.Model): location = LocationField( map_attrs={"style": "mapbox://styles/mightysharky/cjwgnjzr004bu1dnpw8kzxa72", "center": (3.15, 46.883331), "zoom": 3}) created_at = models.DateTimeField(auto_now_add=True) address = AddressAutoHiddenField() map\urls.py from django.urls import re_path from .views import AddPlaceView, ChangePlaceView, PlacesView urlpatterns = [ re_path("^$", AddPlaceView.as_view(), name="add"), re_path("^places/(?P<pk>[0-9]+)/$", ChangePlaceView.as_view(), name="change"), re_path("^index/$", PlacesView.as_view(), name="index"), ] map\views.py from django.views.generic import CreateView, UpdateView, ListView from .models import Place class AddPlaceView(CreateView): model = Place template_name = "map/place_form.html" success_url = "/index/" fields = ("location", "address") class ChangePlaceView(UpdateView): model = Place template_name = "map/place_form.html" success_url = "/index/" fields = ("location", "address") class PlacesView(ListView): model = Place template_name = "map/index.html" ordering = ["-created_at", ] templates\map\index.html {% block content %} <a class="btn btn-success text-ligt btn-lg btn-block" href="{% url 'add' %}">ADD NEW PLACE</a> <h2 class="display-5">Places:</h2> {% for place in object_list %} <div class="row" style="margin:5px;"> <div class="col"> {{ place.location}}</div> <div class="col"> {{ place.address}}</div> <div class="col"><a href="{% … -
How to filter a model when using forms in DJango
Here i need to display type_of_entry based on the client but i am getting type_of_entry of all the clients views.py def item_view(request): client = request.user.client log_form = ItemsLogForm() Here is my forms forms.py class ItemsLogForm(forms.ModelForm): class Meta: model = JobItemsLogs fields = ('type_of_entry', 'log' ) here is my models.py class ServiceType(models.Model): name = models.CharField(max_length=100,default='Project',null=True, blank=True) client = models.ForeignKey(Client) class JobItemsLogs(models.Model): client = models.ForeignKey(Client) type_of_entry = models.ForeignKey("core.ServiceType", blank=True, null=True) log = models.TextField(blank=True) template.html <form class="form-horizontal" action=" "> {% csrf_token %} <div class="control-group"> <div class="controls"> {{log_form.as_p}} </div> </div> </form> Lets us consider my database table for ServiceType id name client_id 1 Electrical 1 2 Plumbing 3 3 Construction 3 database table for JobItemsLogs id type_of_entry_id log 1 2 something Now here i need to display type_of_entry (i.e servicetypes) of client_id = 3 (Plumbing, Construction) for particular log nut instead its displaying type_of_entry of client_id = 1 also (means its showing Electrical, Plumbing, Construction) Please help me to code so that i show type_of_entry of client =3 only -
Problem integrating React with errors in fetching data from backend
This is my first attempt to do full stack web development using Django as back end and react js as frontend I am following a tutorial but have got stuck at a final stage the codes are as under if some one can help me out the error list is as under it is failing to update will apreciate Unhandled Rejection (TypeError): Failed to execute 'fetch' on 'Window': Request with GET/HEAD method cannot have body. From web page inspect 18 | 19 | class APIServiece { 20 | static UpdateArticle(article_id, body) { 21 | return fetch(' http://127.0.0.1:8000/api/articles/${article_id}/', { | ^ 22 | Method: 'PUT', 23 | headers: { 24 | 'Content-Type': 'application/json', App.js file enter code here import './App.css' import { useState, useEffect } from 'react' import ArticleList from './Components/ArticleList' import Form from './Components/Form' function App() { const [articles, setArticles] = useState([]) const [editArticle, setEditArticle] = useState(null) useEffect(() => { fetch(' http://127.0.0.1:8000/api/articles/', { Method: 'GET', headers: { 'Content-Type': 'application/json', Authorization: 'Token 7654d578b64711481eea3345caf0b90646b8881f', }, }) .then((resp) => resp.json()) .then((resp) => setArticles(resp)) .catch((error) => console.log(error)) }, []) const editBtn = (article) => { setEditArticle(article) } return ( <div className='App'> <h1>React Js</h1> <ArticleList articles={articles} editBtn={editBtn} /> {editArticle ? <Form article={editArticle} /> : null} … -
File descriptor doesn't contain backend url django
I'm trying to access a file from React but the django FileDescriptor doesn't contain backend URL. Instead of 127.0.0.1:8000/quizResults/rezultate/Ene_Mihai_CYMED/index.png-2021-09-20-102619 i'm getting only /quizResults/rezultate/Ene_Mihai_CYMED/index.png-2021-09-20-102619 and, when i'm trying to access the files from react using a map, it doesn't work because <a href='/quizResults/rezultate/Ene_Mihai_CYMED/index.png-2021-09-20-102619'/> will open the page 127.0.0.1:3000/quizResults/rezultate/Ene_Mihai_CYMED/index.png-2021-09-20-102619 which is the frontend url and it doesn't exists. urls.py: urlpatterns + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) settings.py MEDIA_ROOT = os.path.join(BASE_DIR,'quizResults') MEDIA_URL = '/quizResults/' I don't know if it matters, but that's in Models.py def upload_to(instance,filename): return 'rezultate/{firstname}_{lastname}_{organizatie}/{filename}-{date}'.format(firstname=instance.user.nume,organizatie=instance.user.organizatie,lastname=instance.user.prenume,filename=filename, date=instance.date.strftime("%Y-%m-%d-%H:%M:%S")) class quizPDF(models.Model): user = models.ForeignKey(User, related_name='UserPDF', on_delete=models.CASCADE) date = models.DateTimeField(auto_now_add=True) pdf = models.FileField(_("PDF"),upload_to=upload_to) -
Module 'socket' has no attribute 'AF_UNIX'
I'm trying to run an OLD (2018) Django project on localhost. However, when I use: python manage.py runserver 192.168.23.12:8000 I get: line 600, in connect sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) AttributeError: module 'socket' has no attribute 'AF_UNIX' I'm using a Window machine and I tried also to change AF_UNIX to AF_INET getting: AF_INET address must be tuple, not str -
Django Form with validation state for unique
I try to add a validation state like "this already exist." (like registration form, see picture) just under my form input. But when I submit my form i'v this error 'UNIQUE constraint failed' this is my code model class Company(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) siret = models.CharField(max_length=50, unique=True) forms class CheckoutForm(forms.Form): siret = forms.CharField(required=True, widget=forms.TextInput(attrs={'placeholder': 'Ton SIRET'})) class Meta: model = Company fields = ('siret') def clean(self): siret = cleaned_data.get('siret') if siret: raise forms.ValidationError("This siret exist.") else: return siret view def post(self, request, *args, **kwargs): form = CheckoutForm(self.request.POST) if form.is_valid(): siret = form.cleaned_data.get('siret') company = Company( user = self.request.user, siret = siret, ) company.save() context = { 'company': company, } return redirect("core:payment") else: messages.info(self.request, "Please fill in the shipping form properly") return redirect("core:checkout") template {% load crispy_forms_tags %} <main> <div class="container wow fadeIn"> <h2 class="my-5 h2 text-left">Checkout form</h2> <div class="row"> <div class="col-md-8 mb-4"> <div class="card"> <form method="post" class="card-body"> {% csrf_token %} {{ form|crispy }} <button class="btn btn-primary" id="checkout-button" data-secret="{{ session_id }}"> Checkout </button> </form> </div> </div> Thanks a lot -
from Google import Create_Service ModuleNotFoundError: No module named 'Google'
I'm trying to use Gmail api in python to send email but I cant get past importing the Google module despite using "pip install --upgrade google-api-python-client" or "pip install google". However pip freeze shows: asgiref==3.3.4 beautifulsoup4==4.10.0 cachetools==4.2.2 certifi==2021.5.30 cffi==1.14.6 charset-normalizer==2.0.6 dj-database-url==0.5.0 Django==3.2.3 django-ckeditor==6.1.0 django-ckeditor-5==0.0.14 django-heroku==0.3.1 django-js-asset==1.2.2 django-phone-field==1.8.1 django-tawkto==0.3 **google==3.0.0** google-api-core==2.0.1 google-api-python-client==2.21.0 google-auth==2.1.0 google-auth-httplib2==0.1.0 google-auth-oauthlib==0.4.6 google-cloud==0.34.0 google-cloud-bigquery==2.26.0 google-cloud-core==2.0.0 google-cloud-storage==1.42.2 google-cloud-vision==2.4.2 google-crc32c==1.1.2 google-resumable-media==2.0.2 googleapis-common-protos==1.53.0 grpcio==1.40.0 gunicorn==20.1.0 httplib2==0.19.1 idna==3.2 oauthlib==3.1.1 packaging==21.0 Pillow==8.2.0 proto-plus==1.19.0 protobuf==3.18.0 psycopg2==2.8.6 pyasn1==0.4.8 pyasn1-modules==0.2.8 pycparser==2.20 pyparsing==2.4.7 python-decouple==3.4 pytz==2021.1 requests==2.26.0 requests-oauthlib==1.3.0 rsa==4.7.2 six==1.16.0 soupsieve==2.2.1 sqlparse==0.4.1 uritemplate==3.0.1 urllib3==1.26.6 whitenoise==5.2.0 my code: from Google import Create_Service import base64 from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText CLIENT_SECRET_FILE = 'client_secret.json' API_NAME = 'gmail' API_VERSION = 'v1' SCOPES = ['https://mail.google.com/'] service = Create_Service(CLIENT_SECRET_FILE, API_NAME, API_VERSION, SCOPES) Any help would be greatly appreciated -
How to use UUIDField for SQLite?
How can I generate a UUIDField that works for SQLite? I want to use SQLite instead of Postgres for my tests so they run faster. # settings.py DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", # ... } } # Tests use sqlite instead of postgres import sys if ( "test" in sys.argv or "test_coverage" in sys.argv ): # Covers regular testing and django-coverage DATABASES["default"]["ENGINE"] = "django.db.backends.sqlite3" However, I don't seem to be able to create a UUID that fits Django's UUIDField for SQLite: A field for storing universally unique identifiers. Uses Python’s UUID class. When used on PostgreSQL, this stores in a uuid datatype, otherwise in a char(32). The following doesn't work even though the uuid value is 32 chars: # models.py class Item(models.Model): uuid = models.UUIDField() # tests.py uuid = str(uuid.uuid4()).replace("-", "") Item.objects.create(uuid=uuid) I get this error: django.db.utils.InterfaceError: Error binding parameter 4 - probably unsupported type. -
Google Analytics Measurement Protocol can not track cart addition and product view
I have implemented measurement protocol in my project. I can successfully track purhcases, checkouts, pageviews and refunds. For example sending this data with some additions from function outside I can track purchase event. data = { 't': 'pageview', 'ti': '123123', 'tr': 1510, 'ts': 10, 'cu': 'GEL', 'pa': 'purchase', 'cid': request.COOKIES.get('client_id'), 'pr1id': '123123', 'pr1nm': 'iPhoneXR', 'pr1ca': 'Smartphones', 'pr1pr': 500, 'pr1br': 'Apple', 'pr1va': 'RED 128 GB', 'pr1qt': 2 } now I am struggling to track product views and cart additions and I have gone through whole measurement protocol parameters and common hits that was shown in documentation but could not find solution. Any ideas how can I track cart additions and product views? -
how to list sub fields of model fields in Django ListView?
Under my model work_allocation I have a field called activity_name. Fort all activity_name there are sub fields associated as shown In the views.py I have written a simple class based view to list the activity_task(get_task_list), which is working fine. But I am not able to see the associated sub fields. Not sure what modification am I supposed to make for this to happen. Below are my project details: models.py from django.db import models class Status_Code(models.Model): Types = models.CharField(max_length=50, blank=True) def __str__(self): return self.Types class Assignee_Name(models.Model): emp_name = models.CharField(max_length=50, blank=True) def __str__(self): return self.emp_name class Priority(models.Model): priority = models.CharField(max_length=50, blank=True) def __str__(self): return self.priority class work_allocation(models.Model): activity_name = models.CharField(max_length=100) JIRA_tkt = models.CharField(max_length=100) Assignee_name = models.ForeignKey(Assignee_Name, on_delete=models.CASCADE) Status_code = models.ForeignKey(Status_Code, on_delete=models.CASCADE) Description = models.TextField() Planned_start_date = models.DateField(auto_now_add=True) Planned_end_date = models.DateField(auto_now_add=True) actual_start_date = models.DateField(auto_now_add=True) actual_end_date = models.DateField(auto_now_add=True) priority = models.ForeignKey(Priority,on_delete=models.CASCADE) def __str__(self): return self.activity_name views.py def createTask(request): if request.method == 'POST': form = Work_alloc_Form(request.POST) if form.is_valid(): data_to_db = work_allocation() data_to_db.activity_name = form.cleaned_data['activity_name'] data_to_db.JIRA_tkt = form.cleaned_data['JIRA_tkt'] data_to_db.Assignee_name = form.cleaned_data['Assignee_name'] data_to_db.Status_code = form.cleaned_data['Status_code'] data_to_db.Planned_start_date = form.cleaned_data['Planned_start_date'] data_to_db.Planned_end_date = form.cleaned_data['Planned_end_date'] data_to_db.actual_start_date = form.cleaned_data['actual_start_date'] data_to_db.actual_end_date = form.cleaned_data['actual_end_date'] data_to_db.Description = form.cleaned_data['Description'] data_to_db.priority = form.cleaned_data['priority'] data_to_db.save() messages.success(request, f'Profile has been updated successfully') return redirect('/home') else: messages.error(request, AttributeError) else: form … -
Django certbot installation
I am facing a problem when i try to install certbot in my Django project. I follow the instructions from the documentation https://certbot-django.readthedocs.io/en/latest/ and it occurs an error cannot import create_auth_header. Could anyone help? -
rewrite AND/OR query in django
I am having difficulty to rewrite AND/OR query in django. Parantheses is banned in django template.I tried using custom tags for this but it doesn't work as expected.Does anyone know how to rewrite a query like this for django templates and for custom tag both .So, I will know where i want wrong. for i in k: if (i.first == a and i.second == b) or (i.first == b and i.second == a): {some code} -
Processing data from React.js form with django
I create a web application using Django for the back-end and React for the front-end. I have three input forms on my HTML page, which I create with react. I need to send this data to MySQL.db and processing using .py script. Can you explain, how can I send data from react to django -
Django. How to migrate just a particular app in mongo
I want to migrate the models logging app into the thor (mongodb) database. But when I say " python manage.py migrate --database=thor ", it migrates other apps as well. I'm sure I'm doing something wrong. Can anyone help? class AuthRouter(object): """ A router to control all database operations on models in the auth application. """ route_app_labels = {'models_logging'} def db_for_read(self, model, **hints): """ Attempts to read auth models go to auth_db. """ if model._meta.app_label == 'models_logging': return 'thor' return None def db_for_write(self, model, **hints): """ Attempts to write auth models go to auth_db. """ if model._meta.app_label == 'models_logging': return 'thor' return None def allow_relation(self, obj1, obj2, **hints): """ Allow relations if a model in the auth app is involved. """ if obj1._meta.app_label == 'models_logging' or \ obj2._meta.app_label == 'models_logging': return True return None def allow_migrate(self, db, app_label, model_name=None, **hints): """ Make sure the auth app only appears in the 'auth_db' database. """ if app_label == 'models_logging': return db == 'thor' return None -
Django - How to query a related translated model?
I have two models that are many to many related. Article and Tag models. Both are TranslateableModel using django-parler. I would like to get all tags together with articles_count for the current language. For example if a user comes to the page /en/blog I would like them to see tags together with the number of articles written in english for that tag. Something like Django (7 articles), Ruby on rails (4 articles) For django there might be 10 articles but only 7 are translated to english. What I have is something like this: Tag.objects.translated() .annotate(articles_count=(Count("articles__translations"))) But this gives me the count of total translations. If an article exists both in english and in french, it counts double. How can I make it so that it gives me the number of articles only in the current language in a given tag? -
inserting a data in a formset passed by a form
hi I have this error in inserting a data in a formset passed by a form this is the error that appears in my browser: NOT NULL constraint failed: devtest_datigruppi.gruppi_scheda_id it practically fails to see this change: groups.gruppi_scheda = Schede.objects.get (tab_name = tabName) but via print the right thing appears to me schedaName = schede_form.cleaned_data['nome_scheda'] scheda = schede_form.save(commit = False) scheda.utente = request.user scheda.save() #gruppi if gruppi_formset.is_valid(): for gruppi in gruppi_formset: gruppi.save(commit = False) gruppi.gruppi_scheda = Schede.objects.get(nome_scheda = schedaName) //print(gruppi.gruppi_scheda) gruppi.save() -
How to filter books, so you get the authors books and not every book available, when you use ListView and DetailView (Django)
Authors books should only be displayed when tapping the authors name in the ListView. models.py from django.db import models from django.contrib.auth.models import User from django.urls import reverse from django.utils.text import slugify class Author(models.Model):´ author = models.ForeignKey(User, on_delete=models.CASCADE) slug = models.SlugField(unique=True, blank=False, null=False) class Book(models.Model): author = models.ForeignKey(Author, on_delete=models.CASCADE, null=False, blank=False) title = models.CharField(max_length=200) price = models.FloatField() image = models.ImageField(null=True, blank=True) views.py from app.models import Book, Author from django.shortcuts import render, redirect from django.contrib.auth.models import User, Group from django.views.generic.list import ListView from django.views.generic.detail import DetailView class HomeView(ListView): model = Author ordering = ['-id'] template_name = 'app/home.html' class AuthorView(DetailView): model = Author template_name = 'app/author.html' def get_context_data(self, *args, **kwargs): # author_pk = self.kwargs.get('pk', None) # Tried this logic, but it makes no sense after I looked at it more close books = Book.objects.all() if books.author is Author.pk: books_filtered = books.objects.all() context = super(AuthorView, self).get_context_data(*args, **kwargs) context['books'] = books_filtered return context Now when all authors are displayed on the home page with ListView, when someone clicks on an author they should see only the books the author has made with the DetailView This link I tried but it will only display all the books -
reverse proxy nginx docker django
so what I'm trying to do is to have two web apps: appli1 and appli2. They are served at web.appli1.com and web2.appli2.com here is my docker-compose file : version: '3' services: reverse-proxy: image: nginx volumes: - ./nginx.conf:/etc/nginx/nginx.conf ports: - 8000:8000 - 8001:8001 web: build: . command: python manage.py runserver 0.0.0.0:8000 depends_on: - redis environment: - REDIS_HOST=redis #ports: #- "8000:8000" web2: build: . command: python manage.py runserver 0.0.0.0:8001 depends_on: - redis environment: - REDIS_HOST=redis redis: image: redis:3.2-alpine volumes: - redis_data:/data volumes: redis_data: and here is my nginx.conf file : events { } http { server { listen 8000; server_name web.appli1.com; location / { proxy_pass http://web:8000; } } server { listen 8001; server_name web2.appli2.com; location / { proxy_pass http://web2:8001; } } } I've also set the domains in /etc/hosts using ip of host machine -
How to Create Group and Give Permission to users in Django?
I am Working on a e-commerce Project there i have created a custom dashboard for adding products and others things. but my client requirement create a interface on dashboard where i can create group and give permissions to my staff users. but don't idea what proper way to achieve target. Please give me suggestions. Thank you in advance. -
Django: Forgot Password using Phone Number
I have developed an app in React as frontend and Django as backend. In my app, I am taking only phone number as the input for user registration. I am able to register users successfully but problem lies in the forgot password section. As of now, I have been able to implement this part only via Email, also via the combination of Email and phone number (using Djoser). In Serializers.py from djoser.serializers import SendEmailResetSerializer class CustomSendEmailResetSerializer(SendEmailResetSerializer): phone = serializers.CharField(required=True) def get_user(self, is_active=True): # Retrieving user here. try: user = User.objects.get( phone=self.data['phone'] ) if is_active: return user else: return None except User.DoesNotExist: raise serializers.ValidationError("No user found") In settings.py DJOSER = { 'SERIALIZERS': { 'password_reset': 'serializers.CustomSendEmailResetSerializer', }, } But not via the phone number only. Any suggestions how to do this thing. -
How do I redirect from require_http_methods without using middleware?
I used a @require_http_methods decorator in my code for the logout page, but I can't wrap my head around the proper way to redirect a user on the method error. It is suggested to create a middleware there: django require_http_methods. default page But I wonder if there is a simpler way? -
Why cant I use the message feature provided by django?
In my view (Part of it): from django.contrib import messages try: selection=request.POST.get('portrange') except: messages.warning(request, "Please select the ports") In my html (Part of it): <div class="row"> <div class="col-md-10"> <div class="form-group"> <label for="port_range">Port range</label> <textarea class="form-control" id="port_range" rows="5" name ="portrange"></textarea> </div> </div> </div> How come my messages.warning is not appearing if i have no input in my textarea (portrange)? Am i doing something wrong for django message? All I know is i have to import: from django.contrib import messages When i press the submit button, it just redirect to another page without showing the warning -
Saving date and time into the database using django
I have created a date and time for my website where users will choose the date and time but I not sure how to save it into the database that I had. Below is images of how it looks like on my website and the code for it. my reception.html <script> $(function () { $("#datetimepicker1").datetimepicker(); }); </script> <div class="form-group m-3" > <h4> Hello {{ user.username }}, you are at the Reception Unserviceable Page</h4> <p>Select a date and Time</p> <div class="input-group date" style="width:300px" id="datetimepicker1" data-target-input="nearest"> <input required name="datetime" type="text" class="form-control datetimepicker-input" data-target="#datetimepicker1" /> <div class="input-group-append" data-target="#datetimepicker1" data-toggle="datetimepicker"> <div class="input-group-text"><i class="fa fa-calendar"></i></div> </div> -
In Django admin options for model like ADD/DELETE/UPDATE not showing
I use Django rest framework. After run python manage.py runserver if I open http://127.0.0.1:8000/admin/ then attached below image showing same If I open any model then options like ADD/DELETE/UPDATE options are not showing. Attached above img for same (user model) Errors in console showing below- requirement.txt aiohttp==3.6.3 appdirs==1.4.4 asgiref==3.2.10 async-timeout==3.0.1 atomicwrites==1.4.0 attrs==20.2.0 awacs==0.9.6 aws-xray-sdk==0.95 awscli==1.20.34 boto3==1.18.32 botocore==1.21.34 certifi==2017.7.27.1 cffi==1.14.3 cfn-flip==1.0.3 chardet==3.0.4 click==6.7 colorama==0.4.3 colorclass==2.2.0 cryptography==3.1.1 dateparser==0.7.6 defusedxml==0.6.0 dictdiffer==0.7.0 distlib==0.3.1 Django==3.0.9 django-3-jet==1.0.8 django-admin-rangefilter==0.6.3 django-allauth==0.42.0 django-cors-headers==3.6.0 django-extensions==3.0.6 django-filter==2.4.0 django-flat-json-widget==0.1.1 django-grappelli==2.14.2 django-json-widget==1.0.1 django-money==1.1 django-nested-admin==3.3.2 django-otp==1.0.0 django-phonenumber-field==5.0.0 django-prettyjson==0.4.1 django-sendgrid-v5==0.9.0 django-simple-history==2.11.0 django-slack==5.15.3 django-sort-order-field==1.2 django-split-json-widget==1.16 django-storages==1.9.1 django-twilio==0.13.0.post1 djangorestframework==3.11.1 docker==4.3.1 docutils==0.14 ecdsa==0.16.0 filelock==3.0.12 flatten-json==0.1.7 future==0.16.0 futures==3.1.1 idna==2.6 importlib-metadata==2.0.0 jet-bridge-base==0.8.0 Jinja2==2.11.2 jmespath==0.9.3 jsondiff==1.1.1 jsonpickle==1.4.1 jsonschema==2.6.0 MarkupSafe==1.1.1 mock==4.0.2 more-itertools==8.5.0 moto==1.3.7 multidict==4.7.6 oauthlib==3.1.0 phonenumbers==8.12.8 Pillow==7.2.0 pluggy==0.13.1 prompt-toolkit==2.0.9 psycopg2-binary==2.8.5 py==1.9.0 py-moneyed==0.8.0 pyaml==20.4.0 pyasn1==0.4.8 pycparser==2.20 pycryptodome==3.9.8 PyJWT==1.7.1 pyotp==2.4.0 pytest==4.0.0 python-dateutil==2.6.1 python-dotenv==0.14.0 python-http-client==3.3.1 python-jose==2.0.2 python-monkey-business==1.0.0 python3-openid==3.2.0 pytz==2020.1 PyYAML==5.3.1 regex==2020.7.14 requests==2.24.0 requests-oauthlib==1.3.0 responses==0.12.0 rsa==4.5 s3transfer==0.5.0 sendgrid==6.4.7 six==1.10.0 slackclient==2.9.2 SQLAlchemy==1.3.19 sqlparse==0.3.1 standardjson==0.3.1 starkbank-ecdsa==1.1.0 stringcase==1.0.6 terminaltables==3.1.0 troposphere==2.6.2 twilio==6.45.0 tzlocal==2.1 urllib3==1.25.10 virtualenv==20.0.31 wcwidth==0.2.5 websocket-client==0.57.0 Werkzeug==1.0.1 whitenoise==5.2.0 wrapt==1.12.1 xmltodict==0.12.0 yarl==1.5.1 zipp==3.2.0 I use pyenv for environment.