I am a beginner to Python/coding/web development, and am running into and error during deployment process.
I coded a matchmaking app using Python/Django. I am attempting to deploy this app using Heroku. I followed all the directions in terms of…
In my django app I've created a model like that:
class Plan_miesieczny_aktualny(models.Model):
id = models.CharField(max_length=30, primary_key=True)
pozycja_planu = models.ForeignKey('Pozycje_planu', to_field='id')
miesiac =…
I have a model, and I'm trying to add a foreignkey field to it.
This is the field definition:
part_of_speech = models.ForeignKey('PartOfSpeech', help_text=_('Translation | part_of_speech | help_text'), verbose_name =…
Is there any way to deal with the migrations ?
I have been working with the version 1.8 of django, where, after doing any change in the models.py, we need to run the following commands -
python manage.py makemigrations
python manage.py…
My team had a project running on Django 1.6 with South and we just upgraded to 1.7. I followed the guide, cleared my old South migrations, ran makemigrations and migrate, and ultimately got my server running so I pushed up the changes to our…
I'm using django on vscode, and typed this on terminal:
(impassion) Subinui-MacBook-Pro:impassion_community subin$ python3 manage.py makemigrations
but can't use makemigrations
got this error message
ModuleNotFoundError: No module named…
I have a problem with creating models in Django.
I want to create new model, so I write code:
class Image(models.Model):
title = models.CharField(max_length=100)
image = models.ImageField()
In the next step, I did python manage.py…
I store all my secrets and database params in the dev.env file.
I have 3 different settings files - base, dev and prod.
There is an SQLite database in base, and I want to connect to Postgres in dev.
So I upload my secrets with the environment…