vaseem cholakkan
order.sellers_orders.filter(...) is enough
Максим
order.sellers_orders.filter(...) is enough
Thank you very much, I will try
Priencess
I need help django project how to create pannel report home page with table use of html css
S#₹@V@n
I want to upload URL data in the S3 bucket?
S#₹@V@n
I want to upload URL data in the S3 bucket?
Any source available To do this
Mirco
I want to upload URL data in the S3 bucket?
just use boto3 and follow AWS doc about it
Mirco
Any source available To do this
don't write in pm
Tim
Hi all! Guys, a question on django. A regular blog where you can register as a user and add articles. Is it possible to make such functionality so that the articles do not immediately go to the blog, but to the moderation of the superuser?
Toto Syrax
I just entered to admin page of Django And its not stylished and looking weird. Solution?
Mirco
I just entered to admin page of Django And its not stylished and looking weird. Solution?
You have debug false and not configured static files and ran collectstatic
Toto Syrax
You have debug false and not configured static files and ran collectstatic
I did debug false for 404 page by following w3school
Toto Syrax
Study topic on documentation
You mean official Django documentation
M. Hossein
Imagine we are creating a youtube clone with Django. For creating various apps people follow different approaches. For example some people create videos app, channels app, users app and etc. but videos and channels are dependent to each other. Some people do disagree with this approach since they say each app in Django must be independent to another app and in this example channels app and videos app should be merged to one app. What do you think is the right approach?
Devanand
Does anyone knows about openlitespeed.creating virtual host in openlitespeed.and hosting django using openlitespeed?
Uzumaki
Hi can some one give me roadmap for django as i am stucked in my previous courses
Uzumaki
By road map i mean any course link on udwmy or youtube as it will be easy for me to study from there
KingFx
Why is that?
to keep your code clean,
M. Hossein
to keep your code clean,
What about dependencies? In this case apps are coupled to each other
Muflone
What should do to slove it
Static files, it's a well known argument often misunderstood from newcomers See also #static messages in this group
Владислав
Yes i understand Django, but i can not understand how nginx catches request
Владислав
For?
handle static files
Владислав
i think its question more about nginx in general not about django
Muflone
handle static files
nginx is a web server, it's used to serve the files which are not handled by python
Muflone
Images, css, js They are not related to Django / Python at all So nginx will serve them, without even passing them to Django #static
Владислав
i will deploy my educational blog project soon, so i will need this understanding, but now i going through ImageField to allow user upload photo with posts
Muflone
Also media files will need to be served from a webserver, if they are not to be protected from leeching
Владислав
Thanks, I think this is easier to do than explain
Muflone
Yes, It is
EFK$$$
Please who knows how to connect MySQL into django in CPANEL host, port
Franco
hello ! How are you? I have a question. I am creating a search view which will perform a search only by ID. If the ID exists, it proceeds to redirect to x view with the id until there, everything is fine. The question is how do I pass the ID to another form that is the registration form?
Franco
def search(request): if request.method == 'POST': form = SearchForm(request.POST) if form.is_valid(): dni = form.cleaned_data['dni'] first_name = form.cleaned_data['first_name'] last_name = form.cleaned_data['last_name'] try: person = Person.objects.get(dni=dni) return redirect('access_visitors', person_id=person.id) except Person.DoesNotExist: return redirect('add-person') else: form = SearchForm() return render(request, 'search.html', {'form': form})
Franco
other form to add_person is : def add_person(request): if request.method == 'POST': dni = request.POST['dni'] person = Person.objects.filter(dni=dni).first() if person: return redirect('access_list', person.id) form = PersonForm(request.POST) if form.is_valid(): form.save() return redirect('visitors') # Redirige a la lista de visitantes después de guardar else: form = PersonForm() return render(request, 'person_form.html', {'form': form})
Toto Syrax
It still not stylished
Doragonsureiyā
I just entered to admin page of Django And its not stylished and looking weird. Solution?
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
J
👋🏻 everyone I m trying to use a work flow in my app i tried to use joflow and viewflow but didn’t work for me .do you have any solution for using workflows? Thanks 🙏🏻
AbiduSage
Hello friends I wanted to add more fields to the register page with Django. For example a field for address, phone, photo. help me friends
AbiduSage
Add them in the model and the template
I had created a forms.py and this is where I had added two email and password confirmation fields using UseCreationForm but when I wanted to add other fields I got errors
Muflone
It still not stylished
It won't fix by itself
Priencess
Hellow every one I am new in django 1 how to creat pannel report use of html and style .css 2 how to creat tables
Priencess
And panel buttons
Wiz99
Hello i've setup my django app to send webpush notifications using https://github.com/jazzband/django-push-notifications but at the end i cant send notification to subscribed devices.I get the error as below Push failed: 404 Not Found Response body:A valid push subscription endpoint should be specified in the URL as such: https://fcm.googleapis.com/wp/dHIoDxE7Hdg:APA91bH1Zj0kNa... My settings are as follows ` PUSH_NOTIFICATIONS_SETTINGS = { "FCM_API_KEY": "AAAAG3r9SiQ:APA91bFuZSc8e2byueLAmz06MUdwQhQiUHMUjY5aKS8XZ4GVqjsxMPGxMKLEN_-dEczIbhxBiff3rGdOP90Q35JADHZBAKTDG_pfthVjCHA-iJmYjv4JJtQSmR_fyv4hPJJwoRs3bKQE", "APP_SERVER_KEY": "BJirBzxWJiOu9ZSpp0AQN7ER92RYczrBbTlFdyRSdpFB3W6aOXUYArl4Xp7w0WAz7XWSHspqQoz___M6cW0nxzc", "WP_PRIVATE_KEY": os.path.join(BASE_DIR, "private_key.pem"), "WP_CLAIMS": {"sub": "mailto: hermanpaul050597@gmail.com"}, "WP_ERROR_TIMEOUT": 10, # timeout for the request on the push server "UPDATE_ON_DUPLICATE_REG_ID": True, }` is there any place that i need to set the webpush url and where do i get that usl
Anonymous
I want to make a profile page for my blog site from where users can update their info so is there any tutorial or website to learn this?
Wiz99
Check API keys again on live website.
do you mean in my front end javascript ?
Vxvek
Is there any library for django for building tenant isolated dynamic db approach
Владислав
Ravi
https://github.com/markusressel/barcode-server Can anyone guide me how can i ise this barcode python package i am having barcode scanner device with me
min
How to run a Django celery task every minute from 10PM to 10AM? Is it possible do it without validation inside the code?
Ravi
this is not a Python group
I want to implement in Django
Doragonsureiyā
I want to implement in Django
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Bhavi
Class test_model() : Tool_attributes =jsonfield.JSONField() Sample data present in the field: Tool_attributes= [{"vendor":"vendor1", "domain":" Domain1”}] How to search the domain with value dom I am using django 2.0.8 version and mysql db.
Bhavi
Can anyone help out for above query
Rupesh
"I'm working on a Django API that should send an HTML template with JSON data to email. I am able to pass the HTML design, but I am facing difficulty passing the JSON. Can anyone please help me with this?"
Bhavi
Key tranform
Can you give a query how it looks
Hildemaro
Any Django template language for recommendation?
Doragonsureiyā
"I'm working on a Django API that should send an HTML template with JSON data to email. I am able to pass the HTML design, but I am facing difficulty passing the JSON. Can anyone please help me with this?"
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
Charly
Any Django template language for recommendation?
Why do you need another language aside from django's one?
Hildemaro
{% xxx %}
Charly
Hildemaro
How does this template language work?
Hildemaro
{% xxx %}
It's just an example
Maxim
How does this template language work?
read the documentation to find out
Hildemaro