Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

I am overriding settings for the entire test class like this: @mock_aws @override_settings( AWS_CLOUDFRONT_DOMAIN="fake_domain", AWS_CLOUDFRONT_KEY="fake_key", ...
Labeeb's user avatar
  • 117
-1 votes
1 answer
134 views

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 ...
M K's user avatar
  • 1
1 vote
1 answer
139 views

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. ...
Nicolaesse's user avatar
  • 2,764
1 vote
1 answer
143 views

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 (...
DANIRU's user avatar
  • 13
1 vote
1 answer
213 views

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 ...
Esteban Fernandez's user avatar
1 vote
1 answer
1k views

I've recently upgraded to Django 5.1 and configured the database pooling option with the following settings: DATABASES["default"]["OPTIONS"] = { "pool": {"...
Dante's user avatar
  • 435
4 votes
0 answers
89 views

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 ...
kimiya's user avatar
  • 41
0 votes
0 answers
107 views

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 ...
Rohit Parodhi's user avatar
1 vote
1 answer
243 views

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. ...
DragonFruit's user avatar
1 vote
1 answer
508 views

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 ...
SindBadSystem's user avatar
0 votes
1 answer
65 views

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, ...
Andresfgc's user avatar
0 votes
1 answer
91 views

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' ... ... ...
Little Rick's user avatar
0 votes
2 answers
333 views

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 ...
Wesley Peart's user avatar
0 votes
1 answer
391 views

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 ...
Ali Shamsadini's user avatar
0 votes
1 answer
35 views

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 ...
Rcacodedev's user avatar
1 vote
1 answer
675 views

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 ...
Charlie's user avatar
  • 11
0 votes
0 answers
54 views

I have a Django command which I can run using manage.py. The command imports django.conf.settings, then I grab Songs from the database to update bits of the settings: from django.conf import settings ...
Faith Baghan's user avatar
0 votes
1 answer
366 views

I've added a 'templates' folder into the blog directory but I can't get the Django database urls to recognise it. I think I need to add my url into the settings.py file but I have no idea how I'm ...
user23331179's user avatar
3 votes
2 answers
4k views

We are in process to upgrade to django 4.2. However we are facing above issue in running django peroject. We have already setup new way of STORAGES in settings.py i.e. STORAGES = { "...
sAm's user avatar
  • 683
0 votes
1 answer
927 views

I'm currently working on a Django application that interacts with an Oracle database. My application needs to execute SQL queries on a remote Oracle database, which is configured in the settings.py ...
Underoos's user avatar
  • 5,276
7 votes
1 answer
5k views

there's an expanded version of the accepted correct answer in my update to this question below Have I found a bug in Django? The config setting USE_L10N is deprecated since 4.0 and scheduled for ...
nigel222's user avatar
  • 8,322
1 vote
1 answer
180 views

I am developing a web application using Django and encountering a critical issue during database migration with PostGIS. While migrations work seamlessly with the SpatiaLite engine, switching to the ...
nic's user avatar
  • 11
1 vote
1 answer
69 views

Expecting to be able to access django admin panel and add social accouunt opening admin panel by adding standard admin/ extension to local preview port URL. This is expected to lead to classic django ...
Laurie Crean's user avatar
0 votes
1 answer
363 views

I inherited a Django project that another team of students were working on a couple of years ago. I have been trying to run the project using py manage.py runserver but that doesn't work. Instead, I ...
Clover's user avatar
  • 1
0 votes
1 answer
106 views

I am using Django 4.2.4 and created a class with Abstract User class for authentication in Django. Works fine on Localhost but when deployed the admin route is redirecting and csrf verification is ...
Harsha Reddy's user avatar
1 vote
1 answer
56 views

I am working on larger Django project which needs multiple levels of subfolders, for example applications/examples/example_1 where the app is. When adding this app to settings.py INSTALLED_APPS = [ ...
Stefan Glova's user avatar
1 vote
1 answer
400 views

I've created an application in django, but when I deployed it in Vercel, the HTML works just fine, but the CSS don't load. I pasted some of my project below, please ask me if you need any other files ...
Sethiiz's user avatar
  • 11
12 votes
3 answers
20k views

"ModuleNotFoundError: No module named 'allauth.account.middleware'" I keep getting this error in my django project even when django-allauth is all installed and setup??? I tried even ...
Pedro Santos's user avatar
0 votes
2 answers
264 views

The settings code is import os import environ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) env = environ.Env(DEBUG=(bool, False)) environ.Env.read_env(os.path.join(BASE_DIR,...
Juan Monster's user avatar
0 votes
2 answers
911 views

After hosting my Django project on PythonAnywhere, the Django Admin login page looks like this: I have run python manage.py collectstatic and this still happens. There are many errors in the ...
Bob The Builder's user avatar
0 votes
1 answer
138 views

This is my code: project/urls/py: from django.contrib import admin from django.urls import path from todoapp import views urlpatterns = [ # admin page path('admin/', admin.site.urls), # ...
couz2200's user avatar
2 votes
1 answer
944 views

I created the middleware simple_middleware() in middleware/sample.py following the doc as shown below. *I'm learning Middleware: django-project |-core | └-settings.py |-middleware | |-__init__....
Super Kai - Kazuya Ito's user avatar
0 votes
2 answers
84 views

im new to django and im trying to verify users email with Django-Verify-Email 2.0.3. As the documentation says i installed the package and did the same steps as they say but i get this error ...
mortada amer's user avatar
0 votes
1 answer
195 views

Page not found (404) “/app/media/products/23/05/01/jeans.jpg” does not exist while delpolying on railway (as i have turned debug on for the exact error) . i get this error when i am trying to open my ...
shafquet's user avatar
0 votes
0 answers
30 views

So I have the image that I want to display in my page in a subdirectory 'media'.So I wrote this in my settings.py as recommended everywhere in the internet and documentation: MEDIA_URL = '/media/' ...
TOXIC VOID 066's user avatar
-1 votes
2 answers
499 views

I'm trying to run my django server but keep on getting this error, [Errno 2] No such file or directory. I tried using the cd manage.py command but also got this error cd : Cannot find path 'C:\Users\...
Champion_Develops's user avatar
0 votes
1 answer
132 views

Inside of a page in my templates folder, I tried using an include statement in a for loop, like so: {% for model_othermodel in model.othermodels.all%} {% include othermodels.html with ...
Crazi_Ninja's user avatar
0 votes
1 answer
92 views

I am trying to deploy my Django website using Heroku. So far the site has deployed successfully but the only problem is collecting the static files. I am stuck with how I am supposed to configure my ...
logan_9997's user avatar
0 votes
3 answers
842 views

In my Django project I want to stop the cache from clearing whenever the server is restarted. Such as when I edit my views.py file, the cache is cleared and I get logged out which makes editing any ...
logan_9997's user avatar
0 votes
0 answers
372 views

I have seen alot of articles and videos about the best practices when it comes to managing django settings file. And almost of them talks about having a base settings base_settings.py and then ...
se7en's user avatar
  • 918
0 votes
1 answer
443 views

For context, when one wants to change settings in a test (yes, it's ok to change it there), we can use override_settings() or modify_settings() (as observed here). That works when running the tests in ...
Tiago Peres's user avatar
  • 15.9k
0 votes
1 answer
476 views

I am using Django to create a web app, and when I tried to use the py manage.py runserver command, I got this error: ModuleNotFoundError: No module named '"travelApp' This is the full error: ...
kool's user avatar
  • 104
0 votes
1 answer
563 views

A current miniproject that I am working on is a personal cocktail "cookbook" website, where I display different drinks, their recipes, my personal notes, images, etc. I configured the code ...
2turtley's user avatar
0 votes
0 answers
402 views

I'm trying to create an IAM user that can be used for my Django project for serving static files with AWS S3 (also, locally). For that I need to fill blanks in my Django's settings.py: ""&...
Paweł Pedryc's user avatar
0 votes
0 answers
201 views

The client provided the single oracle( version 19c ) database in which 2 custom schemas are created and each has a separate tablespace. I need to connect those schemas/tablespaces with 2 separate ...
Himanshu Kapoor's user avatar
1 vote
1 answer
204 views

I have one project in production on AWS Elastic Beanstalk. In my settings.py I'm using os.getenv, so I'm able to get my environment variables from AWS Elastic Beanstalk environment properties. I ...
Paweł Pedryc's user avatar
0 votes
1 answer
224 views

I use django-minio-backend in order to integrate Django and Minio. I want to create a test bucket for created media files during tests running. I tried to do that in a custom test runner as follows: ...
msln's user avatar
  • 1,563
0 votes
0 answers
107 views

I am creating an app in Django, and I am getting this error: Forbidden (CSRF cookie not set.) I am using Elastic Beanstalk to host my website, and everything was fine until it started doing this. My ...
kool's user avatar
  • 104
0 votes
0 answers
15 views

I am looking for a way to read from a list of variables and set them in Django settings using the settings.configure() method: from django.conf import settings def func(i): # do something and ...
Faith Baghan's user avatar
0 votes
1 answer
421 views

after running python manage.py runserver Got the Error port 5432 failed: FATAL: Feature not supported: RDS Proxy currently doesn’t support command-line options. DATABASES = { 'default': { ...
veeresh G.S's user avatar

1
2 3 4 5
19