311,597 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
54
views
Django channels tutorial issue
As I am following the Django channels tutorial (here is the link:
https://channels.readthedocs.io/en/latest/tutorial/part_2.html
), I won't post any code except the specific problem I am having.
In my ...
0
votes
0
answers
35
views
ajax request in django
I implemented the post like feature using ajax in the Django project, but it doesn't work. And it gives a 404 error in the console.
template.html
<script>
$(document).ready(function(){
...
-2
votes
2
answers
62
views
Python Django Rest Framework
what is the difference between decorator @api_view and @csrf_exempt in project level django rest framework? I need the difference and which is better to develop the project.
0
votes
1
answer
34
views
Django Summernote: How to delete attachment files from server when removing them from admin?
When I delete a file from the Attachment model (which is provided by django-summernote), the record is removed from the database, but the actual file remains on the server.
I want to make sure that ...
0
votes
1
answer
48
views
TailwindCSS utilities/classes always override static CSS styles
I try to use TailwindCSS and CSS (as static), but TailwindCSS utilities override the static CSS styles. I tried moving TailwindCSS invocation tags after, before static CSS invocation, but it didn't ...
0
votes
0
answers
35
views
Django + allauth email first authentication
I have a django rest api app where I want to setup a custom authentication flow. Here is how I want it to work.
Sign Up
User enters email
User gets email verification code
User enters verification ...
-3
votes
0
answers
37
views
How to persist multi-step form data between views in Django without committing to DB? [closed]
One-line project/context.
Short description of the problem and constraints.
Minimal code: models, the two views, form classes, snippets of urls.py.
Exact observed behavior or error.
Alternatives ...
0
votes
0
answers
60
views
iOS/web Auth Client ID Handling for Google Sign In
To preface, I'm not asking for a direct fix here, I'm just curious if what I'm doing is the appropriate auth flow for setting dynamic client ID based on device platform.
I am 2 applications that use ...
0
votes
0
answers
29
views
Flaky Circle CI tests (django): ImportError: cannot import name "task" from "app.tasks" (unknown location)
Sometimes, I have many flaky test failures due to one error:
ImportError: cannot import name 'task_import_events_to_db' from
'app.tasks' (unknown location)
It seems the tests fail because of this ...
0
votes
0
answers
26
views
KeyError 'email' for django-authtools UserCreationForm
I am experiencing an error for which I can’t find an origin.
I believe the error stems from GitHub - fusionbox/django-authtools: A custom User model for everybody!, and disclaimer, I have asked this ...
0
votes
2
answers
77
views
Django check at runtime if code is executed under "runserver command" or not
I've got a project based on django, that wraps some custom code.
During import, this code is loading some heavy file to be executed. I need to check whether imports are executed under "runserver ...
2
votes
2
answers
53
views
Django REST project doesn’t detect apps inside the "apps" directory when running makemigrations
I have a Django REST project where I created a directory called apps to store all my apps.
Each app is added to the INSTALLED_APPS list in my settings file like this:
INSTALLED_APPS = [
'django....
0
votes
1
answer
31
views
Cannot query "admin": Must be "ChatMessage" instance in Django
In View Function
it can show this error
Request Method:GETRequest URL:http://127.0.0.1:8000/inbox/Django Version:4.2.25Exception Type:ValueErrorException Value:Cannot query "admin": Must be &...
0
votes
1
answer
62
views
Is it reasonable to use Cloud storage for async webhook processing on Cloud Run
I'm processing webhooks on Cloud Run (Django) that need async handling because processing takes 30+ seconds but the webhook provider times out at 30s.
Since Cloud Run is stateless and spins up per-...
0
votes
0
answers
66
views
Django ORM: Add integer days to a DateField to annotate next_service and filter it (PostgreSQL)
I am trying to annotate a queryset with next_service = last_service + verification_periodicity_in_days and then filter by that date. I am on Django 5.2.6 with PostgreSQL. last_service is a DateField. ...