I\'m integrating a MySQL database from a php app into a new Django project. Inspectdb worked well, I just had to change a couple of fields to ForeignKeys and now all the reading and editing current da
I\'m 开发者_StackOverflow中文版building a web app on Django. The client insists that some column on some table should be the primary key, he doesn\'t want autoincrement one. But also he wants that col
I have a choiceField called from a context_processors so it can appear in all of my site\'s pages. It provides the projects existing in a database. The problem is that it does not refresh correctly.
When I try to dump the data of my model in Django with this instruction : python manage.py dumpdata app> temp_data.json
I am having a weird problem with my mysql database and django. I created an app with a model imported from an existing database with inspectdb. It was working fine until yesterday I removed the djang
I want to be able to create as many records as a user wants for a database table in a single form. For example, there will be some inputs for the data required for a record and at the end of the line
I\'m trying to do the equ开发者_开发百科ivalent of this SQL query: \"SELECT * FROM something WHERE ((something >= something AND something <= something) AND(something >= something AND somethi
I just need a confirmation for my understanding on Django\'s implementation of ON DELETE CASCADE from you Django experts.
I am currently using Django and my model is like this. class City(models.Model): name = models.CharField(max_length=255, primary_key=True)
I\'ve been evaluating django and wondered if the following is possible. I\'ve already looked at the regular multiple database docs so please don\'t point me to that because this use case isn\'t mentio