Mirco
Muflone
loadstatic?
#
#
loadstatic?
i did that but it doesn't work. it works for css but it couldn't for img
{°_°}
{% load staticfiles %}
Mirco
#
Mirco
It doesn't mean it won't work, but it's deprecated
{°_°}
#
let me share u my setting code
#
STATICFILES_DIRS = [
('img','working_files/img'),
('css', 'working_files/css')
]
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'storage', 'static_file/static')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'storage', 'filedir')
Mirco
😁ok
Maybe in Django 3.x will be totally removed so use load static 😊
#
#
ابو
Best place to learn Django fast? Please website and books
Mirco
Anonymous
https://youtu.be/JYPnO7tLZck
Rohith
i am getting folloeing error
Rohith
i am new to django please help me out
Viktor
Holly shit man,use pastbin or github to share your project
Yegor
Hi, ive got a problem with FileResponse, on my dev server I cant download files, when Im tryin to do It, some time later I get "failed to load pdf" or with as_attachment=True, when download finishes, I get the same. Heres the code https://dpaste.de/TxhZ and thats my uwsgi error log https://dpaste.de/rAgd I will be grateful for any help 😞
Yegor
PS: nginx client_max_body_size is 75mb, so I dont think this trouble causes nginx
Yegor
PPS: I have an idea to fuck this shit and recofigure it to gunicorn
#
how can i include svg icon to my django project?
Anonymous
Anonymous
hello everybody, any problemes if I learn Django V1 then V2 ??
Mirco
Anonymous
Hello members i've been trying this but i decided to ask...
Is it possible to use a condition in html templates so as to display 'say a url' if a model in the database meets the condition without involving the view.py ?
Mirco
Anonymous
Mirco
Doragonsureiyā
Mirco
Mirco
Anonymous
Mirco
Anonymous
Yup
so I will follow the Arabic course and read the documents in order to distinguish the two versions?
Mirco
Anonymous
Ya but read the docs bcos it is way more powerful than the tutorial on YouTube
Mirco
Anonymous
Anonymous
👍
How store list in django models ??
Mirco
List of what ?
ARUN
do anyone knows POS system using django
Mihail
Hi! Help me, please, how to stop evaluating of clean_field methods after raise ValidationError in one of them?
Anders (izzno / gooood) 🇳🇴
Do any of you serve your CSS (one) as templates?
Using variables in CSS files would be more pleasant then ajax calls ...
👍
cj
https://docs.djangoproject.com/en/2.2/ref/contrib/postgres/fields/#jsonfield
cj
There are many things that are built-in Django that are meant to be used exclusively with PostgreSQL only
#PostgreSQL #Exclusive (hashtag for future reference/search)
https://docs.djangoproject.com/en/dev/ref/contrib/postgres/
Rohan
Rohan
https://django-mysql.readthedocs.io/en/latest/model_fields/json_field.html
Rohan
I know it cuz I've seen it before and used it as well :p
👍
thanks
Mirco
thanks
That's why Postgres is the best engine for Django as suggested by official docs
#
hello everyone, how can i include static files like imgs in css in django? if i want to set background-image, what do i have to do? when i try to locate absolute postion, it couldn't work?
godmode
godmode
godmode
There un the base.html i put un the CSS, i did It one with the css property background and the url()
#
godmode
Apps/blog