Category "django"

Django __init__() got an unexpected keyword argument 'user'

Im trying to build a password reset system using the default django libraries. The problem is after trying to enter the site which is for changing it (PasswordC

Summernote Icons not showing using django-summernote

(Note: Issue resolved, see update below) I am using django-summernote and its icons aren't loading. I have followed multiple suggestions on other stack posts (

Deploying FrontEnd and BackEnd as two separate applications with Google Cloud App Engine

I have two application that I want to deploy with Google Cloud App Engine. One of them is react front end, and I want to serve this through www.videoo.io Second

How to have multiple Auth models in django

I have an application where I've two models both models have same fields client buyer I'm using separate models because client can also signs up as a buyer usin

how to link a div using <a href> to appear in the middle of the screen instead of top?

this is to go back to home page that has a listview of posts and to keep the screen at where the post is located after clicking go back button in the post detai

DRF ModelSerializer meta extra_kwargs not working for related fields

I am developing an API in DRF and have stumbled upon one issue that hopefully you can help me to solve. Let's assume I have the following model and a serializer

How to mention users using @ in django

I have been working on a project on django and it is very similar to instagram and twitter, one of the functions it needs to have is to mention users using "@"

GIS - Can i have multple geo_fields (point, polygon, line) in 1 model and then serialize with DRF?

If I have 1 model with 3 different geo_fields in (point, poly and line), can I serialize all of these with django-rest-framework-gis? My model: class Job(BaseMo

A problem with django using DefaultRouterWithNest

router2 = DefaultRouterWithNest() ( router2.register(r'eva',eval.Evadetail, basename='eva') .register(r'evand',eval.Evand,basename='eva-evand',p

Clean request.data in django rest

Quick question: I know that Django has some baked-in security at different system levels, but I'm not sure if accessing the the request.data property directly s

CSS not applied to the HTML page (Django)

index.html I have changed {% static "/main/css/index.css" %} to {% static "main/css/index.css" %} {% extends 'main/base.html' %} {% load static %} <

Using CreateView with 2 Models at the same time

should I be building a function to achieve what I am trying to do?

dj-rest-auth Reset email link keeps pointing to the backend

I'm using dj-rest-auth with react and i'm trying to use the frontend url instead of the backend url. The solution i am using for the account creation confirmati

psycopg2.errors.InsufficientPrivilege: permission denied for relation django_migrations

What my settings.py for DB looks like: ALLOWED_HOSTS = ['*'] DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2',

Replacement in python package in Docker

GraphQL is still not supported in Django 4, so to use it I need to change the line: "from django.utils.encoding import force_text" to "from django.utils.encodin

Django / Ubuntu 20 - How change to a previous version of GDAL

first of all, thanks for your help. I'm new to django, and I'm developing a site where you have to enter coordinates in some forms and then they should be edit

Url decoding problem on deployment with IIS and FastCGI on windows server

I realized an app front Angular, back-end Django, deployed on Windows server using IIS and FastCGI. This app serves media files on a certain URL. It works fine

When django load data to memory?

Lets have simple model: class NewModel(models.Model): json_data = models.JSONField(default=dict) Then lets get it: model = NewModel.objects.get(pk=1)

WARNING: autodoc: failed to import module 'upload_data_to_server' from module 'manual';

I'm trying to document a Django project using Sphinx's autodoc extension. I have two main problems: It's documenting excessivelly in some modules (importing doc

I want to assign value of logged in user's user_company to the user_company field of the newly created user

When a user creates a user record for a client, the new client should should have the current logged in user's User.user_company value. In the problem here, I w