Alex Kotov
hello guys i cant add my css files in my webpage
I use static
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
Django 3
Error in browser:
GET http://127.0.0.1:8000/static/blog/blog.css net::ERR_ABORTED 404 (Not Found)
My init in index.html:
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hellos</title>
<link rel="stylesheet" href="{% static '/blog/blog.css' %}">
Help please
Alex Kotov
where we should save css files?
setiawan
create a static folder / blog / blog.css
setiawan
/static/blog/blog.css
Alex Kotov
in my app folder?
Владислав
in project folder
Nikhil
Your app/static/your app name/css/your file
Ethernity Community
HOW TO MAKE ANALYTIC DASHBOARD IN DJANGO ? any helping docs?
Nikhil
ps
How to convert all html into pdf and download can anyone help?
Sirius
here is one of my models but it reacts so for the others models , also
class Public(models.Model):
title = models.CharField(max_length=100, verbose_name='Заголовка')
content = RichTextUploadingField()
date = models.DateField(auto_now_add=True, verbose_name='Время публикации')
video = EmbedVideoField(blank=True, null=True, verbose_name='Видео' )
def cont(self):
return self.content[:300]
Nikhil
Sirius
?
Nikhil
Yes. May be becouse of that &
I'm not sure but you may check https://stackoverflow.com/questions/28652295/incorrect-string-value-in-pythondjangomysql/ Rick james answer
Aroop
How to create multiple user type login in django
Nikhil
But I will sure look on it
Gabriel
Hi people , my english id very bat , sorry for my english bot i have a questions , i want to create an simple project , where for the forms of html, pass a number sumary in the view.py and return new html , can you help my?
inchidi
Anonymous
Hello i'm using a bootstrap theme in my django project. it has register and login page, and i'll want to coding backend of this. I dont know how to work with theme( i want users register and then they login). Whould you please help me? How should i do?!
Manik
Program for django multidatabase routing
setiawan
Hello, i have question, how to create an automatic user in django when adding objects to models?
Thx🙏
MuhammadAsriN
Hi is it possible to use django for microservices?
Alex
Hi, help me solve the problem , I can't upload photos through the form on the site, through admin everything is fine, but through the site does not load
Alex
In django form
MuhammadAsriN
I hear instagram use django, postgresl, and apache cassandra. But i dont understand to use django with different database type.
José
Greetings, has anyone developed an API Rest and consumed from Angular? I have a problem with the client, on the network I get a worse response on the console I get an error
setiawan
Shreehari
https://del.dog/ewoghelahu.txt
hosting a sample django app on heroku, but getting this error.
Shreehari
have done makemigrations and migrate. But still getting the same error
inchidi
Support Django with Pycharm 2020
https://www.jetbrains.com/pycharm/promo/support-django/
Yeabsira
Has anyone tried to use djongo??
Doragonsureiyā
Has anyone tried to use djongo??
Please don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello I need help on $z"
Just ask about your problem directly! With 56k+ people the probability that someone will help is pretty high.
Also please read: http://catb.org/~esr/faqs/smart-questions.html
Jaydeep
How to do facial recognition in django?
- storing facial data in database
- comparing live face scanning with database
Anonymous
Anonymous
JDango
Anonymous
😐
inchidi
Yeabsira
Has anyone tried to use djongo??
I was using it to connect to mongodb but recently on a new project i faced an error that said it is not a known database backend ...if anyone can help?
Dextroleav
Manish
I am configured Postgresql in Django. I have run "py manage.py makemigrations" and "py manage.py migarte"
Both run successfully but when I tried to check DB I couldn't found my tablename and its data
Manish
I have tried on google but I couldn't find my solution
Gil
Thomas
Hi. Any DjangoCMS developer?
Umrzoq
Hi everyone
Umrzoq
I have a question about, which one is best for web development Python(Django) or Java(Spring)?
Umrzoq
Anonymous
cookiecutter-django
help me!!!
Samuel
Anonymous
Hello guys, you can read my post about multiple smtp users in django to send mail? In my post on reddit have more details: https://www.reddit.com/r/django/comments/fi5isy/how_to_improve_the_code_to_send_emails_with/
Shaun
Hi there - I am using Cookiecutter django with gulp. I would like to get the linearicons set working (https://linearicons.com/) and I already passed it to icomoon.
I would like to know if i need to install a django-svg thing or what the best way to quickly get the set installed is. my preference is to just have the PNG's in the static directory and then a css file somewhere that points to each one. i thought the icomoon.io app would give me that but it seems that it did not.
really just don't want to do extra work here :)
Enang
Hi everyone, I want to ask if anyone has ever deployed / hosted django projects on cpanel? I was a little troubled there while doing it. sorry if my English is bad. thanks. :)
Sheshadri
Sheshadri
Enang
Sheshadri
Digitalocean also supports django hosting .. If you are looking for low cost hosting then you need to get a VPS and configure everything yourself and maintain it . Take a look at what you need to be doing https://vexxhost.com/resources/tutorials/how-to-deploy-django-on-nginx-gunicorn-with-postgres/
Umrzoq
Sai Krishna
Can anyone help me in developing a django project which is about recommending movies books music comics etc
Gio
hello guys I have been searching a lot but didn't found exactly what i am searching for so situation is like this at work i have been asked to develop a search by many fields
Gio
something like [input field ID ] [input field name ] [input field personalNum ] [input field email ] and search button
Gio
i have not done this way in earlier projects i was always using one input field and then lookupp in requested fields
Gio
now they sey to look up number from id input only in id field name input only in name field and so on
Gio
have you ever done something similar?
Gil
Aroop
Gil
Plz answer
With what objective? Groups is not enought?
Sheshadri
Gio
Gil
may be filtering objects?
Gio
but fields must bi partialy dinamical