When i try to run makemigrations command in django it gave me an error:
TypeError: _getfullpathname: path should be string, bytes or os.PathLike, not list
Help me to resolve this issue.
This is my static root and media roots all stuffs:
#…
I'm just starting to learn about python and django altogether.
Im having the error when I try run makemigrations command.
added_by = models.ForeignObject(User, default=1, verbose_name="ItemCategory", on_delete=models.CASCADE)
I have researched…
(fcdjango_venv) Subinui-MacBook-Pro:Impassion_community subin$ python3 manage.py makemigrations
No changes detected
I'm learning Basic Django right now, and was following the lecture, but got problem.
I followed the lecture, so first I typed the…
After creating app1 and adding it in INSTALLED_APPS, I wrote my model in models.py including a table with two columns, cod & name, then typed in Terminal:
python manage.py makemigrations app1
and
python migrate
It worked, but the only thing…
I have used DB routers for apps, but after running migrate command tables are created in default DB, why??
model code:
from django.db import models
# Create your models here.
class Employee(models.Model):
Employee_id =…
I have a django 2.0.6 project running on python 3.6. I'd like to create a manage.py command that seeds the project database with initial data using faker and factory_boy. I have the subcommand working and printing to stdout. When I try to import the…
Sorry I'm quite new to Django and Python
Anyway, I'm running python 2.7 on mac and trying to create my first project here.
I get an error when trying the shell command python manage.py makemigrations.
I did the upgrade of the pip previously pip2…
I have Django running in a Docker container. The CMD of my Docker file simply runs a script, launch.sh, which inter alia has the following commands:
python manage.py makemigrations --no-input --verbosity 1
python manage.py migrate --no-input…
THIS IS MY MODEL FILE
from django.db import models
class Donor(models.Model):
Donor_name = models.CharField(max_length=150),
Donor_status = models.IntegerField(),
Donor_city = models.CharField(max_length=50),
Donor_group =…
I am stumped. I have a custom model field class that looks for two arguments: app_name and file_dir.
In my model definition I have this:
files = MultiFileUploadAndViewer(app_name = getAppName(), file_dir='RequestedFiles', blank=True)
getAppName()…
I am using Mezzanine (Django 1.10) so I can't see a "db.sqlite3"
I searched similar questions as mine and most of the solutions provided were not effective.
I created a new model and later decided to add a new field. I did "python manage.py…
I am trying to link the model Post to the model Topic via a foreign key. When I run the makemigrations command, it raises an import error, and says that the name 'Topic' is not defined. What could be the cause of this? It certainly seems to be…
I tried to migrate but I got an error.
I did :
python ./manage.py makemigrations teckno
and
python ./manage.py migrate --fake-initial
django.db.utils.OperationalError: index teckno_thematique_ad621c37
already exists