Django community: RSS
This page, updated regularly, aggregates Django Q&A from the Django community.
-
Intermittent connection issue between micro-services
I have two flask micro-services micro-service A: it in hosted in one remote server, endpoint for which is https://server_ip_A:5000/ from flask import Flask, jsonify import requests app = Flask(__name__) @app.route('/') def index(): try: response = requests.get("https://server_ip_B:5001/healthcheck", verify=False) return jsonify({'msg': response.data}) except Exception as e: return jsonify({'msg': e}) app.run(host='0.0.0.0', port=5000) micro-service B: it in hosted in other remote server, endpoint for which is https://server_ip_B:5001/ from flask import Flask, jsonify app = Flask(__name__) @app.route('/healthcheck') def index(): return jsonify({'msg': "running"}) app.run(host='0.0.0.0', port=5001) Both application is dockerized and deployed using gunicorn with --worker-class=gevent and nginx I observe sometimes micro-service A couldn't communicate with micro-service B, even though both the services are up and running. When micro-service A is not able to communcate with micro-service B, Error it throws is HTTPSConnectionPool(host='server_ip_B', port=5001): Read timed out. (read timeout=60) If communication is made, usually it returns response within 2 seconds. One of the solution I tried is retrying the https://server_ip:5001/healthcheck, if communication is not made. It works but increases the response time for users. What could be the reason? How can i make sure there is always a communication between micro-services without retrying, if both are up and running Thanks in advance! -
gcloud app deploy giving internal 500 error
We have a pythong/django/glcoud mysql db and a working website. A coworker managed the entire site left the company and now when we try to deploy small changes either it errors out "too many files" or we remove the venv folders and get an internal 500 server error on production which we migrate back our changes to before the latest deployment. -
How to link JavaScript page to django web app?
So I have a javascript file I'm trying to link to my html file. I've managed to connect css files to multiple html files so it seems like my static settings and such are working well however I get an error message : "Not Found: /item-store.js" (item-store.js is my JavaScript file). (BTW : My html file is named "item-store.html) I'm not sure how to fix the issue. Any ideas? Here is my html file : {% load static %} <!DOCTYPE html> <html lang="en"> <head> ...Code... </head> <body> ...Code... <script src="item-store.js"></script> </body> </html> A few lines of my settings.py file : INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'app' ] TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [BASE_DIR/'templates'], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ 'django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', ], }, }, ] STATIC_URL = '/static/' STATICFILES_DIRS = ( os.path.join(BASE_DIR, "templates"), ) MEDIA_ROOT = '' MEDIA_URL = '' I'll be active today every once in a while so i'll be able to clarify anything if needed or provide more information. Thank you for your time! -
The error of Django application crashed ngnix and the server
My Django application run well for a while, then I got 502 Bad Gateway, after a few hours, I am unable to ping the domain and use SSH to connect the server. My other application served by ngnix was also not available then. While if I didn't start the Django application, ther application served by ngnix would run steadily. So I guess it is the error of my Django application crashed ngnix and the server. After rebooting the server for serveral times, the server seems recovered then I can ping the domain and use SSH to connect the server. But after a while, the same problem would occurs again. I wonder how to fix the problem. Some diagnostic information since the start of the Django application to the end of the Nginx server provided below. The RAM usage is high during the process. The uwsgi log. https://bpa.st/FP7Q The Nginx error log. https://bpa.st/35EQ -
how to check isinstance for date in django python
I have date data in variable date_var as from django.db import models from datetime import datetime class Model: created_date = models.DateTimeField date_var = model.created_date.date() however when I check isinstance of c with datetime or with models.DateTimeField it returns false isinstance(date_var,datetime) // False isinstance(date_var,models.DateTimeField) // False what is the way to check if c is instance of date? -
Python Django Retrieve Value of others when ForeignKey is selected
If I explain my problem, I want to retrieve the objects value of a models inside another models when a ForeignKey is selected, maybe with the code is will be more easily to understand: the 1st models: class process(models.Model): Process = models.CharField(max_length=Lenght200) LeakValue = models.FloatField(verbose_name='Leak Value', default=0.00) ScreenValue = models.FloatField(verbose_name='Screen Value', default=0.00) date_added = models.DateTimeField(verbose_name='Date Added', auto_now_add=True) def __str__(self) -> str: return self.Process the 2nd models: class productsdefinition(models.Model): Products = models.CharField(max_length=Lenght200, default='NA') Process = models.ForeignKey(process, on_delete=models.CASCADE) LeakValue = models.ForeignKey(process, on_delete=models.CASCADE) ScreenValue = models.ForeignKey(process, on_delete=models.CASCADE) def __str__(self) -> str: return self.Products I didn't find something which help me or my search was wrong. When we create the object in the models process, we have a value in LeakValue & ScreenValue (we can take for example the default value 0.00). How i can retrieved it when on my models productsdefinition, I select the Process inside the ForeignKey? -
Django Admin in Production Mode doesn't load the admin page after login
I am having some issues with my production mode. In this case, my login page in admin is not redirecting to the admin page after a successful login. I get the server response as: 200. [pid: 58|app: 0|req: 2/3] 172.17.0.1 () {46 vars in 976 bytes} [Wed Jun 22 14:07:32 2022] POST /admin/login/?next=/admin/ => generated 2425 bytes in 40 msecs (HTTP/1.0 200) 12 headers in 623 bytes (1 switches on core 0) But, it stays in the same login page. And, also shows a message: " Please enter the correct email address and password for a staff account. Note that both fields may be case-sensitive. " Well... Already tried to understand if my superuser wasn't being created with hashed passwords. But, it is. I made a "python manage.py changepassword" to be sure. I don't have any clue left to troubleshoot this. Just to inform, I am using UWSGI and NGINX. -
While installing the xhtmlpdf in python I am facing the issue with insatlling reportlab package
pip install xhtml2pdf I got the error below: PS D:\pace_at\PACE-AT-NewTech> docker exec pace_at pip install xhtml2pdf Collecting xhtml2pdf Using cached xhtml2pdf-0.2.8-py3-none-any.whl (256 kB) Collecting arabic-reshaper>=2.1.0 Downloading arabic_reshaper-2.1.3-py3-none-any.whl (20 kB) Collecting Pillow>=8.1.1 Using cached Pillow-9.1.1-cp38-cp38-musllinux_1_1_x86_64.whl (3.2 MB) Collecting PyPDF3>=1.0.5 Downloading PyPDF3-1.0.6.tar.gz (294 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 294.8/294.8 kB 1.9 MB/s eta 0:00:00 Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting python-bidi>=0.4.2 Using cached python_bidi-0.4.2-py2.py3-none-any.whl (30 kB) Collecting reportlab>=3.5.53 Using cached reportlab-3.6.10.tar.gz (4.5 MB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'error' error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [10 lines of output] ##### setup-python-3.8.8-linux-x86_64: ================================================ ##### setup-python-3.8.8-linux-x86_64: Attempting build of _rl_accel ##### setup-python-3.8.8-linux-x86_64: extensions from 'src/rl_addons/rl_accel' ##### setup-python-3.8.8-linux-x86_64: ================================================ ##### setup-python-3.8.8-linux-x86_64: =================================================== ##### setup-python-3.8.8-linux-x86_64: Attempting build of _renderPM ##### setup-python-3.8.8-linux-x86_64: extensions from 'src/rl_addons/renderPM' ##### setup-python-3.8.8-linux-x86_64: =================================================== ##### setup-python-3.8.8-linux-x86_64: will use package libart 2.3.21 !!!!! cannot find ft2build.h [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. -
Python Django can't get static files to work
I'm working on a pyhton django project and now I'm trying to add some style to it with a styles.css file but I just can't get it to work. My project is named commerce and my app is called auctions and I have the static file under commerce/auctions/static/auctions/styles.css My settings.py file include INSTALLED_APPS = [ 'auctions', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ] STATIC_URL = '/static/' My auctions/urls.py from django.urls import path from django.conf import settings from django.contrib.staticfiles.urls import staticfiles_urlpatterns from . import views urlpatterns = [ path("", views.index, name="index"), ] if settings.DEBUG: urlpatterns += staticfiles_urlpatterns() My styles.css file h1 { color: red; } Then in my template file, I have this {% load static %} <!DOCTYPE html> <html lang="en"> <head> <title>{% block title %}Auctions{% endblock %}</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> <link rel="stylesheet" href="{% static 'auctions/styles.css' %}"> </head> <body> <h1>Auctions</h1> </body> </html> It feels like I'm missing something obvious. -
Can It be possible to make an ofline first app with flutter and python?
I am learning app developement. I want to build an ofline-first app. I know how to build apps in flutter so I want to use that technology. But the problem is I want to use python as a backend. But as far as I know it always takes a running server to use python as a backend and the backend code stays separate from the main app which means if an user installs the app he will only get the frontend not the backend. So in this case I cant make an ofline-first app with python. So is there any way to attach all my backend code inside my app and the code will use only the user's device as a localhost and not a cloud server so that I can make the app as an ofline-first app. Please someone give me a solution. For your kind information I use django for python backend -
SQL DAYOFYEAR equivalent in Django
I need DAYOFYEAR of SQL equivalent in Django. I can use ExtractDay for day in month. But I found no day_of_year. Station.objects.all().annotate(day=ExtractDay('measured_date')) -
A count of ForeignKey
I have class Team, which means a group of users. And the relation with User is One-to-Many. class Team(models.Model): member = models.ForeignKey(User, null=True, on_delete=models.SET_NULL) But Team may consist of 2 and N members. I think to write manually is not our way, because it depends on count of people which is always variable. class Team(models.Model): member1 = models.ForeignKey(User, null=True, on_delete=models.SET_NULL) member2 = models.ForeignKey(User, null=True, on_delete=models.SET_NULL) member3 = models.ForeignKey(User, null=True, on_delete=models.SET_NULL) How can I do it more elegant and rational? I mean to connect count variable and ForeignKeys associating with users. -
How to use Reverse Relations in Model Django
Thanks for helping till now, i am facing an issue in Model using Django. Here i am Trying to create 4 Foriegn Keys of DeviceException Table in DeviceControlPolicy Table for individual Device. This DeviceException table will consist 4 Type of Device Exceptions and i am creating individual Columns as foriegn key in the DeviceControlPolicy Table for the each Device, just to make it easy. [if any suggestion please let me know how can i use this] and how can i solve this error DeviceControlPolicy.py from django.db import models from .src.models.Vendor import Vendor from .src.models.DeviceException import DeviceException class DeviceControlPolicy(models.Model): vendor_id = models.ForeignKey(Vendor, on_delete=models.CASCADE) id = models.IntegerField(primary_key=True) name = models.CharField(max_length=100) description = models.CharField(max_length=1000) usb_storage_device = models.CharField(max_length=10, default="allow") usb_storage_except = models.ForeignKey(DeviceException, on_delete=models.CASCADE) cd_dvd = models.CharField(max_length=10, default="allow") portable = models.CharField(max_length=10, default="allow") portable_except = models.ForeignKey(DeviceException, on_delete=models.CASCADE) wifi = models.CharField(max_length=10, default="allow") bluetooth = models.CharField(max_length=10, default="allow") webcam = models.CharField(max_length=10, default="allow") webcam_except = models.ForeignKey(DeviceException, on_delete=models.CASCADE) serial_port = models.CharField(max_length=10, default="allow") serial_port_except = models.ForeignKey(DeviceException, on_delete=models.CASCADE) usb_port = models.CharField(max_length=10, default="allow") local_printer = models.CharField(max_length=10, default="allow") network_share = models.CharField(max_length=10, default="allow") card_reader = models.CharField(max_length=10, default="allow") unknown_device = models.CharField(max_length=10, default="allow") def __str__(self): return self.name DeviceException.py from django.db import models from .src.models.Vendor import Vendor from .src.models.DeviceClassification import DeviceClassification class DeviceException(models.Model): vendor_id = models.ForeignKey(Vendor, on_delete=models.CASCADE) id = … -
how to remove the "#" symbol from the url
I have a link that takes me to another section of the same page like this: //this is the section with the id = "about" <section class="page-section bg-primary" id="about"> </section> //this the call to that id: <a class="nav-link" href="#about">About</a> and everytime i click it takes me to that section but it shows up like this in the url bar: http://127.0.0.1:8000/home/#about i want my link to be clean and shows up like this: //link without "#" http://127.0.0.1:8000/home/about -
Audio input on web
I am building a website where it converts speech to text. I wants to know some examples of accessing the microphone, recording a audio and saving it. I don't want anything super complicated, just a simple method. 😁 -
Django Rest Framework can't get CSRF Token by React
I've spent six hours on it and I still can't handle getting CSRF Token and Session ID. I have these two simple functions: @api_view(["GET"]) @ensure_csrf_cookie def getCsrf(request): return Response({'success': get_token(request)}) @method_decorator(csrf_exempt, name='post') class LoginView(views.APIView): permission_classes = (AllowAny,) def post(self, request, format=None): serializer = LoginSerializer(data=self.request.data, context={ 'request': self.request }) serializer.is_valid(raise_exception=True) user = serializer.validated_data['user'] login(request, user) return Response(None, status=status.HTTP_202_ACCEPTED) I have corsheaders installed and I have these settings: CORS_ALLOWED_ORIGINS = [ 'http://127.0.0.1:3000', 'http://localhost:3000', 'http://127.0.0.1:8000', 'http://localhost:8000', ] CSRF_TRUSTED_ORIGINS = [ 'http://127.0.0.1:3000', 'http://localhost:3000', 'http://127.0.0.1:8000', 'http://localhost:8000', ] CORS_ALLOW_HEADERS = ('Access-Control-Allow-Origin', 'Access-Control-Allow-Credentials', 'Authorization', 'Content-Type', 'Cache-Control', 'X-Requested-With', 'x-csrftoken') CORS_ALLOW_CREDENTIALS = True CSRF_COOKIE_HTTPONLY = False SESSION_COOKIE_HTTPONLY = False CSRF_USE_SESSIONS = False CSRF_COOKIE_SECURE = False SESSION_COOKIE_SECURE = False SESSION_COOKIE_SAMESITE = 'None' CSRF_COOKIE_SAMESITE = 'None' So, both of those cookies appear in the responses. Neither of them are written in the browser. I've tried everythong I found. This is my React part axios.defaults.withCredentials = true; useEffect(() => { axios.get(`http://127.0.0.1:8000/csrf/`) .then(response => { Cookies.set('csrftoken', response['data']['csrf']); }) .catch(error => { console.log(error); }); }, []); function onSubmit(e) { e.preventDefault(); let data = { username: e.target.username.value, password: e.target.password.value }; const config = { headers: { 'content-type': 'application/json', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Origin': 'http://localhost:8000', 'X-CSRFToken': Cookies.get('csrftoken') }, withCredentials: true, crossDomain: true } axios.post(`http://127.0.0.1:8000/login/`, JSON.stringify(data), config) .then(response => … -
How should I change all my products' availability to true in django oscar?
I'm slowly getting familiar with overriding things in oscar, but in this case I'm still not sure what and where to override to achieve my goal. So when I'm trying to add a product to basket, it will check if it's available at ../api/product/n/availability which returns something like this: { "is_available_to_buy": false, "message": "Unavailable" } Since I personally don't need to check for availability, I just want it to return true in every case, for which I thought about these solutions: https://django-oscar.readthedocs.io/en/3.1/_modules/oscar/apps/partner/strategy.html#Structured Here, in the first function under Structured, I could change is_available_to_buy to true Or https://github.com/django-oscar/django-oscar-api/blob/master/oscarapi/serializers/product.py I could override AvailabilitySerializer to return true by default. I wonder if any of these could be overridden, and if yes, how exactly do I do it? -
AttributeError: module 'graphql_jwt' has no attribute 'DeleteJSONWebTokenCookie'
I am using django-graphql-jwt package everything works fine so far, but getting this error just stuck at there,appropriate your help import graphene import graphql_jwt class Mutation(graphene.ObjectType): token_auth = graphql_jwt.ObtainJSONWebToken.Field() verify_token = graphql_jwt.Verify.Field() refresh_token = graphql_jwt.Refresh.Field() # getting error from this line delete_token_cookie = graphql_jwt.DeleteJSONWebTokenCookie.Field() -
Comments not showing django review ecommerce
Am trying to introduce some basic comments to my ecommerce website on the products. I got the code in and i dont get why it dosent display on the page? Any advice why comments dosent show up when u submit the review, i get no errors. in views.py its: def product in models.py its: class Review in models.py its: in Product_detail.html its: starts at: Reviews views.py from django.shortcuts import render, redirect, reverse, get_object_or_404 from django.contrib import messages from django.contrib.auth.decorators import login_required from django.db.models import Q from django.db.models.functions import Lower from .models import Product, Category, Review from .forms import ProductForm # Create your views here. def all_products(request): """ A view to show all products, including sorting and search queries """ products = Product.objects.all() query = None categories = None sort = None direction = None if request.GET: if 'sort' in request.GET: sortkey = request.GET['sort'] sort = sortkey if sortkey == 'name': sortkey = 'lower_name' products = products.annotate(lower_name=Lower('name')) if sortkey == 'category': sortkey = 'category__name' if 'direction' in request.GET: direction = request.GET['direction'] if direction == 'desc': sortkey = f'-{sortkey}' products = products.order_by(sortkey) if 'category' in request.GET: categories = request.GET['category'].split(',') products = products.filter(category__name__in=categories) categories = Category.objects.filter(name__in=categories) if 'q' in request.GET: query = request.GET['q'] … -
How to get the path name of an URL path in django using the request.path
I have urls paths with name in my urls.py file. urls.py urlpatterns = [ path('home/', views.home, name="home_view"), ] my views.py def home(request): path_name = get_path_name(request.path) return HttpResponse(path_name) Now, I need to get the path name, "home_view" in the HttpResponse. How can I make my custom function, get_path_name() to return the path_name by taking request.path as argument? -
Django how split durationfield over dates it covers using ORM (PostgreSQL)
using Django (with PostgreSQL) I have a model that represents activities with a certain starting moment (start_datetime) and a duration. So it is possible that an activity covers more than one day, and I would like to know per activity how much time it covers on consecutive dates (days). So an example would be, all using UTC timezone, to have a 48 hour appointment start on 2022-12-24T12:00, which would have the activity end on 2022-12-26T12:00, giving duration per day: 2022-12-24 - 12 hours 2022-12-25 - 24 hours 2022-12-26 - 12 hours And I would like to get this information for up to a year's worth of activities, for a single person's agenda. Is this possible, and if so does anyone have an example of how to achieve this? Ideally I would also be able to specify the timezone that this data needs to be determined in. Thanks in advance! -
Autofill the model which have related fields to another model
I am creating a django application and have created three models: models.py : class User(AbstractUser): pass class Listing(models.Model): title = models.CharField(max_length=32) details = models.CharField(max_length=300, blank=True) price = models.DecimalField(max_digits=7, decimal_places=2) photo = models.ImageField() class ListingDetails(models.Model): listing_id = models.ForeignKey(Listing, on_delete=models.CASCADE, related_name="auctioner", unique=True) owner_id = models.ForeignKey(User, on_delete=models.CASCADE, related_name="auctioner") created_at = models.DateTimeField(default=timezone.now()) Listingdetails have one to many relationship. One user can have many Listing . What i want is that whenever I create a listing the data in ListingDetails get automatically filled with the listing_id which is pk of Listing and user_id of user who created listing and created_at gets automatically filled with that time. -
Difference between select_related() and prefetch_related() in django?
Can I use prefecth_related for foreign key field. I used select_related for a table containing foreign key fields. Can I use prefetch Instead of that? I am working on modelviewsets. models.py class Category(models.Model): category_name=models.CharField(max_length=100) active=models.BooleanField(default=True) def delete(self): self.active=False self.save(update_fields=('active',)) def __str__(self): return self.category_name class Brand(models.Model): brand_name=models.CharField(max_length=100) active=models.BooleanField(default=True) def delete(self): self.active=False self.save(update_fields=('active',)) def __str__(self): return self.brand_name class Product(models.Model): name=models.CharField(max_length=100) price=models.FloatField() details=models.TextField() category=models.ForeignKey(Category,on_delete=models.CASCADE,related_name='productshavecategory') brand=models.ForeignKey(Brand,on_delete=models.CASCADE,related_name='productshavebrand') stock=models.PositiveBigIntegerField() price_per_amount=models.CharField(max_length=100) rating=models.PositiveIntegerField(default=0) active=models.BooleanField(default=True) Special_offer=models.BooleanField(default=False) rating_count=models.PositiveIntegerField(default=0) average=models.FloatField(default=0) def delete(self): self.active=False self.save(update_fields=('active',)) def __str__(self): return self.name views.py class CategoryViewset(viewsets.ModelViewSet): permission_classes = [IsAuthenticated] queryset=Category.objects.filter(active=True) serializer_class=CategorySerialaizer def list(self, request, *args, **kwargs): queryset=Category.objects.filter(active=True) if queryset.exists(): serializer=CategorySerialaizer(queryset,many=True) return Response({'status':True,'data':serializer.data,'message':'Category found'}) else: return Response({'status':False,'data':None,'message':'Category not found'}) class BrandViewset(viewsets.ModelViewSet): permission_classes = [IsAuthenticated] queryset=Brand.objects.filter(active=True) serializer_class=BrandSerialaizer def list(self, request, *args, **kwargs): queryset=Brand.objects.filter(active=True) if queryset.exists(): serializer=BrandSerialaizer(queryset,many=True) return Response({'status':True,'data':serializer.data,'message':'Brands found'}) else: return Response({'status':False,'data':None,'message':'Brands not found'}) class ProductViewset(viewsets.ModelViewSet): permission_classes = [IsAuthenticated] queryset=Product.objects.select_related('category','brand').filter( Q(active=True) & Q(stock__gt=0) ) serializer_class=ProductSerialaizer filter_backends = [DjangoFilterBackend,filters.SearchFilter] search_fields = ['name'] filterset_fields = ['category','brand'] def list(self, request, *args, **kwargs): queryset=Product.objects.select_related('category','brand').filter( Q(active=True) & Q(stock__gt=0) ) if queryset.exists(): serializer=ProductSerialaizer(queryset,many=True) return Response({'status':True,'data':serializer.data,'message':'Products found'}) else: return Response({'status':False,'data':None,'message':'Products not found'}) When I used prefetch_related instead of select_related I got same result and query set returned at almost same time. Is this a proper way? -
Can't import modules
I've searched for this problem and tried different solutions but can't fix it. In my Django project I have different apps and a non-app directory called 'testing_utils' with modules which serve for a testing purposes. In particular I want to import all available models to file dummy_factory.py. However when I simply import modules from my apps like so: from abc import ABC from datetime import date from users.models import User I get the error message ModuleNotFoundError: No module named 'users' Which is strange since I definetley can import models to some_app.views.py and access them. Here's an example of my project's directory: /home/user/dev/project/ ▸ project/ ▾ testing_utils/ dummy_factory.py ▾ users/ ▸ __pycache__/ ▸ migrations/ ▸ templates/ ▸ tests/ __init__.py admin.py apps.py models.py views.py manage.py* -
Is there a good way to develop a ERP/CRM application using django? Maybe using an existing example such as Acumatia, Odoo or SAP?
Ok so I am in the process of starting my own ERP(enterprise resource planning)/CRM(company resource management) company and would like to use django to develop the application. I have the database setup however the data in the tables I extracted is from another ERP. I need help piecing everything together. Can anyone help me?