I am trying to run pytest in a django project with it is showing me error of no module loading. I have created init.py in test folders, but that also not worked
I'm implementing a Django Form witch should contain the field 'fieldA' from modelA: class ModelA(models.Model): fieldA = models.CharField(max_length=8)
How to Create Multiple Experinces in Django This is Model.py Files code from django.db import models # Create your models here. class Detail(models.Model):
I am working on a Django project where I want to search profile records for those that are resident in a particular country and state. In this project I would b
I keep having an error whenever I try to PATCH in order to update a specific user info. As per Djoser documentation, the endpoint is located in /users/me/ https
I am writing a simple app to track sales leads based on the Django tutorial "Writing your first Django app" (https://docs.djangoproject.com/en/4.0/intro/tutoria
I'm using rest_framework_simplejwt package for JWT authentication in Django. I created some APIs for login, reg, token_verify, referesh_token and student_data.
What are 'rf' and 'user_context' parameters and when are they assigned? import pytest from rest_framework import status from rest_framework.reverse import rever
I have two models, with OnetoOne field. How can I update/create them with help of serializers? class Page(models.Model): info = models.TextField(null=True, bla
I have faced two or three issues with django customuser model. The first one being the skills models. I wanted to add the Skills in the custom user, realized th
I have two simple HTML forms on one page. I want to create Django view to submit multiple Django forms. I can submit form1 but I have no clue how to submit form
Working on a site where users can upload photos. As many of you many know, unedited iPhone photos use an "Orientation" EXIF tag to determine orientation. On my
I am working on a bug project. Which is on Python 2.7, we are migrating to Python 3.9. I am getting import errors in manage.py during importfrom django.core.man
I ahve a django project with the application web-api and the following url configuration: main project urls.py urlpatterns = [ path('admin/', admin.site.url
lets suppose i have this queryset_array: queryset_array = [{"category":"a"},{"category":"a"},{"category:"b"},{"category":"b"},{"category":"c"},{"category":"c"}]
I have run through a setup and I'm having issues migrating my app (within my venv). When I run python manage.py migrate I recevie this error: OSError: dlo
Help me with this error: NPM run error my webpack setting: module.export = { module: { rules: [ { test: /\.js$|\.jsx/, exclu
I am creating a livestreaming site using Django and I need to upload an image using an ajax post request to a model form on the django site. I am working with t
I am new to Django and pretty new to Ajax. I am working on a project where I need to integrate the two. I believe that I understand the principles behind them b
I have a table like below: id | type | code ------------------------------------- 0. 5 2 1 6 6 2 8