Uday
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
グレンキー
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
グレンキー
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?
𝙰𝚜𝚑𝚠𝚒𝚗
Kirill
Bhaghi
can any one share crud operations in django app youtube videos link
Maxim
Bhaghi
Ok
Iam
Image files are displaying as file name . Can any one help me ?
~ N
Hi I’ve got an error : cannot resolve keyword ‘user’ into field. Choices are
Mirco
~ 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
Gaja
~ 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?
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
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.
Surin
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)
Kirill
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)
Verbose_name should be in Meta:
https://docs.djangoproject.com/en/4.0/ref/models/options/#verbose-name
Doragonsureiyā
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)
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.
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?
Enigma
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?
Tajammul
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
Uday
Sky
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?
Uday
Uday
Uday
token, data = AuthToken.objects.filter(...)
Erkaboy
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
Uday
Uday
You're actually creating an object so what is being returned is expected
Erkaboy
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