Skip to main content
4 votes
0 answers
33 views

In my app I combine Django and FastAPI. So I start my Django server this way: from fastapi import FastAPI from django.core.asgi import get_asgi_application app = FastAPI() app.mount("/dj", ...
alex's user avatar
  • 141
0 votes
2 answers
48 views

I have a working ListView with template. I want to filter the list based on the contents of a form, something like: class SampleListView(FormMixin, ListView): model = Sample paginate_by = 15 ...
mattm's user avatar
  • 5,982
0 votes
0 answers
58 views

I am currently working on a text extraction component of my Django backend, which intends to extract text from urls (working), pure text (working), and files (.pdf, .doc, .ppt, .md, .txt, .html). My ...
Conor's user avatar
  • 1
-3 votes
0 answers
58 views

So I face this issue often. Apart from being a backend python dev, I also have to handle a team consisting of frontend guys as well. We are into SPAs, and a single page of ours sometime contain a lot ...
Shivam Kumar Choudhary's user avatar
Advice
3 votes
7 replies
106 views

I have some experience with Python, and I’m interested in backend development. Is Django still a good choice to learn in the current job market? I’m particularly interested in its relevance for modern ...
Ayob Bleblo's user avatar
1 vote
1 answer
65 views

I am creating an API with Django Rest Framework and I keep encoutering an issue where i am unable to pull a single item from my django model on the browser. I have two endpoints one that gets the ...
Zubair Amjad's user avatar
0 votes
1 answer
40 views

Edit.: Ok, so this was something rather stupid on my end. I assumed that since the docs said 'Axes makes use of django-ipware package to detect the IP address of the client and uses some conservative ...
John Smith's user avatar
1 vote
0 answers
59 views

I have a limited set of LANGUAGES: LANGUAGE_CODE='sl' # It's for locals first of all LANGUAGES=[ ('sl', _('Slovene')), # First is default ('en', _('English')), ('it', _('Italian')), ('...
aikipooh's user avatar
  • 301
1 vote
1 answer
59 views

I am trying to use Django's default select widget to render an html dropdown and I just can't seem to figure out what I am doing wrong... here is my models.py class VehicleYear(TimeStampedModel): ...
user3125823's user avatar
  • 1,968
Advice
0 votes
5 replies
35 views

So i have a char field which i was using to store emails. Now there are some rule/validation and processes for email fields like email validation and email normalization etc. I have to add the ...
Abhishek's user avatar
Advice
0 votes
2 replies
14 views

I have this Django model: class Player(models.Model): class Meta: verbose_name = _("Player") verbose_name_plural = _("Players") first_name = models....
AlexNikolaev94's user avatar
1 vote
2 answers
100 views

I have this user model and in admin.py which of course is used by my client as admin page view and recently my client requested that the user/s who has been archived should not show in the active list ...
raza hussain's user avatar
0 votes
2 answers
60 views

In PyCharm we have a convinient way to turn off selected part of a code by pressing Ctrl+/. Later we can turn it on back by pressing the same key combination. However if I am inside the HTML code the ...
Vladimir's user avatar
-1 votes
1 answer
63 views

I'm designing a small Django app, and writing some code snippets to go with the design. I have some simple models in the design, like Person and Book: from django.db import models class Book(models....
Marios Zindilis's user avatar
2 votes
1 answer
61 views

I am testing a Django view that increments recipe view counters using Redis. The logic is: each user can increment recipe views only once different users should increment the counter Redis is ...
vitaleoneee's user avatar

15 30 50 per page
1
2 3 4 5
20762