👑 Dharmzeey
Please I have a question, I mean I have tried several ways but didn't get any Please, how can i achieve full path of a URL, not just absolute URL that contains the path alone(path/1) , but the URL that contains the scheme, domain and path (https://127.0.0.1/folder) .
👑 Dharmzeey
Please I have a question, I mean I have tried several ways but didn't get any Please, how can i achieve full path of a URL, not just absolute URL that contains the path alone(path/1) , but the URL that contains the scheme, domain and path (https://127.0.0.1/folder) .
Like, I have a field in the model, the get_absolute_url, which returns the path and the ID like purchase/1 What I want is that when that field is accessed maybe by an api, it should return the full path ,something like the way Image field does the full path of the thing when we upload an image
André
Артем
Hello. Maybe you know Django template repository. Very interesting "shops" template
Shivam
How to create multiple env like dev and production in Django framework?
Anonymous
Hi guyz Why i can't retrieve my chats through djnago javascript axios get request? from Android device chrome While it works perfectly on desktop
Shivam
Please elaborate, you mean env file ?
Environment for testing, development, and production
Neo
How to create multiple env like dev and production in Django framework?
I create different settings module for each and modify wsgi.py and manage.py
Shivam
Ok
Neo
import os from decouple import config from django.core.wsgi import get_wsgi_application settings_module = config('SETTINGS_MODULE') print('BOOTING IN', settings_module, ' MODE') os.environ.setdefault('DJANGO_SETTINGS_MODULE', settings_module) application = get_wsgi_application()
Neo
something like this
Mihir
Anyone know how to keep searchbar for select option in django,,, i have tried select2 and few other jquery plugins, but they are not working, suggest me if anyone know working plugin or something.
Anonymous
Guy how to debug django mobile experience??
Mirco
Guy how to debug django mobile experience??
Frontend side using responsive views of browsers
Anonymous
Guys how can I round timesince Django, show it like 1 hour instead of 1 hour, 54 minutes
Anonymous
Frontend side using responsive views of browsers
Yes But the problem is I can't retrieve through get request in Android chrome Whereas It's works fine in desktop brave In desktop brave and Android chome
Mirco
Yes But the problem is I can't retrieve through get request in Android chrome Whereas It's works fine in desktop brave In desktop brave and Android chome
you can use ngrok to expose your localhost to the public so than u can debug your mobile stuff and receive logs into your laptop
Annony-mouse 🐭
Guys django celery good tutorials enthelum undo. Django Documentation is bit complex for me. Got a task from a company to do few things celery before interview.
DEniro
What was the task that they given to you
Annony-mouse 🐭
What was the task that they given to you
I have send in in your dm. Can't send pics here
Doragonsureiyā
I have send in in your dm. Can't send pics here
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
Ritesh
I am not able to store array of objects in database in django version 4.xx
Ritesh
Can anyone help me out to this problem ASAP
Doragonsureiyā
Can anyone help me out to this problem ASAP
Not until you explain your difficulties.
Ritesh
Not until you explain your difficulties.
I am not able to store array of objects in database in django version 4.xx
Doragonsureiyā
I am not able to store array of objects in database in django version 4.xx
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
True
Hi there can anyone explain how and why celery is different from multiprocessing? ps, my googling says celery uses multiprocessing /?
Bhabani
Hi All, I completed python core and advance. Please guide me what to do next. Thanks
Anonymous
Hey guyz can i share my personal project secret key?? In git repo
Anonymous
Is secret key unique for each project??
The Inspired
Is secret key unique for each project??
Yes, but if you plan on deploying your project then never ever share your secret key. Either put it inside an environment variable or do not push it to your repo
The Inspired
I think you can use Heroku's enviornment variables to set your keys...
The Inspired
Environment variables are used to hide sensitive information
Anonymous
Please tell
Anonymous
What should i do?
Anonymous
The Inspired
Google it.
Anonymous
Ok i will remove it
Danilo
Hi, how can i create a custom button in django admin change form?
Sarvar
DRF Where is it
Charly
DRF Where is it
In its offcial website
Doragonsureiyā
DRF Where is it
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
Krushna
Hi there can anyone explain how and why celery is different from multiprocessing? ps, my googling says celery uses multiprocessing /?
Read this if it helps: https://www.distributedpython.com/2018/10/26/celery-execution-pool/
Krushna
How to download csv file asynchronously in django with celery. When i try to do it i get object of type httpresonse is not json serializable
If you are using djangorestframework then use rest frameworks status: https://www.django-rest-framework.org/api-guide/status-codes/ or return simple int like 200/500 or return a dictionary or anything which is json serializable (You may have this in your settings: CELERY_TASK_SERIALIZER = "json" or TASK_SERIALIZER = "json" )
Anonymous
Some one knows where I can read about unit testing a Django Custom Management command?
Daniyal4Real
why nested serializer can return empty list instead of data? Database has the relevant information
.
Hi, how can i create a custom button in django admin change form?
U can customize admin update view template and add anything to page change page Search about customize django admin templates
Frenchie
Guys I have learnt django and DRF I want to learn advance things. Can u suggest some resources? Please
𝙑𝙞𝙯 𝙋𝙖𝙡𝙖𝙨
Guys I have learnt django and DRF I want to learn advance things. Can u suggest some resources? Please
https://github.com/DjangoEx/python-engineer-roadmap It'll help you
Anonymous
What is DRF? Is it used to connect with others front end technologies Like react, vuejs etc?? For backend or what?
AZ
What is DRF? Is it used to connect with others front end technologies Like react, vuejs etc?? For backend or what?
django rest framework. for implementing REST API with the Django. and yes frontend like Vue and React can consume the API
Doragonsureiyā
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
AZ
What ia rest framework? Like fetching data
Simply said it is just the middle man between applications to communicate with one other
Anonymous
Ok rest api is for CURD operations right?
Charly
Ok rest api is for CURD operations right?
Please, google what is a rest api