Ansab
Help me to create a orm query to find sum in each month😭😭😭
Ansab
Month wise total
Gaurav
I have extended the auth_user table by adding gender to it... but when I run sqlite command there is no gender coulumn in the schema.... why is that... https://pastebin.com/zfTvDE7B
Gaurav
table schema: https://pastebin.com/XibRGgD5
maroong
Can I use save() twice in views
Ansab
Help me to create a orm query to find sum in each month😭😭😭
Pedro
Ansab
have you read the docs of Annotate and Sum?
I know... But how can we get monthly wise total.... Iam using datetime field for saving date
Arafat
hello how we can do chat on django
Mirco
Arafat
thank
Adarsh
Can someone help me in making API for e kyc
Anonymous
Hello, can any one me what is Meta class in django and what's the use of that?
Doragonsureiyā
Hello, can any one me what is Meta class in django and what's the use of that?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Mirco
Hello, can any one me what is Meta class in django and what's the use of that?
Change the behavior of a class at runtime ( very very basic explanation ) For.more details study python metaclasses 👍🏻
JZA
hi I am getting this error when starting django on virtualenv, Cannot use cached_property instance without calling __set_name__() on it.
JZA
I am on version 3.6.0a1 of python
JZA
using Django 3.0.2
Sanjay
Hi guys, I have a django project which is ready to golive, I dont want give my source code to client Is there any way I can do that?
Yar
Hi guys, I have a django project which is ready to golive, I dont want give my source code to client Is there any way I can do that?
You can say about this for your client and rent server for costs of your client(maybe you can link his debit card to a hoster).
Yar
Also, you can try things like nuitka, pyinstaller(very undesirable, can be decompiled by uncompyle6).
Yar
Anyway, you're developer of the product, and also you can backdoor it, if you get data privacy issue.
Animesh
Interview questions for fresher and experience
Refer this guide for your complete interview preparation: https://data-flair.training/blogs/django-interview-questions-and-answers/
Sander
Can anybody please have a look at this question; https://stackoverflow.com/questions/59586257/profile-id-not-stored-in-user-after-creation-django
Михаил
It doesn't answer your question, but do you really need Profile model?
Yatin
Is there a way to connect drf and mongo? I had googled it found one library restframework-mongoengine. But no tutorial is available
Yatin
The best way to find out is to play with the code, you may figure it out
I did... I tried to connect in every possible way
Yatin
What do you call drf?
I am sorry .. I meant django rest framework
nigga
Okok. I was affraid something new unknown was out...
Muslim
Django is not the language, it’s framework built on Python programming language. There’s no big difference, learn by needs of companies, where u apply
Muslim
They both have same functionality, similar MVC structure, active record ORM. Django is built on top of Python, which means it has more libraries for DS/ML. Companies use what their developers know, nothing about power
Arjun
Can anyone explain what is ORM?
sheikh
How to learn advanced ORM?
Anonymous
Can anyone explain what is ORM?
Dude, there's lots of resources of ORM, please ask if you got some problem which is not solvable without personal assistance
Doragonsureiyā
Can anyone explain what is ORM?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box write down the same words you asked here Step 4: Read the firsts results
Reginald
Please anytime I run the server I have Improper Url Configured
Anonymous
Reginald
If I did not I would not have asked
cj
If I did not I would not have asked
at least show your code, we don't read minds here
Doragonsureiyā
To share code or error tracebacks please use an online pasting service, here is a list: - https://hastebin.com - https://del.dog - https://linkode.org
Anonymous
Yep
Go to the django documentation copy Nd paste the urls.py files and change the URL Patterns then
Adonis
Hi there. is there a command or a package which can allow me to print all the sql queries used to create the current db ?
cj
Hi there. is there a command or a package which can allow me to print all the sql queries used to create the current db ?
you can set de debugger on settings.py to print all the SQL sentences generated by the ORM
Bjorn
Hi there. is there a command or a package which can allow me to print all the sql queries used to create the current db ?
U can show the create query for one table... Using show create table tablename. In mysql.
cj
U can show the create query for one table... Using show create table tablename. In mysql.
if you're using django, the best rdbms you can use is PostgreSQL
Adonis
This is called backup
i've already did a backup... it contain a lot of thing... just want few tables queries (only the one i did in my class diagram actually, that is why i wanted to be able to generate it per apps at least)
Adonis
Do you wanna also the data in the tables?
nope.. only their description
Adonis
i have remove the insert sql queries in the backup already
Adonis
the current solution for me is to squash all migrations and run sqlmigrate on each apps
Cesar
nope.. only their description
You can make MySQL backups without data, just create sentences.
Cesar
am on PgSql actually
pg_dump -s database_name > db.sql
Adonis
pg_dump -s database_name > db.sql
thanks did something like this with pgadmin
Anonymous
Is there any way to change the color for part of a picture?
#
i built up custom user model and i create user using createsuperuser commandline and it finish ok, but when i try login, i couldn't logged in. any idea about?
Doragonsureiyā
i built up custom user model and i create user using createsuperuser commandline and it finish ok, but when i try login, i couldn't logged in. any idea about?
To share code or error tracebacks please use an online pasting service, here is a list: - https://hastebin.com - https://del.dog - https://linkode.org
Anonymous
#
Check this..it worked fine for me
i am working on it, tnx for help
#
This is my new error
#
from my UserRegisterAPI