Top "Django" questions

Django is an open-source server-side web application framework written in Python.

OSError: [Errno 2] No such file or directory while using python subprocess in Django

I am trying to run a program to make some system calls inside Python code using subprocess.call() which throws …

python django subprocess
How do I perform HTML decoding/encoding using Python/Django?

I have a string that is HTML encoded: '''<img class="size-medium wp-image-113"\ style=&…

python django html-encode
Change a Django form field to a hidden field

I have a Django form with a RegexField, which is very similar to a normal text input field. In my …

python html django django-forms
Django DB Settings 'Improperly Configured' Error

Django (1.5) is workin' fine for me, but when I fire up the Python interpreter (Python 3) to check some things, I …

python django
Set up a scheduled job?

I've been working on a web app using Django, and I'm curious if there is a way to schedule a …

python django web-applications scheduled-tasks
Pylint "unresolved import" error in Visual Studio Code

I am using the following setup macOS v10.14 (Mojave) Python 3.7.1 Visual Studio Code 1.30 Pylint 2.2.2 Django 2.1.4 I want to use linting …

python django visual-studio-code pylint
Can't compare naive and aware datetime.now() <= challenge.datetime_end

I am trying to compare the current date and time with dates and times specified in models using comparison operators: …

python django datetime comparison
How to send email via Django?

In my settings.py, I have the following: EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' # Host for sending e-mail. …

python django email smtp
Iterate over model instance field names and values in template

I'm trying to create a basic template to display the selected instance's field values, along with their names. Think of …

python django django-templates
How do I include image files in Django templates?

I'm new to Django and I'm trying to learn it through a simple project I'm developing called 'dubliners' and an …

python django django-templates