skip to Main Content

Html – Send variable to Django crispy forms

I have 2 HTML pages choose_type.html and post_form.html. On choose_type.html: {% extends "blog/base.html" %} {% load pagination_extras %} {% block content %} <body> <div class="row"> <div class="col-sm-6 mb-3 mb-sm-0"> <div class="card"> <img src="/media/1.png" class="card-img-top m-auto" alt="..." style="width: 10rem;"> <div class="card-body">…

VIEW QUESTION

Reactjs – Many to many post request DRF

Currently I am trying to figure how the post request needs to be structured to create an object in watchlist. My models.py contains two models that are linked together via stock. class Stock(models.Model): model_number = models.CharField(max_length=100, unique=True, default="") model =…

VIEW QUESTION

Ubuntu – Nginx server doesn't load static css files

I'm trying to deploy my django site to ubuntu server nginx by following this tutorial (https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu). Deployment works, but css not working. I figured it's something with collectstatic but not sure. Funny enough css worked properly for 0.0.0.0:8000 port. This…

VIEW QUESTION
Back To Top
Search