Uday
i want both
Jagadish
How can a same column(field) has 2 values in the same row/record
Jagadish
Share your model for SpaceTypes
Lillnd
How can I print data on the db to a pdf
Lillnd
Someone help
Ewuru
Some should help me oh. I installed coverage and flake8 it was working well on my windows. But now dat am using kali linus is not working
Ewuru
The error message am receiving is flake8 not found. When I've already installed flake8
Ella
How can I print data on the db to a pdf
Write a script to query the data and write it to a file.
グレンキー
hi to all! can you help me? I can't fix problem: why don't show error validation my code: https://dpaste.org/wzduz
グレンキー
when I write not unique slug at form -> no error at form
Doragonsureiyā
hi to all! can you help me? I can't fix problem: why don't show error validation my code: https://dpaste.org/wzduz
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
グレンキー
sorry? ok
Mahesh
Plzz help me in making django bakery shop website if any video available plzz share with me
fayzulloh.
how can i take to random product of admin.py at views.py?
s1zen
Where should I store the API inside the application or as a separate application?
Bhaghi
can any one share crud operations in django app youtube videos link
Bhaghi
user searchbar on youtube
iam search iam not find the correct video that's why iam asking
Maxim
iam search iam not find the correct video that's why iam asking
then read the documentation not all of the scenes are in the video
Bhaghi
Ok
Divyrajsinh
can any one share crud operations in django app youtube videos link
You can watch Dennis Ivy Django tutorial https://youtube.com/playlist?list=PL-51WBLyFTg2vW-_6XBoUpE7vpmoR3ztO
Iam
Image files are displaying as file name . Can any one help me ?
Doragonsureiyā
Image files are displaying as file name . Can any one help me ?
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
Iam
To get an answer to your question, it is worth to formulate it more clearly, perhaps add more details, perhaps add explanations.
I created a model with name ,image filed and uploaded details from admin page and it's displaying as the name of the file only not the image
~ N
Hi I’ve got an error : cannot resolve keyword ‘user’ into field. Choices are
~ N
I mean i want to add a user into my fav - so i am trying to get the user by id
Gaja
Can anybody please guide me what to use for catching the API in django ?
~ N
I have an imagefield in my table
~ N
So i am trying to test my table in post man
~ N
How should i fill that part
~ N
Yes i did
~ N
But i mean the data that i will enter is in Json And one of the field is img so
Elhem
hello i need help please
علیرضا
I have a huge problem with Django urls I defined a views in views.py Include A template And change the settings.py When I run this , trow an error in my browser that says: The module home/ Views Is not defined Can anybody know about Django template and render HTML file in django?
Doragonsureiyā
hello i need help please
Not until you explain your difficulties.
Surin
Hello, I designed a site, but the slider photos are not loaded in iOS I don't have an iPhone, can someone debug please?
Surin
Use bootstrap style in frontend
Just slider photos are not loaded
Surin
Load in android and windows Load in Mac Just not loaded in ios
علیرضا
Load in android and windows Load in Mac Just not loaded in ios
Bootstrap 3 is designed to be responsive to mobile devices. Mobile-first styles are part of the core framework. To ensure proper rendering and touch zooming, add the following <meta> tag inside the <head> element: <meta name="viewport" content="width=device-width, initial-scale=1"> The width=device-width part sets the width of the page to follow the screen-width of the device (which will vary depending on the device). The initial-scale=1 part sets the initial zoom level when the page is first loaded by the browser.
علیرضا
Load in android and windows Load in Mac Just not loaded in ios
Try load picture by using bootstrap <img src="..." class="img-fluid" alt="
APY
Hi all, I have this question I need to implement autocomplete function in my search box of html page in django And i need to use source as a URL which contains Json data. What could be the code for it? Right now i wrote this and it wont work… <script> $ (Function ()) $( "#name" ) .autocomplete ({ source: “localhost:8983/solr/test/select?indent=on&g=*:*&wt=json” minLength: 2 ]): </script>
Enigma
Guys im trying to translate my model names in admin panel so this is my code . but its not changing in panel , what should i do? from django.contrib import admin from .models import Post, UserProfile, Comment, Notification, ThreadModel class PostAdmin(admin.ModelAdmin): verbose_name = "پست" verbose_name_plural = 'پست ها' class Meta: model = Post class UserProfileAdmin(admin.ModelAdmin): verbose_name = "مشخصات کاربر" verbose_name_plural = 'مشخصات کاربر ها' class Meta: model = UserProfile class CommentAdmin(admin.ModelAdmin): verbose_name = "نظر" verbose_name_plural = 'نظر ها' class Meta: model = Comment class NotificationAdmin(admin.ModelAdmin): verbose_name = "گزارش" verbose_name_plural = 'گزارش ها' class Meta: model = Notification class ThreadModelAdmin(admin.ModelAdmin): verbose_name = "مدل ترد" verbose_name_plural = 'مدل ترد ها' class Meta: model = ThreadModel admin.site.register(Post, PostAdmin) admin.site.register(UserProfile, UserProfileAdmin) admin.site.register(Comment, CommentAdmin) admin.site.register(Notification, NotificationAdmin) admin.site.register(ThreadModel, ThreadModelAdmin)
Doragonsureiyā
Erkaboy
Hi guys. I am going to use Knox Token Authentication for django channels but it is giving me this error. django.core.exceptions.SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async. I used token authentication like this: token_key = query_string[b"token"][0] user, auth_token = knoxAuth.authenticate_credentials(token_key) how can i fix?
Jo
Hi 👋🏻 I need you helps How can I test if my Django background task works or not ?
Эндейл
Hi guys, how can i render unique data for each user from models in django, for example user profile pic. Age, birthday etc
Trx
Hi guys. Am working on a Django website. I want every users to be able to generate an id card with there information in the database. Anyone who knows how i can go about that?
Elhem
mysql.connector.errors.ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'a' at line 1
Elhem
https://dpaste.org/wNwej
NN
Is there some way to remove unicodes spaces on form.EmailField? i'm going crazy rn because of this 🤣
Billionnaire
Hello Team I installed Django-crispy-forms but it says no module named... How can I fix this?
Erkaboy
create a method under database_async_to_sync and call that to access db
should I use database_sync_to_async or database_async_to_sync? I used database_sync_to_async and method returned 'coroutine' object rather than data. @database_sync_to_async def filter_data(token): data = AuthToken.objects.filter(...) return data is it right?
Erkaboy
should be token, data = ...
sorry i couldn't understand what you mean.
Uday
token, data = AuthToken.objects.filter(...)
Doragonsureiyā
not worked.😕
If you need help, don't just say "not working", explain in detail what's not working the way you expect it to
Erkaboy
token, data = AuthToken.objects.filter(...)
it is still returning 'coroutine' object rather than data.
Uday
it is still returning 'coroutine' object rather than data.
Maybe you'll have to fetch data from object
Uday
You're actually creating an object so what is being returned is expected
Divyrajsinh
Any devloper tell me How to get user IP
Muhammad Ishak
Anyone here can help me resilve my problems
Muhammad Ishak
My static files not detected when i try deploy in cpanel
Muhammad Ishak
Just html
Maxim
Any devloper tell me How to get user IP
read the documentation or google django get user ip