I have a model class myModel(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete = models.CASCADE,null=True) start_price = model
I've been trying to solve this one all week, help very much appreciated. I have various schemas in a postgres db and I would like to be able to map to them fro
In django my posts are deleted but the files are not. I have a image field in the model which i want to deelete whenever the author deletes it. I'm using generi
I have a Django app hosted on Heroku, and my stylesheet isn't loading. Now I've taken the time to read the other questions on this issue, but I believe each sit
I have a django project where I have kept all the static files in a project level static directory. I have included STATIC_URL = "/static/" STATIC_ROOT = os.pat
I just wanted to know how can we validate the azure ad access token in a backend API in my case i.e. Django rest framework. Consider that I have a single page a
With Django 1.8 I used Django-celery to run asynchronous tasks and I was able to debug them in my IDE (either PyCharm or Eclipse+PyDev) just launching "python c
I have a Class based view defined as: class Myview(LoginRequiredMixin, View): def post(): #....... to test this view i tried this class MyViewTes
I'd like to output the input field on the template, but it is outputted as django.forms.fields.CharField object at XXXX How can I fix this issue? I hav
I am learning Django and i tried to implement a blog app . i am getting an error while using the static files inside project.i know, There are lot of questions
I wasn't able to find a way to change the appearance of the created form by using CSS. Here is the simple code I am using: create.html {% block content %} &l
nas_apps nas_apps -__init__.py -environments.py -settings.py -urls.py -wsgi.py -pytest.ini usecase1 -co
Please help me out. I don't get any errors in my css file or in finding it, but still the style i would like is not shown. my css file body { background-color
I'm trying to run the Django admin's dbshell command, but I'm having trouble specifying the settings module. If I try to run it without defining any environmen
I ran into a problem once I install and add "channels" to the settings and after that to the asgi file. Server crashes, I get 502 and nginx won't start. How can
I'm going to deploy my django application on DigitalOcean. Everything gone well, except following error, and my question is: where can I find source of this err
Have this error while trying to autogenerate API docs for django rest framework in django 2.2.4, from what I'm seeing in the logs it has something to do wi
Have this error while trying to autogenerate API docs for django rest framework in django 2.2.4, from what I'm seeing in the logs it has something to do wi
I'm working with this website http://fotokluczniok.pl/ now. If You press F12 You will see the staticfiles do not work correctly. Here is my seetings.py code:
I am moving a Django site to GCP and using Google Cloud Run for the first time. The experience is great. I was also very pleased with the domain mapping feature