Anonymous
Anonymous
Bunty chhatri wala..
Pls give me the solution
https://moonbooks.org/Articles/How-to-get-visitor-ip-address-with-django-/
Anonymous
What is use of Meta class in django
Meta class:
This is a class instance. normally, an obj can be called a class
instance but when you use class meta within your class, you’re
simply telling python that you want to modify the current class, hence you create an instance of itself.
Anonymous
I don’t know if you understood me
Anonymous
But you can ask more questions if you want
Hello world
hello everyone,
i want to use social media icons in django email templates ,
how to use this icons?
Anonymous
i have a doubt.
i have one app with side bar.
and have 20 pages. this side bar is partial so i include it in all html. jinja2 templates.
now my problem is i need to show some data in the side bar which is from database.
do i need to pass this data in context of the template from. every class base and function based view?
Anonymous
what would be the correct approach of this
Anonymous
can anyone explain me how it should be done.
i dont think its good idea to write this at 20 different views and functions.
cuz they would return different html template
Mehmet
Anonymous
template tags?
Anonymous
cool thanks
Anonymous
let me check
Mehmet
I generally create helpers.py and create methods inside with register.simple_tag decorator and use that in templates these kinda workarounds.
Mehmet
Actually this is a bit against MVP structure but I think we all need workarounds sometimes.
Hello world
Anonymous
i m returning list from custom tag buy not able to iterate over iy
Anonymous
it
Anonymous
any idea what could be done
Anonymous
when i print in {% %} it shows me the list
Anonymous
but i m not able to use for loop on it
Amos
Hi guys am trying to set up database on a cookiecutter project, however I keep getting set tge DATABASE_URL=postres://... environment variable error, have already exported that variable using the export DATA..., any one with an idea?
Anonymous
I need help fixing this error
TypeError: blogposts() missing 2 required positional argument: 'request' and 'slug'
ZK
Why my bash console in virtual env is unable to detect my changes in the model.. I'm using pythonanywhere
ZK
When I run python manage.py makemigrations, it says no changes detected
Anonymous
Anonymous
ZK
There is no migration directory in production
Mehmet
Maybe your app is not in the INSTALLED_APPS?
ZK
It is in production
Anonymous
Mehmet
It is hard to debug the issue unless settings.py, directory structure including migrations and django_migrations table are seen
ZK
i don't see any migration directory here.
inchidi
https://blog.jetbrains.com/pycharm/2020/08/webinar-django-database-performance-tips-with-andrew-brookins/
Mirco
Ujjwal
Please someone suggest any good minor projects they have made or anything related to python django ? U can dm me also
Tins
Hi, how can I connect django to mongodb ??
Curious
Can anyone tell me how could I pass a list to html page in Django 3.
Mirco
Tins
Tins
sravan
How to add sample respons in redoc open api ?
I using drf_yasg packing
Anonymous
Hello Anyone Familiar with HUGO?
Curious
Habib
Curious
Okey thanks
Anonymous
Hello guy's
Anonymous
I have one issue in Django
That is I want to access objects name which I am pass in render method of one function to another function body
Anonymous
What is the way?
|| VISHAL
may i get django full course from beginning. if you've availabe then please contact with me.
Anonymous
Anonymous
Anyone?
Peter
Akash
Hello guys... can you please help me with Django filters option
Gil
Anyone?
The question is about django language template / jijna2 ?
|| VISHAL
|| VISHAL
i need full course of django
|| VISHAL
How will I get it?
|| VISHAL
???
Anonymous
Anonymous
please i need full couse
try learning django basics from free online courses like udemy, there is no full course, you learn everything then gradually, first start from scratch
Anonymous
Akash
Hello everyone. I am a beginner in Django but willing to learn it. I want help from the community on below items:
1. Use of Django-filters to filter charts/table built on models
2. User input form to take simulation inputs
3. Alter the data stored in models basis the user input
4. Run the ML model from front end.
5. Refresh the charts and everything with the new output
Any help is appreciated!
Yash
I am using ImageField attribute to upload images in the db . But the file is not saving in the db . Can anyone help me with this.
I am using class based views
Anonymous
anyone here tried soft delete?
how to achieve it in django.
i want something to be deleted. but it is in foreign key relationships.
now i want if it is deleted it should not be visible from client side.
but customers side it should be visible.
think it as a product product owner and customer.
customer bought some product so in.
customer Purchases column i have it as relation.
but if product owner deletes it, it would be removed from. customer end.
Anonymous
can anyone help me with this scenario
Mehmet
You may use two boolean fields as a flag such as visible_to_customer and visible_to_client.
Mehmet
You may change these flags on all delete business logic.
Anonymous
7777 members and 888 online😍
Anonymous
Anonymous
nope. if a product owner deletes a product iy should not get delte from customer