Django give Error 500 for all static files like CSS and Images, when DEBUG is False

This is expected behavior. Django does not serve static files or media files in production. You should configure nginx, etc. to serve files. As is specified in the Static file development view section of the documentation: This view will only work if DEBUG is True. That’s because this view is grossly inefficient and probably insecure. … Read more

django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. plz help me out plz

Seems like you didn’t define DJANGO_SETTINGS_MODULE which results in undefined settings. INSTALLED_APPS at this point is the first setting that Django wants to look up, resulting in the given error. With a default project creation the created manage.py defines said environment variable and if you run python manage.py runserver the settings are defined. Also see … Read more