Category "django"

AuthAlreadyAssociated Exception in Django Social Auth

After I create a user using say Facebook(let's say fbuser) or Google(googleuser). If I create another user through the normal django admin(normaluser), and try

HttpResponseRedirect Reverse not working Django

I am trying to redirect my page after submitting a like button to the same page but I keep getting a NoReverseMatch at /score/like/2 Here is the urls urlpa

Django - run a function every x seconds

I'm working on a Django app. I have an API endpoint, which if requested, must carry out a function that must be repeated a few times (until a certain condition

Django static Files not loaded on Docker?

I am using Django 3.0.6 and want to dockerize my project. everything is worked fine except static files. Static files are loaded completely when I run my projec

What does blue-colored text mean in the terminal output from the Django development server?

Sometimes the lines after each normal terminal-green colored line like '[24/Sep/2012 00:42:30] "GET / HTTP/1.1" 200 1904' are my normal terminal-green color, an

How to assign custom color to progress bar bootsrap 4

Guys i have progressbar: <div class="progress"><div class="progress-bar" style="width:{{a.49}}%">{{a.49}} %</div> </div> How can i as

Import error: No module named 'secrets' - python manage.py not working after pull to Digital Ocean

I'm following along a course - Django development to deployment. After pulling it to Digital Ocean everything else ran smoothly. Until I tried running python m

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