t
No one can help you until you explain your difficulties.
ok this is my production site https://favstar.me/popular/ my media working fine but static files like css not loading https://favstar.me/static/static/core/css/base.css this is all my dockerfiles and configs 👇 https://hastebin.com/share/iwihehuxis.bash if anyone save my life i'll be glad its been a month that im stuck in this 🙏🙏
Vladimir
Should I use the latest Django version that is supported? It's just my distro comes with Python 3.9 and Django 3.2 but Python 3.9 supports Django up to 4.2.
Abhi
Hey can any one suggest some idea like how I create a automatically connect with WiFi on OTP verification for 30 min?
Abhi
In django backend
Doragonsureiyā
Hey can any one suggest some idea like how I create a automatically connect with WiFi on OTP verification for 30 min?
Impossible to help without details. Read this please: http://www.catb.org/~esr/faqs/smart-questions.html
Abhi
I have a frontend part and have OTP verification but not understand how I connect to WiFi automatically
Yazdan
Hello everybody I hope you all are doing well I have finished the basics and some advanced topics in python Now I want to arrive in the web development world I want to start with django or flask Can some one guide me in this field Do I need any other basics for example html or css ?? Thank you very much
Mehdi
just learn tags , it took 1-2 hour
ask
Hello everyone, here in my template this attribute data-setbg is not working maybe not resolving by django how can we set this as background images <div class="hs-item set-bg" data-setbg="{% static 'img/hero/hero-1.jpg' %}"></div>
Mehdi
Thanks sir What about the choice between flask and django?
Personally i prefer django but it depends on project , Both are Beast
t
Can we see your docker-compose file.. But you can start correction by installing Whitenoise package and  to apps list "Whitenoise. runserver_nostatic"
Thank you i will try it also my important configs are in here if you like to view https://hastebin.com/share/iwihehuxis.bash
Sky
Your docker files are correct, in django settings, you must add thé lines, STATIC_URL = "/web" STATIC_ROOT= os.path.join(BASE_DIR, "web" )
t
Your docker files are correct, in django settings, you must add thé lines, STATIC_URL = "/web" STATIC_ROOT= os.path.join(BASE_DIR, "web" )
i have my settings like this STATIC_URL = '/static/static/' MEDIA_URL = '/static/media/' MEDIA_ROOT = '/vol/web/media' STATIC_ROOT = '/vol/web/static' should i change them?
Sky
Yes.. By default you can use /static/ for STATIC_URL and os.path.join(BASE_DIR, "static")...
Sky
After you run on local python manage.py collectstatic--no-input
Sky
And change web with static your docker compose file
Sky
After you run on local python manage.py collectstatic--no-input
Make the same on command option of your django app container
Neeraj
I have a question,   i runed a django server on EC2 with ngnix and gunicorn but now i want to see the logs as like manage.py runserver If i go to ngnix access log, there is only record of ip and request url and status same with gunicorn access logs But i want log as like if we run command python manage.py runserver Is it possible how.
@
Hi All, Please someone give the roadmap to learn django
Charly
Hi All, Please someone give the roadmap to learn django
No need for roadmap. Start with the official tutorial. Then try to make more projects
aiub
read through official dox
aiub
it is the best doc in the world!!!
@
Okay
@
Thanks
Pius
Good day, is there some detailed book on DRF, serializers and JWT
Charly
Good day, is there some detailed book on DRF, serializers and JWT
The most detailed is the official documentation
-shdmhr
Knowing rabbit mq is necessary for django developer?
Abhi
OTP is for human, not for automation still unclear
Can we create a webpage where users only fill the phone number and directly connect with wifi
Mohsen
To avoid an indirect circular import I should import my module inside one of methods (function in a class) Is this a good approach? Or reduces the code efficiency
ishaan
anyone please help me to make api for my recent_trends model,i need help with foreign keys
ishaan
"market_highlight": { "id": 1, "content": "test MarketHighlight" }, "recent_trends": { "recent_trends": "No Recent Trends", "sustainable_practices": "No Data", "ecommerce_home_delivery": "No Data", "digitalization_data_analytics": "No Data", "visibility_traceability": "No Data", "image": null, "market_highlight_id": null } i have data in my recent_trends,i m usiing fkey to connect it with its prev table
乇PIPHANY❦▧▧❄️
how can I make an internal url for a urlfield whatever path I put it says invalid url
乇PIPHANY❦▧▧❄️
Can you show us what exactly are you doing? (Code)
https://hastebin.com/share/uqenelabem.scss
乇PIPHANY❦▧▧❄️
so thats the models and field
乇PIPHANY❦▧▧❄️
can i share an image of the admin panel?!
Charly
What exact value are you putting there?
乇PIPHANY❦▧▧❄️
No, and is not needed
file:///."C:/Users/HP/Documents/index/epiphany/templates/destination1.html"
乇PIPHANY❦▧▧❄️
He?
basically an internal html page
乇PIPHANY❦▧▧❄️
like i have 5 destinations with different, names, price, etc all given by the super user
乇PIPHANY❦▧▧❄️
and the name of each destination is a clickable link
乇PIPHANY❦▧▧❄️
that should take you the page of that exact destination
乇PIPHANY❦▧▧❄️
i can define it from the backend
Charly
basically an internal html page
I think the . is wrong at the start and the quotes
Charly
and the name of each destination is a clickable link
So if you use another computer it will fail because that's a local path
乇PIPHANY❦▧▧❄️
i suppose thats true
乇PIPHANY❦▧▧❄️
so what can i do
Charly
so what can i do
Don't use a local path, upload the files to the server
ishaan
What have you tried?
it's working for single model, but I want to connect recent Trends with product via fkey
ishaan
plzz it's urgent
Doragonsureiyā
plzz it's urgent
Is it urgent? You shouldn't be here, wasting time and poking strangers and waiting for them to do your job for you. Search on Google/DuckDuckGo, do the research, and solve your problem yourself, nobody here will drop what they're doing to do your job, just because "it's urgent!". Have a nice day! 😉
乇PIPHANY❦▧▧❄️
Don't use a local path, upload the files to the server
by using a filepathfield or do you mean something else?
乇PIPHANY❦▧▧❄️
ishaan
thats a bot
yeah I know
Maxim
thats a bot
does not matter
Charly
i m trying bot bro
Trying to show the errors and code here ?
Richard
Please can someone help with an English video on the basics of django
Doragonsureiyā
Please can someone help with an English video on the basics of django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Richard
Please I need a video
Charly
Please I need a video
These written material will give way more info that a video, don't be lazy and read
Charly
If you want video just go to YouTube and use the search
Richard
Ok
Azat
Which one is powerful laravel or django
Charly
Which one is powerful laravel or django
No one is more powerful you can do the same with both