Questions tagged [django-settings]

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.

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.

Here are a couple of example settings, extracted from the documentation:

DEBUG = False
DEFAULT_FROM_EMAIL = 'webmaster@example.com'
TEMPLATE_DIRS = ('/home/templates/mike', '/home/templates/john')
923 questions
-1
votes
1 answer

running this django project but its showing me this error in manage.py

this is the error its showing me while running the django project of searchable dropdown list. I did exactly as mentioned in the youtube video but these are all the errors its showing me File "manage.py", line 23, in main() File…
-1
votes
1 answer

How to set path of multiple custom apps in django?

Can anyone please help me with this. MyProject is the name of my project in django with two different apps HappyHomes and HappyHomesAdmin. I want to switch from HappyHomes to HappyHomesAdmin. How to set path in urls file? How many files in total I…
-1
votes
2 answers

Local Settings in Django 2

I'm using Django 2 with Python 3.7 I want to import some settings from a file local_settings.py so I can include that file in a .gitignore so I don't share my secret keys on github. I have the folder tree set up like this: settings.py has this at…
Davtho1983
  • 3,827
  • 8
  • 54
  • 105
-1
votes
2 answers

Is it possible to read the SECRET KEY from Django settings.py by other apps?

I want to use the Django SECRETE_KEY for creating my JWT (Json web token). Is it possible to read the django secrete key from all apps under a django project? Please advise me on if it is a good practice to use the django secrete key for internal…
Arun Jose
  • 11
  • 4
-1
votes
1 answer

django several settings for local and production

I have a project that may be started on local machine with ./manage.py runserver and on the remote server with uwsgi. I have two settings files: settings (for local machine) and prod_settings. So when I start project with uwsgi I simply use this…
alexvassel
  • 10,600
  • 2
  • 29
  • 31
-2
votes
1 answer

template doesnt exist "django 2.0"

please can anyone help me i cant figure out what is the error while rendering template in djano 2.0 i created a app and and in the views.py section i added all thoe code lines of manange.py imported urls(directly in the views ) tried to run the…
user7671217
-2
votes
1 answer

Static URL and CSS in Django

I am trying to setup a static url in Django and have my templates use it to link to the css. Here is my code. Why is it not working? Also, what is the best practice for setting this up? Thanks. # settings import os PROJECT_PATH =…
1 2 3
61
62