django-settings Questions

12

I am getting an error ImproperlyConfigured at /admin/ AUTH_USER_MODEL refers to model 'ledger.User' that has not been installed I am only getting it on my production server. Not when I run thing...
Impostor asked 13/11, 2014 at 16:46

4

I am trying to create my own kind of project structure by looking at two scoops of django. The project structure looks something like this .envs .local .django .postgres .production .dja...
Wassail asked 8/8, 2018 at 11:45

10

I'm trying to install suit, I entered this command : pip install https://github.com/darklow/django-suit/tarball/v2 and wrote this code : from suit.apps import DjangoSuitConfig class SuitConfig(Djan...

2

Solved

I'm using a custom email backend in my Django application (CeleryEmailBackend in this case): EMAIL_BACKEND = 'djcelery_email.backends.CeleryEmailBackend' My logging configuration: LOGGING = { ...
Scabious asked 25/9, 2013 at 9:54

19

Solved

I was trying to configure my Django project to deploy to Heroku. I am getting the following error and I don't really know how to fix it. Here is the full traceback and error: 22:46:15 web.1 | Trace...
Tiffa asked 28/9, 2014 at 6:0

6

Solved

I have configured Django to use a file backend for email sending on my local machine. This seemed to work fine earlier on, and all mails were recorded in the directory I had specified in my setting...
Dawkins asked 19/4, 2018 at 7:38

7

Solved

I am able to upload the files to media folder( '/peaceroot/www/media/') that I have set up in settings.py as below MEDIA_ROOT = '/peaceroot/www/media/' MEDIA_URL = '/media/' But through admin I ...
Quentinquercetin asked 29/3, 2016 at 9:14

7

Solved

While trying to load my webpage on the browser, I got the message. A server error occurred. Please contact the administrator And when I go back to check my termimal, I see the message zoneinfo._...
Deus asked 10/2, 2022 at 1:52

7

im having an issue with a tutorial im following. we have gotten to the point of testing and i continue to get an error when running python manage.py test Here is my error: (restapi) chrismalte...
Underprivileged asked 3/8, 2018 at 16:10

7

Solved

I'm configuring a Django project that were using the server filesystem for storing the apps static files (STATIC_ROOT) and user uploaded files (MEDIA_ROOT). I need now to host all that content on ...
Southsoutheast asked 30/4, 2012 at 20:36

7

Solved

My project is named homefood, and when I runserver I get this error.Anybody have any clue how to fix this error. Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/ Usin...

5

Solved

With DEBUG=True, Django exceptions dump to stderr, which is typically sent to a rotating log file by the web server. With DEBUG=False, Django instead emails the exception to the the ADMINS=. How ...
Probity asked 10/10, 2013 at 7:47

2

Solved

"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 rein...
Deroo asked 30/8, 2023 at 23:39

8

Solved

I get this error when setting up a server in Django. It is sqlite3 which means it should create the .db file but it doesn't seem to be doing so. I've stipulated SQLite as the backend and an absolut...
Dratted asked 6/10, 2011 at 4:25

3

Solved

I am following from the docs of django-disqus to use it in my project. I have installed it in my settings, with other needed settings (API key and short name). But when I try to run these commands:...
Transcendence asked 16/6, 2015 at 18:42

4

I'm trying to get my Django app work with the current user's time zone but I'm not getting any results... In my settings.py file I set: TIME_ZONE = 'UTC' And in my views.py, I set at the top of th...
Splitlevel asked 7/12, 2020 at 11:23

6

Solved

I'm trying to create a middleware to optionally pass a kwarg to every view that meets a condition. The problem is that I cannot find an example of how to set up the middleware. I have seen classes ...

7

Solved

How well does Django handle the case of different timezones for each user? Ideally I would like to run the server in the UTC timezone (eg, in settings.py set TIME_ZONE="UTC") so all datet...
Hudgins asked 30/6, 2009 at 5:45

2

I am trying to create a population script for my database, but I get a No module named error. Project Structure: staticone/ manage.py mysite/ populate_rango settings urls __init__ wsgi ra...
Vice asked 17/8, 2017 at 14:6

5

Solved

Where should DATETIME_FORMAT be placed for it to have effect on the display of date-time in the Django admin site (Django’s automatic admin interface)? Documentation for DATETIME_FORMAT, on page ht...
Eridanus asked 16/6, 2009 at 21:43

8

Solved

Is there any way I can get django to store my data in postgresql as 'dd-mm-yyyy' (if required) and have the django forms validate for 'dd-mm-yyyy'? (I have tried without much success things like: D...
Subscribe asked 2/2, 2011 at 15:34

2

Solved

Doing a recent build, I ran Django's syncdb, and I'm getting the error: Traceback (most recent call last): File "manage.py", line 11, in <module> execute_manager(settings) File &...
Mercaptopurine asked 21/4, 2011 at 21:49

7

Solved

I am writing a unit test that needs to access an image file that I put in "fixtures" directory right under my django app directory. I want to open up this image file in my test using relative path,...
Disenthral asked 23/3, 2012 at 23:57

2

Solved

I can't change my Django admin template. I have followed the instructions from the Django documentation, and I have already checked StackOverflow questions. I have already made /templates/admin/my_...
Pleasance asked 8/2, 2019 at 10:54

10

Solved

For the life of me, I have been looking for this everywhere and have not found the answer. I hope I am not posting a duplicate. It is advised everywhere that you should keep your secret keys in a ...
Cloninger asked 4/3, 2013 at 19:54

© 2022 - 2025 — McMap. All rights reserved.