Charly
?
How you are going to apply a migration before creting it?
V
I have created a table fisrt then delete code from the models...but the table is not deleted from database
V
How you are going to apply a migration before creting it?
Same is showing after creating a new model
Charly
Same is showing after creating a new model
Then you new model is wrong but it has notginh to do with deleting the older
V
Ok
Ameer
How to add another html page link in http response in django..
Shivam
Django error. Cannot assign must be an instance.
Shivam
How to resolve this error
Mirco
How to resolve this error
Share code and traceback via pastebin.org
Naughty
can anyone suggest some non-ecommerce simple website topics which has github sample projects and related youtube videos
Anand
Hi guys , have anyone done some projects with elasticsearch dsl in django
Anand
Hello I need help with elasticsearch-dsl with django
<\Hany>
Friends want an operation just after the user&#39;s registration automatically, should I do exactly what to do
David H
Friends want an operation just after the user&#39;s registration automatically, should I do exactly what to do
A post_save in your User&#39;s model checking created param could be a good solution for you to call any function for performing any operation https://docs.djangoproject.com/en/4.1/ref/signals/#post-save
David H
Hi guys, I&#39;m writing this question because I have doubts about how to implement a scenario that we had not foreseen for my django developed application using django-tenants. Basically what I need is a way to allow some types of users, depending on their role, could access data that is in multiple schemas. So the approach that I had thought of was to create relationships between the &quot;tenants&quot;, which define the database schemas, and detecting which of them a certain user belongs to, to be able to query all the schemes that are related to it in a loop. In the same way, this has some drawbacks, since this solution would require a lot of additional programming and concatenating querysets or working by adding the responses of the serialized data of each queryset of the aforementioned schemas could be inefficient... So, is there a different way to reach the explained objective with a different approach? Thanks in advance. https://stackoverflow.com/questions/74586305/querying-multiple-schemas-with-django-tenants
Piyush
Hey anyone can tell me how to save foreign key in django view if model category is foreign key to model Post then how to save data
Alfred 🐾
Hi Everybody Suppose we have an app that many companies have access to. What is the best model design for this app? (For example, do we want to show the information of a company to its users, create a model and filter from that table, or is there a more optimal and better method?)
Vijay
Hello everyone I am a beginner in django, can somebody tell me about settings.py file which I get after creating django project please
cj
Hello everyone I am a beginner in django, can somebody tell me about settings.py file which I get after creating django project please
that&#39;s the file where you&#39;re supposed to set all the configuration related to your project
Vijay
Do I need to change anything from that file now and in future?
cj
Do I need to change anything from that file now and in future?
yes, that&#39;s the most important file in the project and you&#39;re gonna be always changing things there
cj
there&#39;s also a good practice to split that file and have separate configurations for development, testing and production at least ... but you can have as many as you want/need
Vijay
So as a beginner i really need to learn about this file specifically
cj
So as a beginner i really need to learn about this file specifically
absolutely yes, actually you can&#39;t do anything in Django yet if you don&#39;t know what you have in the settings file
cj
This must be challenging for me
it shouldn&#39;t actually, because if you don&#39;t know what you have in settings you shouldn&#39;t go any further with your Django project
Alfred 🐾
Look at django-tenants documentation, with this extension you could have shared and private models in different database schemas
Thank u. According to the search I made, this is good for a company that I know. What is your solution when there are several unknown companies and they want to use app?
David H
Thank u. According to the search I made, this is good for a company that I know. What is your solution when there are several unknown companies and they want to use app?
If those companies, have a different table structure for their private data you could have multi type tenants, it&#39;s on the docs. Or are you asking a different question?
Alfred 🐾
If those companies, have a different table structure for their private data you could have multi type tenants, it&#39;s on the docs. Or are you asking a different question?
They do not have a different structure. But the data of each company is confidential and separate. For example, this company wants to see the expenses it has made during this period. This data is specific to that company. Is it good and optimal to use this?
Alfred 🐾
Nope, It isn&#39;t.
aha,thanks buddy :)
David H
aha,thanks buddy :)
You&#39;re welcome, don&#39;t be afraid to ask me if you have more doubts ✌️🏽
Seun
Hello Anyone. Please I want to deploy a django project on railway, the project uses wkhtmltopdf.exe to convert html to pdf. And the .exe extension is hard coded into my code, now that I want to deploy, I don&#39;t know how I&#39;ll go about the deployment, having a .exe file I&#39;m accessing from local machine
Deise Freire
Could you please help me I want to get another branch to deploy in pythonanywhere can anyone tell me what the command is? Because I&#39;m afraid of getting this command wrong
Deise Freire
I make the git clone of main
Deise Freire
How to switch to another branch?
Doragonsureiyā
Could you please help me I want to get another branch to deploy in pythonanywhere can anyone tell me what the command is? Because I&#39;m afraid of getting this command wrong
Your question is not related to Django. If it&#39;s a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Deise Freire
Yes sorry is that the job was done django I need to deploy it
Deise Freire
Sorry guys
Jignesh
How to create role based login page
Doragonsureiyā
Yes sorry is that the job was done django I need to deploy it
Adding the word Django to your Off-Topic question doesn&#39;t magically turn it to a Django related question, so move to @PythonOfftopic group and ask there.
Kiran
Django free deployment hosting site with database anyone tell me please?
Maximiliano Exequiel
Railway
Maximiliano Exequiel
Aws freetier?
Maximiliano Exequiel
Python anywhere
Deise Freire
Django free deployment hosting site with database anyone tell me please?
Netlify [free](https://www.netlify.com/) Pythonanywhere [free](https://www.pythonanywhere.com/)
Kiran
Thanks 👍🏻
Georg
hello. I added &quot;tinymce&quot; component to django admin and it overrides Textarea and TextInput field in forms. How can I use a regular Textarea and AdminTinyMCE controls in one form?
Georg
or maybe I can customize CharField with rows and cols ? But it does not handle that params
Ameer
When i am deployment my django with nginx .. when i pass the command sudo systemctl restart nginx i am facing a problem
Ameer
Error was : job for nginx.service failed because the control process exited with error code. See &quot;systemctl status nginx.service&quot; and &quot;journalcrl -xeu nginx.service&quot; for details
H
Hello guys, for a program like a blog, how much money should we receive for the project
Ameer
Can anyone help me to solve this problem..
Михаил
Hello guys. Please send me dockerfile and docker compose file of Django app where use redis, celery and asgi server Daphne. I don&#39;t know how create it.
Charly
How to solve it..
This group is not about nginx
Krishnajith US
How can I set custom time interval for my OTP in django rest
Hamid
Hello in viewsets and router is it possible to have lookup field like this For example This is our lookup field user_id When i use this url ---&gt;url/{user_id} Will return list of object releated to this user and when I use this url/{user_id}/{pk} Can have crud for specific object
Akhmadjon Akbarov
Who can teach me about authentication? I learned it but I didn&#39;t understand them.
Alexey
Hi all ! Sorry for my English. Happy New Year everyone! tell me, the model is not registered in the admin panel ... all migrations were completed successfully. the model is registered in the settings. admin.py says admin.site.register(mymodel) but the model doesn&#39;t show up in the admin panel. other models work well.
FOR YOU
model in a separate application
Can you send here(your model)?