Deleted
I use Django for this app
Maxim
I use Django for this app
i'm talking about the question, not your project
Deleted
i'm talking about the question, not your project
I tried Django ORM first then use raw sql in my Django project
Maxim
I tried Django ORM first then use raw sql in my Django project
so your question is about SQL and has nothing to do with Django
Arya
I have one permision for city admin and i want in viewset check which visitors for that city and then give permisson please help me
MostKritikalCryptoTechie
Hello Guys am Clean_G from Africa, Kenya. I just completed python and want to learn Django. Any resources would be highly appreciated.
Артем
hello everyone Do you know ant tool in order to add yandex metrika in my dashboard in admin panel?
Doragonsureiyā
Hello Guys am Clean_G from Africa, Kenya. I just completed python and want to learn Django. Any resources would be highly appreciated.
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Hunde
How can i add search_fields for one to one relation ship.
Monu
Hi guys can you tell me how to make search in django like flipkart (with multiple search options like price, brand, rating, and many more) how can I made this
F
I wan to add image from model to pdf using Reportlab.... please help me
F
drawImage() is not working.. can u help me ??
Lugano
is there a differrence in output between "django-admin startapp myapp" and "python manage.py startapp myapp"
ㅤㅤㅤㅤ ㅤㅤㅤ◡̈⃝ㅤㅤ ㅤㅤㅤㅤㅤㅤ ㅤㅤㅤ
Hi guys can you tell me how to make search in django like flipkart (with multiple search options like price, brand, rating, and many more) how can I made this
You should use Q object https://docs.djangoproject.com/en/3.2/topics/db/queries/#complex-lookups-with-q-objects
Игорь
Hi! My images open in this url /staticfiles/big/279.png but how can i open it on/ big/279.png ? Without /staticfiles/ . Thanks
ㅤㅤㅤㅤ ㅤㅤㅤ◡̈⃝ㅤㅤ ㅤㅤㅤㅤㅤㅤ ㅤㅤㅤ
Игорь
thanks
Игорь
MEDIA_URL = '/img/' MEDIA_ROOT = os.path.join(BASE_DIR, 'img/') doesnt work maybe because i use: url(r'^', FrontendAppView.as_view()), and need i create a specific url path?
James
MEDIA_URL = '/img/' MEDIA_ROOT = os.path.join(BASE_DIR, 'img/') doesnt work maybe because i use: url(r'^', FrontendAppView.as_view()), and need i create a specific url path?
Add this in urls.py from django.conf import settings from django.contrib.staticfiles.urls import static Urlpatterns = [ List of your path ]+ static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)
James
And create img folder in a root path of your project
Daniel
Somebody here that know how to use jasperserver with django
Daniel
url='http://127.0.0.1:8080/jasperserver/rest_v2/reports/listacandidatos' me esta dando respone 404
chaygo
Hello everybody. My media files cant load when debug is true . What should I do please help me if you know solution
Anonymous
I think when debug is true media files will be stored in local
Muhammadamin
Guys how do I return id=0 instead of null in Postgres if I create parent category
Muhammadamin
parent = models.ForeignKey('self', on_delete=models.CASCADE, related_name='children', blank=True, null=True) this time return null but I need 0 instead of null
Muhammadamin
Default=0
I think it's wrong
Anonymous
Add media url and media root in settings
Akshay
I have a small doubt about a connection I have to connect a mongodb string to the project When am trying to connect and adding values in django admin page the datas are going to my localhost database
Akshay
Can anyone help me privately i have to share photos to clarify this in detail
~:$
I have added
If debug=False then it means you have deployed your app. So ask your nginx to server the media files.
~:$
Yes I deployed my app. How to do it?
Modify your nginx config file for your specific django app. In availablesites
chaygo
Settings or url?
~:$
Nginx config file for your django site. Simple google that... How to serve media files from nginx for django app
.
Can anyone please help me how to connect cloud SQL proxy with django project to run it locally ? Any resource or guide will be helpful?
ㅤ◡̈⃝ВяСяОН
I want the login and registration page to be done by a form, how do I write this view?
ㅤ◡̈⃝ВяСяОН
I want the login and registration page to be done by a form, how do I write this view?
If he have account login and If he does not have an account, an account should be created immediately
Tonana
Hi, I have a problem with a NFT Metadata ( image ) in metamask with a Django backend server URL. I use function view that return correctly formatted JsonRepsonse. ( With ipfs Uri in token it shows correctly after in metamask but with a same django URL it doesn't work btw) Did anyone have the same issue?
عبد الله
Hi, how to parse nested url-encoded data which comes from webhook, standard drf-parser[FormParser, MultiPartParser] can't parse correctly
Mihir
Try JsonParser
عبد الله
Try JsonParser
no, it's not working too { 'contacts[add][0][id]': ['4803859'], 'contacts[add][0][name]': ['first second'], 'contacts[add][0][responsible_user_id]': ['7518523'], 'contacts[add][0][date_create]': ['1633940121'], 'contacts[add][0][last_modified]': ['1633940121'], 'contacts[add][0][created_user_id]': ['7518523'], 'contacts[add][0][modified_user_id]': ['7518523'], 'contacts[add][0][created_at]': ['1633940121'], 'contacts[add][0][updated_at]': ['1633940121'], 'contacts[add][0][type]': ['contact'], }
tushar
How to get columns name of table using cursor in django
игорь/igor
tushar
Actually I didn't get on Google also have any reference or code
игорь/igor
How to get columns name of table using cursor in django
from collections import namedtuple def namedtuplefetchall(cursor): "Return all rows from a cursor as a namedtuple" desc = cursor.description nt_result = namedtuple('Result', [col[0] for col in desc]) return [nt_result(*row) for row in cursor.fetchall()] Then >>> cursor.execute("SELECT id, parent_id FROM test LIMIT 2"); >>> results = namedtuplefetchall(cursor) >>> results As an example
꧁❦ I'm Farooq ❦꧂
Is anyone know how to cancel celery task by task_id app.control.revoke(task_id) celery.task.control.revoke(task_id) Tried but now working
игорь/igor
But I don't need for loop any other method without using loop
What do you mean. That's just list comprehension
tushar
Only get one colum
игорь/igor
In this code you use a for loop but I want to get colum name without using loop
There's nothing wrong with it, it is just list comprehension
игорь/igor
Only get one colum
Then just use list index
tushar
Then just use list index
Have any references for that how use index to get cursor method
tushar
Bcz if I use index only value is print not a colum name
игорь/igor
Have any references for that how use index to get cursor method
Dude, cursor.description is a list, just use index to get specific column
tushar
Okay
tushar
now it don't show value 😔 Okay thanks
Meer
Best platform to host django application for free with static and media files.
Deep
Hey folks, Can we filter model object by its property in django-filter?
Владислав
Good day, gentlemen. I need help in creating tree-like links to categories on Django MPTT, for 2 days I have been tormented by reading what and how, comparing some of the answers I found from google. i am new to python/django https://dpaste.org/CXit The problem is that instead of 14 sql, it became 98 sql. Are there better options? There is another option, store the full path in charfield.
Anonymous
Hi What is Jsondecode error?
Fabrício
Good afternoon! Do you know why shows "your passwords didn't match"?