Y
Hello! I would like implement file management system with django, someone's can I help me with link which explain different implementations step. So I have web interfaces
Shane
which is better with more extensions, Django CMS or Odoo CRM??
Саид
hello. you can give a link to a simple repository with drf, preferably with a docker-compose file, the main thing is that the code is good. I have an asterisk on the repository
Charly
which is better with more extensions, Django CMS or Odoo CRM??
How do you compare a cms with a crm? Makes no sense But anyways we don't discuss anything besides Django here
Himanshu
Hello, I am currently learning django, While After creating models, and starting server, Look up Error:No installed app with label 'admin' What should I do
Himanshu
I also added this
Himanshu
Ok
🌒 moon
Hi Django warriors I need help in my project for the infinite scrolling
🌒 moon
Anyone have experience please respond
Charly
Anyone have experience please respond
you haven't asked something specific
.
Hi I have a model form and I wnat to pre filled a field in it l I mane if the user wnats to make a room he don't need to write his It will be pre filled
Yash
How to get single entry data between two dates
Rakesh
Hi all, Anyone know how to deploy my django project using celery, static files in IIS windows server? If u have link of guide, please share.
Dony Anggara
How to use gsheet as database in django? Can I see the data in django-admin?
max 17
check this out
matrix
just for an example
Tура
Guys is it possible to make visible in Django admin panel only, the Men gender Users
Tура
Model.objects.filter(gender=M) but it should be in admin panel
max 17
Model.objects.filter(gender=M) but it should be in admin panel
do u mean how to filter? or others should not be visible at all?
Tура
do u mean how to filter? or others should not be visible at all?
I want to see in my admin dashboard only men users
.
Guys is it possible to make visible in Django admin panel only, the Men gender Users
I believe this is what you need. I’ve tried doing this. https://docs.djangoproject.com/en/4.1/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_queryset
Harshit
I wanted to create symlinks of files that are modified in last 10 minutes... For finding the files modified in last 10 mins I have the linux command " find . -mmin -10 " Now how can I give this command's output to the command that creates the symlinks? Can anyone help?
Tура
can I write like: attr= Many2manyfiled (User.objects.filter(smth="h")
.
Thank you! It helps, but how I can filter if my attribute is Many2manyfiled
I think you can use the same process with def get_queryset etc, and the filtering is almost like the line you mentioned Model.objects.filter etc. Specific for m2m filtering, refer to these: 1. “Many-to-many relationships can be queried using lookups across relationships” as mentioned in https://docs.djangoproject.com/en/4.1/topics/db/examples/many_to_many/ 2. More on lookups across relationships: https://docs.djangoproject.com/en/4.1/topics/db/queries/#lookups-that-span-relationships
talha
can I migrate new apps while I am using development computer and push it using git, and then pull to the webserver. is this okay, or should I migrate while in webserver
v6nom 『 🅽🆃🅼 』
can you explain use case ?
the variable sequence will return myvariable start_event1
Aashish
Anyone knows how to master django?
Quieres bailar
For deployment is there any simple way without getting crazy with Linux commands?
Quieres bailar
PythonAnywhere
Yeah just that they give you .pythoneverywhere subdomain
▄︻デռǟɦօʍ══━一
How to make dynamic field in a model based on user input for example if a user inputs name this will add a field called name on the model. Pls help
▄︻デռǟɦօʍ══━一
Do I have to use raw sql or there is another way to do this
▄︻デռǟɦօʍ══━一
Django form
How explain it
Alex
How explain it
Models don't work in the way that you requested, Models in layman's terms are a simple blueprint for the database so you can't modify them for each user request and neither does it make sense to do, so the best you can do to make a way to prevent or enable requesting the user to access name as per your example. Django Docs will be helpful in this case.
▄︻デռǟɦօʍ══━一
Nope
Raw sql?
Alex
Raw sql?
That will be reinventing the wheel and absolutely against the Django philosophy.
talha
Sure you can but it isn't recommended, this might break you production.
should I add migrations to .gitignore ? and migrate seperately (local db)
Alex
should I add migrations to .gitignore ? and migrate seperately (local db)
Nope try deploying the entire codebase with migration to production.
José
anyone has experience with azure pipeline? I am trying to build a ci pipeline on it (django+postgres) but every interaction with db crash (tests or migrations). basically, django can't connect to postgres
talha
Nope try deploying the entire codebase with migration to production.
I didn't quite understand can you please elaborate
José
I didn't quite understand can you please elaborate
how others will migrate your db if you do that?
José
even to dev environment you should avoid this, it will cause migrations conflict, and that is a pain
Alex
I didn't quite understand can you please elaborate
Migrations should be same in every environment.
umarxon
guys can u help me with smth? i have model "Books" and it has "published_date" field, how can i query Books that were published in that last 3 years from now
parag
Which is the best way to learn django anyone help plzz
parag
Also provide some resource
Jerome
Jerome
Which is the best way to learn django anyone help plzz
Being passionate and not in a hurry is the way to go
Muhamed
Hello, I'm beginnier in Django python And get all basics , so what is the best way to learn from projects?
Muhamed
Get idea and implement it or see projects and doing like it ?
Moe (محمد)
Hello, Is there away i can dynamically change the name of the database connection based on the current user? Connection is the same just the DB_Name will change based on the user. I tried using middleware to change the settings but the settings will get overridden by the last logged in user and the rest of users will have access to the last logged in user.
▄︻デռǟɦօʍ══━一
Why? Seriously... Why? 🤔
I am building student management system and the teacher have to add subjects and a student will have mark on that subject how can I do that without adding field or a column?
▄︻デռǟɦօʍ══━一
.
How it can be in a row will the students be in column explain it
This is one possible way for you: pastebin.com/83azHEza
▄︻デռǟɦօʍ══━一
Rakesh
why IIS? do you want to lose time and break your head?
What is the alternative? Why can't IIS?
Cezar
Probably the easiest with IIS would be to make it reverse proxy into gunicorn
Moe (محمد)
Not sure if i got u, but the thing is a have a database per tenant as a secondary DB connection. And i want to modify the the name of the db based on the logged in user
Anonymous
https://dpaste.org/rfxAn can someone help me plz? I m working with already existing tables
Moe (محمد)
@gamegamesgamer 👀
Patrick
Moe (محمد)
wait wait
Im too excited 😂 been stuck on this for like a month
Shainkey
Need ur help
Maxim
Need ur help
ask only specific questions
Patrick
@gamegamesgamer 👀
I have over 20 projects to look... Currently I'm not able to find which one contains that logic But there are currently 2 ways in my mind. 1. Admin Page Inside env folder Open env/Lib/site-packages/django/contrib/admin/templates/admin/app_list.html {% for app in app_list %} down here {% if user.type== "Type_A"%} Now wherever you see app.app_label change it to whatever table name you want to add for this type of user 2. Under models.py check current user type and put if else conditions for verbose name