I am taking a online course about Django. In this courseI am connecting my project with a Postgresql database. For a case that my Django app start bef ...
I am taking a online course about Django. In this courseI am connecting my project with a Postgresql database. For a case that my Django app start bef ...
I want to create a database for my project using the default Django database 'user' and I found that Django has a primary key username and some fields ...
Sorry but I don't know what is happening when I try to run (python3 manage.py makemigrations). I really don't know what's going on I'm looking for an ...
I have a model called Purchase, with two fields, User and amount_spent. This is models.py: I want to get the last purchases from a list of users. ...
I use two databases in django, one is marked as "default", the other is optional. I have this question: I have a file with models, all these models ar ...
I have models Merchant and PhoneNumber. PhoneNumber has a foreign key to Merchant, and Merchant has property business_phone_number which fetches the f ...
I'm building a website that displays photo albums. For that I have the following Models. Every MediaSet(=Album) might have a cover. If it doesn't I ...
what is the best way to fix this kind of DataBase Errors without having to delete my db and migration files and starting to enter data from scratch? ...
I've tried using multiple database in my Django project. I create a model with foreign key to User but it can't save to second database. This is the ...
I want to remove all the unnecessary apps that come as default while creating a project in Django. My Project uses Auth0 for authentication and Fires ...
I created a custom user class that is inherited from AbstractBaseUser, this class has a chil class. The problem is I can't add new fields to the child ...
I am trying to create a relational database (one to many) in my models.py file. But when trying to add entries into my database i get an error saying: ...
I recently started learning django and was making a CRM. models.py: forms.py views.py html template: mixins.py The problem here is tha ...
So I have a form you can fill from the webpage which I want to save to my django database to create a new object when submitted instead of adding it i ...
well my college is making us go learn a framework and make a website with it in a month, and it's really killing me, because of that I couldn't really ...
I have a .txt file with 3 columns (longitude, latitude, distance) and 40 million rows. These are the first lines of the file. Is there a way to pro ...
I'm having issues connecting my Django app in my local machine to MySql Database in Azure? I added my IP in the Rules and am connecting with this: ...
I'm often experimenting around creating different models, changing relations and so forth. This usually happens when starting a new project. At this p ...
I am trying to create an application where one server communicates with many other worker servers. Those servers will each have their own DB which sho ...
I am creating a Django application where my requirement is that for each user I have a boolean value which is set to False by default. Now if the user ...