Doragonsureiyā
😂
Read the rules before any activity: @PythonRules
Aniesh
sorry for the rules
Aniesh
how to create category model ? in Django
Aniesh
i know how to create model but
Aniesh
i need as nested
Aniesh
and how to created datetime filed with timestamp with time zone
Charly
i need as nested
explain this
Aniesh
Aniesh
and nested url ?
Aniesh
localhost:8000/category/a/b
Charly
just create a Model that has a foreign key to the same model, call it parent category, for example: class Category(models.Model): name = models.CharField(max_length=30) parent = models.ForeingKey('self', null=True)
Aniesh
and for nested url
Charly
and for nested url
that will make nested, taht's why the foreing key
Aniesh
ok i will try
Charly
a = Category(name='Category a') b = Category(name='Category b', parent=a)
Shanu
Like api versioning api/v1 api/v2 How can I versioning socketio, my goal is old socketio events will not break, because client side using Android app.
Moe (محمد)
Hello there, I'm trying to use Django formset but i keep getting this error when i try POST https://pastebin.com/gR5kq8Qw
Mirco
found solution: return render(request, 'users/profile.html', {"u":user}) thanks.
Not needed at all if you are overriding Django default auth You have LOGIN_REDIRECT_URL setting
Mirco
but i need to pass it the "new" user id
Nope, you can access the user in your template via request.user
Zerat
Nope, you can access the user in your template via request.user
let me try that, that sounds much simpler than what i did
Mirco
Yes 😊
Bla
Hello i am here cab anyone provide me free course of django
Nikhil
You can check Corey Schafer django tutorials on YouTube
Javokhir
Hi everyone I need your help, I have learned the basic concepts of django Rest API, and I think it is time for real small projects, but I am facing problems: when I want to watch "e commerce project with django " on youtube or udemy😔😔 there is many unfamiliar concepts of frontend, Redux, styling templates....
Javokhir
Can you help me to find separetely backend courses
Javokhir
Or how I learn backend without wasting my time with frontend
Ali
Hi, I have a TextField field in my model which takes a Markdown data. I can properly render the markdown but I want to use django-pygmentify pkg in order to highlight those code blocks and give them a CSS class in the template engine. How can I implement it?? Thanks.
Nikhil
Hii, I'm getting deadlock error, maybe because of Defaultrouter actually I'm doing this, router = DefaultRouter() router.register('job/intermediator', FreelancerJobIntermediatorView, base_name='job-intermediator') urlpatterns = router.urls url_list = [ path('2'/, bla.as_view()), path('1/', bla2.as_view()), ] urlpatterns += url_list
ThunderCore Community
Hi I am hitting post request through postman to local installed repository. Using body as form-data, in form-data I want to send headers value like to and from email value. I specified headers -- from: test test@gmail.com, to:test1@gmail.com But in local repository getting only from email value not to's email value. I have used , separate. Any another separate can we use or how to send to and from email value to local repository. Please suggest me any documents because I am stuck in this issue.
Paras
Guys how to redirect 2 success_url one after another. If one success_url loads then call 2nd success_url
Paras
Thank you in advance.. please do reply
Paras
What are you trying to do?
Thank you for replying... After one condition true... I want to redirect it with success_url to dashboard and when that dashboard page loads... Now another success_url will call
Paras
I am unable to load screenshot of code here.. sorry
Doragonsureiyā
I am unable to load screenshot of code here.. sorry
To share code or error tracebacks, use a pasting service, like: - https://linkode.org - https://dpaste.org
Nikhil
Thank you for replying... After one condition true... I want to redirect it with success_url to dashboard and when that dashboard page loads... Now another success_url will call
window.onload = function() { // similar behavior as clicking on a link window.location.href = "http://stackoverflow.com"; }
TheDoc
from django.contrib import messages
Fan / Ac
from django.contrib import messages
i will check about this, thanks for letting me know about this framework
Mounted
Hello everyone I have a question I create a JSON file into which I push the query request And I want to output data from JSON in template to table tag Is it possible to do this without using JS
Mounted
{% for qq in query%} {{qq.name}} {% endfor%} I want to be treated like this
Mysterious
How can I send a notification to all users in Django and hide it when they see it?
M Latif
Hi all my friends in my project have two app but it doesn't work When i import one app in another app how can solve this problems Tell me
M Latif
Like this First app name product And second employee Import product Return ResponseRedirect(reverse(product.Views.Add))
2X
Any Django developer here who can help me in integrating paypal and stripe payment gateway?
Doragonsureiyā
Any Django developer here who can help me in integrating paypal and stripe payment gateway?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
AruN
Want to get data all from database and want to display in html page by the newest on top
AruN
Currently displaying newest at down of list
AruN
def history (request): data = History.objects.all() return render(request, 'history.html', {'data':data}
Juan
How to do that?
def history(request): data = History.objects.all() context = {"data": data} return render(request, "history.html", context)
AruN
I tried by .order_by('-date') Its worked
Roger
Hello everyone! I have a question, I would like that you can help me! How can I search the nearest poligone (in a map like google maps) with the ubication or coordinates? I was searching and find that postgis (postgresql plugin) can save coordinates but, I dont know if this is posible. Some knows about what i need to investigate or use for this problem?
Satheesh
can anyone suggest me material or tutorial to get start with django
Mirco
!djangotut
Doragonsureiyā
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Satheesh
thank you
Doragonsureiyā
thank you
You're welcome! 😊
Doragonsureiyā
Can suggest me solution to implement this?
So, why don't you do it yourself first? When you have an issue with the Python code you wrote (read rule 5️⃣ to show your code), come back here and people will help you. 😉
Anton
Hello everyone! Pls help. In celery task i getted my object (Order). Object contains ManyToManyField and then i call it i recived None. However when i call same code in django shell i recived back correct list of objects. What wrong with celery task and what i can do with that?
Anonymous
https://stackoverflow.com/questions/70232524/i-need-a-help-in-django
Anonymous
someone help me please
Anonymous
Pawan
any one host of the django live class , I want join to learn
Fan / Ac
check these suggestions https://t.me/pythonres/32 also search for corey schafers django videos
Deleted
https://stackoverflow.com/questions/70233912/merge-two-records-to-one-record-based-on-an-item-in-bootstrap-table
Pythonero
someone help me please
your question was aswered in stackoverflow