Sherlock
The first one is better option. It gives you more functionality over your app.
brother can u plz tell what kind of more fuctionality ?🙏
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.
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
Doragonsureiyā
U r refer any atom packages
What are you talking about?
Dongari Ganesh Varma
What are you talking about?
Atom live server packages
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
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
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
Vicky
IS there any jobs for Django developer
Python - ERP
Anatolie
help me create model user using abstractbaseuser and baseusermanager
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?
Devo
How to get data into a dictionary from Queryset Object ?
Use serializers.. serializers.serialize(queryset)
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
Champak Lal
Python manage.py collect static
Where should i run this now
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
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.
kuzmich
anybody can help in this error?
first of all don't name relations like this just leave it as location
~:$
django-compressor if I well remember the name
Did you use it??? Django-pipeline is successor of this package.
Mirco
Did you use it??? Django-pipeline is successor of this package.
nope, for that kind of frontend stuff I use the frontend tools so webpack etc etc
Python - ERP
first of all don't name relations like this just leave it as location
i changed location_id to location but i am getting error , i am using mongodb
~:$
nope, for that kind of frontend stuff I use the frontend tools so webpack etc etc
For webpack i have to mange node.js as well. I do not want to do it.
Mirco
For webpack i have to mange node.js as well. I do not want to do it.
because maybe you are a solo developer I mainly work in a team so we have frontend folks 😊
Anonymous
Can anyone help with this please
Try accessing baseurl/static/image
Python - ERP
Send ORM query
https://paste.ubuntu.com/p/RwxHNxB6SM/
Elie
Try accessing baseurl/static/image
On the website it is retrieving images, but if I put the full link of the image in the browser it gives me error 403
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
Use serializers.. serializers.serialize(queryset)
I called .values() from Queryset Object and it worked
Say my Name
Anyone please tell me what is Rest Framework in Django
Say my Name
A Django app to build REST APIs
What is rest Api exactly
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
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
Thanks
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!