Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
93 views

AccrediDoc - Multi-tenant Accreditation Management System A comprehensive Django-based multi-tenant accreditation management system designed for healthcare organizations in India. Manage NABL, NABH, ...
Dr BRIJESH PATEL's user avatar
0 votes
0 answers
40 views

I'm working on a multi-tenant Django project using django-tenants with Django 3.2.16. I created an app called journal_nav and initially added it only to TENANT_APPS. Later, I moved it to SHARED_APPS ...
Chandragupta Borkotoky's user avatar
0 votes
1 answer
79 views

I have created a Django project in my Visual Studio solution. The db.sqlite3 file was also created. There are a few classes in models.py. class Question(models.Model): q_id = models.IntegerField() ...
sukesh's user avatar
  • 2,409
0 votes
0 answers
125 views

I am trying to debug and figure out what the issue is. When trying to search, I just get annoying AI responses which I don't want. Here is my traceback: Traceback (most recent call last): File &...
Angelhappy's user avatar
0 votes
1 answer
79 views

I have 2 apps in my django project customer app trades app Customer app has following tables in models.py customer_table trade_plan_table service_plan_table customer_payments trades app has ...
hanisha nandigam's user avatar
0 votes
2 answers
141 views

I'm working on a Django project, but I'm facing an issue where no tables are being created in my database even after running migrations. Django version:5.1.3 Database:MySQL OS:ubuntu 24.04.1 LTS 1 ...
Adheen Pk's user avatar
0 votes
0 answers
77 views

I am running a Django project inside a Docker container, and I am facing an issue with migrations after adding a new model to models.py. When I try to apply the migrations, the system looks for the ...
Jan Sodomka's user avatar
1 vote
1 answer
51 views

While using Django 5.1, I'm trying to create a GeneratedField which should return True or False depending on which file has been uploaded. The model will accept both image- and video files. I want to ...
kunambi's user avatar
  • 772
0 votes
1 answer
60 views

why django makemigration command creates python based code instead of creating sql commands, Someone please explain from design decision point of view, and what benefits we get from it.
indianwebdevil's user avatar
0 votes
1 answer
131 views

I am making a web app (I am a student and this is my first attempt of building a project) using stack: Django, Vue and MySQL. Attaching link to git repo here: https://github.com/yeshapan/...
Yesha Pandya's user avatar
1 vote
1 answer
53 views

python manage.py showmigrations shows: mainapp [X] 0001_initial ... [X] 0240_employer_data [X] 0241_person_metadata [X] 0242_personemployer_employerworkplace [X] ...
Nils's user avatar
  • 410
0 votes
1 answer
81 views

I’m trying to connect my PostgreSQL-17 database to a Django project running in a Conda environment on Ubuntu-24. However, when I run python manage.py makemigrations, I keep encountering the following ...
NOURA's user avatar
  • 11
1 vote
2 answers
246 views

Let's say I have a model: class MyModel(models.Model): ... field_no_need_anymore = Charfield(...) I want to remove field_no_need_anymore, but I don't want to apply changes to the database ...
Rm1's user avatar
  • 73
0 votes
2 answers
98 views

I had an issue with migrations in a project I'm working on, a migration was deleted manually and the sync was ruined, I tried a lot of solutions but nothing worked and at the end I decided to backup ...
Mazen Mamdouh's user avatar
0 votes
1 answer
76 views

Here’s a brief overview of what I’ve accomplished so far, to ensure we're all on the same page. Please note that I’m still new to Django, so my approach might not be perfect or even close to what it ...
ILIKETOLEARN's user avatar
1 vote
2 answers
102 views

I am trying to use Django manage.py squashmigrations to reduce the number of migration files and migration operations, after years of accumulation. Django should supposedly optimize the migrations and ...
HTE's user avatar
  • 383
0 votes
2 answers
114 views

When attempting to deploy to the Dokku testing environment with a Postgres database, I encounter an error while the Procfile is being utilized. -----> Releasing aha-website-test... -----> ...
seanpaulharsevoort's user avatar
1 vote
0 answers
63 views

When we change the type of a column in Django and run a migration, it does not finish if any view is using the column. However, when we remove a column from the table and run a migration, Django does ...
Gabriel Wade's user avatar
0 votes
0 answers
61 views

I'm working on a Django + React project, and we use GitHub Actions for CI/CD. The typical workflow when a pull request is raised involves running Selenium tests, which require a large dataset in the ...
Harish Birlangi's user avatar
0 votes
2 answers
64 views

Occasionally when running manage makemigrations in my Django project, I end up with an unexpected migrations.AlterField() entry in my migrations file. I am aware that these result from Django seeing ...
Overgrown's user avatar
0 votes
0 answers
49 views

I'm working with data migrations in django, and at some point, I'll have to run migrations.RunPython. The point is that I wish I could execute migrations operations(AddField, AlterField) under certain ...
user3347778's user avatar
0 votes
1 answer
105 views

I'm trying to reset my migrations and start off fresh but I'm getting this really strange issue I can't seem to fix. I started off by deleting the Migrations folder and Deleting every table in ...
Dev00's user avatar
  • 1
0 votes
1 answer
42 views

I write code on my local machine and then use github to transfer the code to my Amazon AWS EC2 server, I am using AWS Route53 to connect to a domain name and AWS RDS for database (started using ...
Sudhanshu Gupta's user avatar
1 vote
1 answer
43 views

I'm in the process of merging two Django projects however they have conflicting app names. For example, the conflicting app names are customer, order, and product which are categorized into ecommerce ...
bdoubleu's user avatar
  • 6,147
0 votes
0 answers
59 views

I have been working on a Django app for a client. throughout development there have been data migrations (data insertions/modifications, not structural changes) that have been specific to the client. ...
TBaby's user avatar
  • 23
1 vote
1 answer
30 views

Which version of Django can be implemented as different texts have implemented different versions. I tried each type of version of Django but could not succeed fully in implementing a small project &...
Dr Rai Sachindra Prasad's user avatar
0 votes
0 answers
85 views

I have an application where I need to create a new database and run migrations to create tables. Here is my current implementation: def create_database(db_name): with connection.cursor() as cursor:...
Zeshan's user avatar
  • 178
0 votes
1 answer
330 views

I am working on a django project. After some time, I wanted to refactor the code. I wanted to create a new app and move some of my models to that app. Here's an example: Suppose I have an app named ...
Ashutosh Chapagain's user avatar
-1 votes
1 answer
97 views

When I run python manage.py migrate, I encounter the following error: File "/home/seyedbet/virtualenv/WanderSight/3.9/lib/python3.9/site-packages/django/utils/functional.py", line 57, in ...
nima_ shadloo's user avatar
0 votes
1 answer
37 views

I have written patches for a Django project that take forever to be integrated upstream (or may not even be). Due to this, I have local migrations that I need to maintain. However, due to the way the ...
Perdu's user avatar
  • 294
0 votes
0 answers
30 views

I am working on a Django API and I'd like to add a bit of CI/CD to it. It dockerize my app with FROM python:3.12 WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements....
Cédric Leroy's user avatar
1 vote
0 answers
34 views

I am encountering an issue in my Django project where new migration files are not being created despite all migrations being applied. I have checked several possible causes, including database schema ...
Dishant Shah's user avatar
0 votes
1 answer
92 views

I am managing a django app built by third parts. I have configured in settings.py the connection to a new db 'default': { # changed 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': ...
Tms91's user avatar
  • 4,409
0 votes
1 answer
504 views

I got above error while running the makemiragtions command. So I delete/renamed the existing migration folder and rerun the makemirations command it's is migrated but when I run the migrate I got same ...
Ramakrishna's user avatar
0 votes
1 answer
74 views

i used from postgresql for my django rest project. but when i want to migrate my project i got some error for character varying like below (myenv) root@srv524469:~/django-paynans# python manage.py ...
shayan's user avatar
  • 1
0 votes
0 answers
110 views

This question is (surprisingly) unlike similar ones, which ask about doing this dynamically, or ask how to do it in the first place. This question regards those suggestions not working as expected. ...
Audiopolis's user avatar
0 votes
0 answers
196 views

I am using Django Framework in Python with MySQL Database For adding a table in the database, I create a class in models.py and then run python manage.py makemigrations. This creates the migration ...
Charmi's user avatar
  • 123
0 votes
1 answer
24 views

I currently have a model class Car(models.Model): name = models.CharField(max_length=20) manufacturer_name = models.CharField(max_length=20) manufacturer_url = models.URLField() Now I ...
tommueller's user avatar
  • 2,526
-1 votes
1 answer
61 views

In my installable Django application, I have a class called Timer which I intend for users to implement: class Timer(models.Model): class Meta: abstract = True project = models.ForeignKey(...
Olexiy Kutsenko's user avatar
0 votes
0 answers
60 views

django.db.migrations.exceptions.InconsistentMigrationHistory: Migration admin.0001_initial is applied before its dependency userauths.0001_initial on database 'default'. I have tried commenting "...
Shubham Damai's user avatar
1 vote
1 answer
103 views

I made some changes in the models from my apps and then entered makemigrations and migrate in the terminal. PS C:\Users\USER 1\frist project\website> python manage.py makemigrations home No changes ...
Payam.Si.dev's user avatar
1 vote
0 answers
116 views

Description: I'm encountering an issue with Django migrations on a PostgreSQL database. Despite running python manage.py migrate successfully without any errors, the tables are not being created in ...
true_ostik's user avatar
1 vote
2 answers
41 views

i have model as in below from django.db import models from django.contrib.auth.models import AbstractUser class AppUser(AbstractUser): user_department = models.CharField(max_length=100) ...
Mehmet Hikmet's user avatar
0 votes
1 answer
93 views

I changed from python 3.8 to 3.12.2 everything is fine but i am not able to migrate dont know why neither its making migrations. When i do python manage.py make migrations. This issue comes up: File &...
Yousaf Zahid's user avatar
0 votes
0 answers
48 views

I have django app that is connected to MySql database. I have renamed the field in models.py and succesfuly ran the migration. (the name alteration is written in migrations file) I have also manually ...
Vasja Kavcic's user avatar
4 votes
2 answers
338 views

Let's say I have the following model: class Product(models.Model): name = models.CharField(max_length=128) is_retired = models.BooleanField(default=False) I want to remove the is_retired ...
Johnny Metz's user avatar
  • 5,867
0 votes
1 answer
90 views

I have these 10 tables in Django (6-Auth tables and 4 Django tables) I am not using these files in my production project, I thought of removing them but read that its not a good practice to remove. I ...
likith reddy mekala's user avatar
0 votes
2 answers
1k views

I have a project with two databases: PostgreSQL and Clickhouse. To interact with Clickhouse, I use the django-clickhouse-backend lib. For a long time, I did not use the created migrations for this ...
lev_k's user avatar
  • 35
1 vote
1 answer
279 views

I am currently refactoring a django project. It had a few apps with unrelated models (ex: customer in the product app) that I decided to consolidate into a single core app. I use the third method ...
Tardig's user avatar
  • 57
1 vote
1 answer
94 views

In django, by default, if you have a structure like this app ├── migrations └── models └ example The generated name of your model will be app_example when executing the command makemigrations. ...
Lirit's user avatar
  • 25

1
2 3 4 5
31