929 questions
-1
votes
1
answer
152
views
Django Environment Identifying the DEBUG as False while it is set to True
I get and error
CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False
Below are the edits I attempted seeing at stackoverflow's suggestion from various queries around 5 of them were ...
1
vote
1
answer
147
views
Django Summernote plugin upload image by userid
I am using the Summernote plugin for Django and my target is to allow users to upload media inside the server. At the moment files are organized (by default) in a folder named with the upload date. ...
1
vote
1
answer
147
views
AxesBackend requires a request as an argument to authenticate
I need to add a restriction on account login attempts to my django site, I found the popular django-axes library, followed the documentation and code examples, but when I try to log in to my account (...
1
vote
1
answer
219
views
Django ignores static configuration for uploading to S3
I had the same problem with media files before, I did all the configuration but django kept saving the media files locally and not in S3, I think it was solved by implementing a custom class ...
1
vote
1
answer
1k
views
Django:: ImproperlyConfigured: Pooling doesn't support persistent connections
I've recently upgraded to Django 5.1 and configured the database pooling option with the following settings:
DATABASES["default"]["OPTIONS"] = {
"pool": {"...
4
votes
0
answers
96
views
Djoser Create User keeps returning field required and is not creating users
I ran into a problem in postman that was not there until yesterday when I was working with it and it was working fine, but now it is not working anymore.
I'm trying to create a user using djoser ...
0
votes
0
answers
107
views
ValueError:The field admin.LogEntry.user was declared with a lazy reference to 'recipes.customuser',but app'recipes'doesn't provide model 'customuser'
This is the Custom user model
I also declared in settings
AUTH_USER_MODEL="recipes.CustomUser"
still I face this error
ValueError:The field admin.LogEntry.user was declared with a lazy ...
1
vote
1
answer
259
views
Issue with Custom 404 Page Rendering in Django
I'm encountering an issue with my custom 404 page rendering functionality in Django. Despite setting up the necessary components, the custom 404 page is not being displayed when a page is not found. ...
1
vote
1
answer
509
views
Issue Adding "django.contrib.gis" to INSTALLED_APPS in Django
I'm currently developing an application using Django and aiming to integrate geospatial functionalities by adding "django.contrib.gis" to my project's INSTALLED_APPS. However, upon adding ...
0
votes
1
answer
66
views
Deployment: Procfile with Django Project Structure for more than one App
I need to know how you normally solve this issue.
When you start a project, django creates a folder for the project and a second one inside it with the exact same name and the files like: settings.py, ...
0
votes
1
answer
93
views
How do I setup "Django" to generate multiple 'STATIC_ROOT' deployment directories in its settings.py?
Here's the problem. When migrating multiple 'STATICFILES_DIRS', I am good to go, and the server continues to run without any errors...
... Here's the snippet to my 'STATICFILES_DIRS' ...
...
...
0
votes
2
answers
340
views
How do I connect to Google Cloud mySQL from App Engine using Django-Environ?
I am trying to connect a Django Google App engine to an instance of Cloud Mysql using django-environ. The app is unable to connect to the database, but otherwise runs successfully.
I have followed ...
0
votes
1
answer
404
views
DRF-Spectacular with django-split-settings: AssertionError: Incompatible AutoSchema to generate Swagger
I am encountering an error when utilizing django-split-settings (version 1.3.0) and drf-spectacular (version 0.27.1) in my Django project. The error occurs when attempting to access the Swagger UI ...
0
votes
1
answer
35
views
Auth email in Django
I am making my first app, which is a todolist app. I am trying to get users to register with email and login with it.
This is the error that the debug shows me:
ProgrammingError at /register/
no ...
1
vote
1
answer
700
views
Difficulty Using gettext_lazy in Django 4 Settings with django-stubs, Resulting in Import Cycle and mypy Type Inference Error
Problem:
Mypy Error:
The mypy error encountered is as follows:
error:Import cycle from Django settings module prevents type inference for 'LANGUAGES' [misc]
I'm encountering challenges with the usage ...