Category "django"

Django retrieve checkbox values sent by Ajax POST request

I am trying to send form data to Django server via Javascript Ajax request specifically checkbox values, but at the server I read None values. here's the server

What's the right procfile / requirements for heroku with django channels?

tl;dr - django channels app runs local with manage.py runserver but not on heroku. I'm new to django channels - trying to deploy a very basic django app using

Why mySQLclient is not installed

I want to install the MySQLclient package on my Cpanel host through the terminal. Because I want to connect my Django project to the database. When I want to in

Error H12 "Request timeout" on heroku for django application

I am getting the H12 "Request timeout" error when I am working with large data in a CSV file and when the data in the CSV file is less the app is working fine.

Cloud Build env variables not passed to Django app on GAE

I have a Django app running on Google AppEngine Standard environment. I've set up a cloud build trigger from my master branch in Github to run the following ste

django temporarily disable signals

I have a signal callback in django: @receiver(post_save, sender=MediumCategory) def update_category_descendants(sender, **kwargs): def children_for(cat

"'str' object has no attribute 'tag'" error in Django Tutorial

I am following the Django Tutorial to learn how to work with it, but I have encountered an error very early in it and I'm not sure how to fix it. It happened wh

Protecting or Licensing a Django Application

I am making a Django application and I am running into an issue. I know Python is interpreted and it would be impossible to completely fight against piracy, how

How to link a comment to a single post in django?

I have a problem which I want to help me solve. I have a "Post" with comments included but, when I comment a "Post" the comment I made in "Post 1" appears in "P

Django toolbar not showing up

We installed the django toolbar yesterday on our remote server and have been trying for it to show on the page itself. I have gone through all the questions her

How do I automatically upload an automatically created file to a FileField in django? (or equivalent functionality)

I have a method that creates a csv file from a serialized model and writes the file to a data folder. This works - the csv is created, but to do anything with i

AUTH_USER_MODEL refers to model that has not been installed

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 pr

How to display value of inline formset in django admin change_form.html

I have 3 inline models in a Parent modelAdmin. I wish to display the value of a field 'contact' present in 1 of the inline models in the Parent ModelAdmin. In c

Catch exception on save in Django admin?

I have a pre_save signal handler on a bunch of models, which write to a different database. If something goes wrong, I'd like to abort the whole save, or faili

django-debug-toolbar not showing up

I looked at other questions and can't figure it out... I did the following to install django-debug-toolbar: pip install django-debug-toolbar added to middlew

How to get a model's last access date in Django?

I'm building a Django application, and in it I would like to track whenever a particular model was last accessed. I'm opting for this in order to build a user

Django send_mail not working - No email delivered

When the view that sends the email is used nothing happens, i then entered send_mail(...) into the python shell and it returned 1 but i didn't receive any email

mssql isn't an available database backend or couldn't be imported

I'm following this guide. Mssql-django and I have Django version 3.2.12 I already installed mssql-django 1.1.1 I also have pyodbc 4.0.32 modified my settings.py

Django Testing - SimpleCookie and Session

Problem: My testing client appears to log out once i attempt to set a cookie. I have workspace (project) object that i want my client to access. The access itse

path of STATICFILES_DIRS in django

I am from PHP background and want to give path to STATICFILES_DIRS in settings.py and in windows I understand that I will need to give full path like: D:/path