xarala221
Can you give some exam because I am new in django.
Here is a simple tutorial and beginner friendly https://dev.to/xarala221/build-a-rest-api-with-python-the-easiest-way-16f0
xarala221
Yes you can
ggr
Yes you can
In secret chat I'm sending
S
I am a python beginner..can any one plz guide me how can i start learning django..
PV
I have an idea of building teacher-parent app such that the parent can see the result of his son only, how can i do that
S
Start with documentation
You mean django documentation?
PV
You mean django documentation?
If you are absolute beginner, watch some videos, then read django documentation
PV
Ensure that video covers latest django
S
Can you plz recommend some good tutorials?
Mirco
!res
Doragonsureiyā
Check out PythonRes, a channel for Python resources (links to help you out).
cj
If you are absolute beginner, watch some videos, then read django documentation
better read the documentation and not watch any videos 🤷🏻‍♂️
Doragonsureiyā
Can you plz recommend some good tutorials?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
PV
Can you plz recommend some good tutorials?
Go with django girls tutorial https://tutorial.djangogirls.org/en/
username
Hi, can you help me I want to create arrayfield without postgres. then I need to call something like def files_delete(sender, instance, **kwargs): instance.image.delete(False) for thumbnail in list(instance.image_list_thumbnails_files): default_storage.delete(thumbnail) but for now with TextField list return valuses like ['[', "'", '/', 'm', 'e', but I want /media/gwJzkAULv2Q-thumbnail-320.jpg /media/gwJzkAULv2Q-thumbnail-320.webp
Cesar
I don't even know why arrayfield even exists ...
username
I don't even know why arrayfield even exists ...
because list(instance.image_list_thumbnails_files)
Cesar
This channel is not for ML .
Cesar
Does anyone has experience creating PDFs with fixed width but variable height? Let's say I want to make a POS system. At the moment of printing the invoice common printers accept 3inch width and height is variable depending of the invoice details
Pedro
I think you should Create a field for it
Done! But I still don't understand why I have a problem :(
Midhun
Hai... www.memezero.com this is a website made using django. i wish to make another website with the same functionality. Is there any kind of ready-made projects or something available like this ? Or what kind of package is used in this website ?
Leonardo
guys how can i add a authentication of a drf app on postman?
Leonardo
im at browser session storage, and the values is: key user value {"token":"ZXlKaGJHY2lPaUpJVXpVeE1pSXNJbWxoZENJNk1UVTRNRFF6TmpjM055d2laWGh3SWpveE5UZ3pNREk0TnpjM2ZRLmV5SjFjMlZ5Ym1GdFpTSTZJbVoxYm1OcGIyNWhjbWx2SWl3aWNHRnpjM2R2Y21RaU9pSnZaSEpoYm05bGJDSjkuV2g3TnpGeHJFM0FhcVhmWWdaaFZxTzR3TkQ4TmxhN3NBc0trQ0c2M0FwRGVNSklfNWduOGFRckxOQ1JCdll1T1dibjY1MUlKc1E2UjJLTDZjYXBuQ3c="}
Leonardo
then i've tried add a key named user and value with value content on headers
cj
if they didn't pay for jet license and they don't have its source code available, you can snitch on jet webpage so they can make a lawsuit and turn down that webpage 😂
Anonymous
I have some data in model class(student) like (name, email, date, password, id). Now I want retrieve all data if I pass e-mail and password in potsman body form data like email=abc@mail.com and password=abc123. And I want all details like id,name,date,email.
Emmmm Django stores password hashed and i think you kind of want only validate and if you want to retrieve all data from students tables whose email is =email You can do Student.objects.filter(email=email)
Anonymous
Right but how
You mean to write a code Ok if so First in your view I hope it is post request from that take your attributes you want to help you with ur filter and get the object but make sure you take unique of your object attributes from your client and Filter from dB by using yourobj =Modelname.obects.get(uniqueattributes=request.POST['uniqueattri..'] Then from the above object you can get
Anish
I have integrated online payment via razorpay in django , if transaction gets successful , razorpay create an id , i want to fetch that id and store it in backend to track user but i couldn't. Please help me if any knows how to do it , thanks
Midhun
Hai... www.memezero.com this is a website made using django. i wish to make another website with the same functionality. Is there any kind of ready-made projects or something available like this ? Or what kind of package is used in this website ?
Functionalities of this website - front end image upload - image downloading - registered users can download images without watermark - non-registered users download images with watermark - search option - dynamic advertisement fields.
Midhun
Is there any similar project/source-code available ?
Alex
Is there any similar project/source-code available ?
Search on github. Like django-wiki or waliki and so on
Midhun
I've searched alot but didn't find any. I also searched photo sharing app , community sharing app etc.but didnt find anything like that site
Tommaso
Hi, I am developing an app in django and I pushed it on Heroku. I want to query my database with SQL in my views.py, so I connect to my database with connect method. But when it comes to deploying my app, I want to hide my database credentials in environment file. So I save them in a .env file in root directory, but I run into VIEW_DB_USER not found. Declare it as envvar or define a default value. from what I see I think the problem is that the function config here somehow is not working properly. But why? https://stackoverflow.com/questions/59991316/django-cant-find-my-environment-variable-view-db-user-not-found-declare-it-as
Dhinesh
hey guys i got page not found error in POST method. how to fix it?
Dhinesh
wait
Dhinesh
I cant able to send any pics here
Alex
I cant able to send any pics here
You can provide your error message in text format. And it is the best practice
Doragonsureiyā
I cant able to send any pics here
Read the rules before any activity: @PythonRules
Dhinesh
Ok ok
Dhinesh
You can provide your error message in text format. And it is the best practice
Page not found (404) Request Method: POST Request URL: http://127.0.0.1:8000/student/login Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order: [name='home'] home/ [name='home'] about/ bba/ bio_che/ chemistry/ commerce/ comsci/ economics/ electronics/ english/ history/ maths/ physics/ tamil/ student/ activities/ user_login/ admin/ The current path, student/login, didn't match any of these.
Ashlah
I've searched alot but didn't find any. I also searched photo sharing app , community sharing app etc.but didnt find anything like that site
Have you tried looking at djangopackages.com? There's classifications (grids) there so you can search based on it. Maybe it could help
Botnet
Pls can some body
Devansh
Also need to define it so you can redirect
Alex
oh ok, then how i redirect to next page after top on submit button in post method
Depends on your code and what you actually want. For example you could redirect on existing login page if there is a https://docs.djangoproject.com/en/3.0/topics/http/shortcuts/#redirect
Dhinesh
You need to create and add that page to urls
brother im rendering lots of pages, everything is working but when i using post or get method i occured in this problem?
Alex
brother im rendering lots of pages, everything is working but when i using post or get method i occured in this problem?
No offense, but I would advice you to use, for example, google translate, because I really dont understand your english.
Midhun
I'll try it
Ashlah
U'r welcome
Anonymous
Hello guys. Does anyone knows a good place to find (good) django projects so I can see how the projects were structured.
Anonymous
Alex
-_-
what?
Anonymous
I know github. I mean a place where i can find a list of projects that would serve me as an example of good practices, something like that
Alex
Ok very useless when you forget the command
Alex
Google m8, google