Top "Django-settings" questions

A Django settings file is a Python module with module-level variables that contains all the configuration of your Django installation such as, Databases, Installed apps and Media and Static location to name a few.

Get absolute path of django app

I am writing a unit test that needs to access an image file that I put in "fixtures" directory right …

django django-settings
how can I check database connection to mysql in django

how can I do it? I thought, I can read something from database, but it looks too much, is there …

python django django-settings
Django setting : psycopg2.OperationalError: FATAL: Peer authentication failed for user "indivo"

I am getting problem in Django project setting with POSTGRESQL. Here is my setting.py database setting DATABASES = { 'default':{ 'ENGINE':…

python django postgresql psycopg2 django-settings
Where to store secret keys DJANGO

For the life of me, I have been looking for this everywhere and have not found the answer. I hope …

django django-settings
how to point correctly to static image in django

I have a template that renders an image: {% load staticfiles %} <img src="{% static "img/logo.png" %}" alt="My image"/&…

django django-templates django-staticfiles django-settings
Django ALLOWED_HOSTS IPs range

Is there a way to set a range of ALLOWED_HOSTS IPs in django? Something like this: ALLOWED_HOSTS = ['172.17.*.*…

django django-settings
Django: "No module named context_processors" error after reboot

I have a Django site that works on my PC, and was working briefly on my server after loading it …

python django django-settings django-middleware
How to set-up a Django project with django-storages and Amazon S3, but with different folders for static files and media files?

I'm configuring a Django project that were using the server filesystem for storing the apps static files (STATIC_ROOT) and …

django amazon-s3 django-settings static-files django-storage
Configuring Django

I just installed Django 1.6 on OS X 10.8 with python 2.7 and am having trouble going through the tutorial. After setting creating …

python django macos django-settings
Page not found 404 Django media files

I am able to upload the files to media folder( '/peaceroot/www/media/') that I have set up …

python django http-status-code-404 django-settings django-media