プラティク
Bobosher
Sherlock
Bobosher
brother can u plz tell what kind of more fuctionality ?🙏
For example, if you use django signals, you usually write those code to new file, like serializers or so on. But unlike serializers, your signals file is not imported anywhere. This means that, even you write code, save file and run your server, django doesn't see your file. So your code won't run.
In cases like that, you have to override ready() method inside your app config class.
This is just one example.
Sherlock
Firdavs
hi, if I do git push heroku master the error is [remote rejected], what do I
Dongari Ganesh Varma
The output is not coming any one give solution
Dongari Ganesh Varma
U r refer any atom packages
Dongari Ganesh Varma
Dongari Ganesh Varma
Hello 996 members are online
Dongari Ganesh Varma
Any one respond
Doragonsureiyā
Any one respond
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work.
Have a nice day 😊
Fredy
Hi group a question, how can I fix this problem.
OverflowError at /api/v1/comments/
Python int too large to convert to SQLite INTEGER
I'm working with DRF
Help me!
Ramji
hi guys, it any one interested freelancing on python and django pls reach out to me 1 to 1
whatsinaname
Sherlock
Vinay
I have a model class which has following fields
Field1 is foreign key
Field2 is datetime field
I want to query all data which is last record for each Field1 value and Field2 datetime range is between specific dates.
Can anyone help me on this?
Anonymous
Anonymous
Also use distinct()
Anonymous
First distinct
Python - ERP
location_id = models.ForeignKey(Location,on_delete=models.CASCADE)
when i am selecting location from other model
it gives me error :Select a valid choice. That choice is not one of the available choices.
Elie
Hi
I have a problem with /media/, website is working fine and showing images from media, but whenever I try to access the image through its full url, it gives me page not found, I want the media directory to be accessible publicly
Anshu
Vicky
IS there any jobs for Django developer
Python - ERP
Anatolie
help me create model user using abstractbaseuser and baseusermanager
Anonymous
Neeraj
I want to generate HTML to pdf,
Example : user click on button and a pdf download, the pdf is actually certificate, which i issue after courses compilation. In the certificate an image is also present for logo and side border.
Please help to genrate and download pdf of certificate using python django.
Neeraj
Anybody have any idea
Neeraj
Code?
Anonymous
Devo
Jagadeesh
Hi I am beginner creating multiple urls for my api I am using the following cmd in main urls.py
path("", include("library.urls"), name="library"),
path('admin/', admin.site.urls),
and I am having a library.urls.py and I have added two urls
urlpatterns = [
path("book", views.BookList.as_view()),
path("book/<int:pk>", views.BookDetail.as_view()),
path("enrollmentresponse", views.EnrollmentResponseList.as_view()),
path("enrollmentresponse/<int:id>", views.EnrollmentResponseDetail.as_view()),
]
I am able to access book url but not able to open my enrollmentresponse url "GET /enrollmentresponse/ HTTP/1.1" 404 179
any suggestions please
Champak Lal
After hosting my site on heroku
Django Admin panel is not getting CSS
Looks like only HTML
Champak Lal
Any solution
Anonymous
Champak Lal
burak
Hello guys this is my admin.py
@admin.register(ResellerStatus)
class ResellerStatusAdmin(admin.ModelAdmin):
list_display = [
"reseller",
"status",
"reseller_status_icon"
]
however this doesn't show up on admin panel, any ideas?
Python - ERP
Python - ERP
Admin. Site. Register(resellerstatus, ResellerStatusAdmin)
Python - ERP
And class should be define first then register model
~:$
Minifying and uglifying javascript and css files..... recommend django packages from your experience. Thank you.
Python - ERP
Mirco
~:$
Anonymous
Elie
Anonymous
Elie
755 directory and 644 for files
Anonymous
I think chmod 777 something not sure
Elie
Ok I will try full permission
Anonymous
I think problem with ur url path only
Say my Name
Anyone please tell me what is Rest Framework in Django
Mirco
Say my Name
Mirco
Doragonsureiyā
What is rest Api exactly
Step 1: Open a browser
Step 2: Write down https://google.com or https://duck.com and press Enter
Step 3: In the search box, write down the same words you asked here
Step 4: Read the first results
Say my Name
Elie
What is rest Api exactly
An api something like a platform for communication between django backend and react frontend for example
Say my Name
Say my Name
Thanks
Ola
Mirco
Abed
Hello,
I am analysing memory leak on my project Django with celery and rabbitmq.
What libraries do you recommend or external tools for this issue ?
Nariman
hello!
Main.urls
path('stay', include('stay.urls')),
path('<slug:city_url>/', include('city.urls')),
stay.urls
path('/<str:category_url>/', views.StayList.as_view(), name='stay_list'),
city.urls
path('stay', include('stay.urls')),
Can you tell me properly way to output the url of stay_list in the template, depending on whether the city is selected or not? (/city_url/stay/category_url/ or /stay/category_url/)
Now I do it like this:
{% if cityurl %}
{% url 'stay_all_in_category' category_url=categ.url city_url=cityurl %}">
{% else %}
{% url 'stay_all_in_category' category_url=categ.url %}">
{% endif %}
Deleted
Hey guys, how to https://stackoverflow.com/questions/68378719/set-the-default-selected-item-as-the-same-for-a-value-get-from-db-in-django
manoj
What are the tools we use in django
international
Can anyboday help me in django fileupload code
international
??
AV
Hi everyone! I want to make my email messages not like a plain text, but like a django-form with labels and other fields and of course this form should be stylized with the css. I didn't find any useful about that. Thanks in advance!