Re: Meta indexes and makemigrations

2024-12-05 Thread RANGA BHARATH JINKA
e stored >>in a CharField, ensure "42" matches the expected format. >> >> -- >> 2. *Potential Issue with Makemigrations* >> >> Even if the code is correct, makemigrations might not detect the change >> in the Meta class b

Re: Meta indexes and makemigrations

2024-12-05 Thread mccc
owever, > ensure that the value and type match your database schema. > >- Example: If channel_type is actually an integer-like value stored in >a CharField, ensure "42" matches the expected format. > > ------ > 2. *Potential Issue with

Re: Meta indexes and makemigrations

2024-12-05 Thread RANGA BHARATH JINKA
ensure that the value and type match your database schema. - Example: If channel_type is actually an integer-like value stored in a CharField, ensure "42" matches the expected format. -- 2. *Potential Issue with Makemigrations* Even if the code is correct,

Meta indexes and makemigrations

2024-12-05 Thread mccc
) class Meta: indexes = [ models.Index( name="ch_last_seen_date", fields=["last_seen_date"], condition=models.Q(channel_type="42"), ), ] The problem is that makemigrations doesn't

Re: problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread ASAMOAH EMMANUEL
from django.urls import path from . import views urlpatterns = [ path('login/', views.login_user, name='login'), path('logout/', views.logout_request, name='logout'), path('register/', views.registration, name='registration'), ] On Wed, Apr 17, 2024 at 5:16 PM Ana Jiménez wrote: > t

Re: problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread Ana Jiménez
the file that says i have wrong is this one: djangoapp/urls.py # Uncomment the required imports before adding the code from django.shortcuts import render from django.http import HttpResponseRedirect, HttpResponse from django.contrib.auth.models import User from django.shortcuts import get_object

Re: problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread ASAMOAH EMMANUEL
check your urls.py file to make sure you haven't imported circularly. or better still, paste your urls.py here On Wed, Apr 17, 2024 at 4:47 PM Ana Jiménez wrote: > hi guys, so i'm doing a project and there's a part that says i need to do > the migrations but when i do that i get this error > "Tr

problem when i perform " python3 manage.py makemigrations"

2024-04-17 Thread Ana Jiménez
hi guys, so i'm doing a project and there's a part that says i need to do the migrations but when i do that i get this error "Traceback (most recent call last): File "/home/project/xrwvm-fullstack_developer_capstone/server/djangoenv/lib/python3.8/site-packages/django/urls/resolvers.py", line

makemigrations app shows no installed app available

2024-01-03 Thread sonam yadav
hi everyone, I am tring to do makemigration Myapp, after creating a project 'Sonam' and app 'Myapp' but output shows No installed app with label 'Myapp' Here is the Directories Structure (.venv) PS C:\Users\dell\p3\Sonam> py manage.py makemigrations Myapp No

Re: problem bd python manage.py makemigrations & migrate

2023-06-20 Thread Issa N'golo Coulibaly
First created an application and then in the settings.py set the constant AUTH_USER_MODEL = "my_app_name.User" and do makemigrations then migrate for the very first time. your custom User table does not exist in the database that's why the exception is thrown. On Sun, 11 Jun 2023,

Re: problem bd python manage.py makemigrations & migrate

2023-06-20 Thread Alexandru - Gabriel Ionicescu
lders and then re-do the process of makemigrations and migrate. This will > play you the magic > > On Sun, Jun 11, 2023, 22:12 Bhuvnesh Sharma wrote: > >> Hi, >> This seems a bit unexpected behaviour,could you tell us all the steps >> you followed from the beginn

Re: problem bd python manage.py makemigrations & migrate

2023-06-11 Thread Bradie Poa
This is mostly cause be mismatch of migrations. In the migrations folder. If deleting the db fails to work for you. You need to delete or migrations folders and then re-do the process of makemigrations and migrate. This will play you the magic On Sun, Jun 11, 2023, 22:12 Bhuvnesh Sharma wrote

Re: problem bd python manage.py makemigrations & migrate

2023-06-11 Thread Bradie Poa
Delete the delete the database, makemigrations and then migrate. On Sun, Jun 11, 2023, 22:12 Bhuvnesh Sharma wrote: > Hi, > This seems a bit unexpected behaviour,could you tell us all the steps > you followed from the beginning and at what step is it giving error? > > On Mon, J

Re: problem bd python manage.py makemigrations & migrate

2023-06-11 Thread Bhuvnesh Sharma
Hi, This seems a bit unexpected behaviour,could you tell us all the steps you followed from the beginning and at what step is it giving error? On Mon, Jun 12, 2023, 12:30 AM Alexandru - Gabriel Ionicescu < ionicescu.alexandrugabr...@gmail.com> wrote: > hello, I have a project and I use django.

problem bd python manage.py makemigrations & migrate

2023-06-11 Thread Alexandru - Gabriel Ionicescu
hello, I have a project and I use django. I'm trying to do my migrations for bd but I can't do them. it gives me the error django.db.utils.OperationalError: no such table: user_user. I also made a User class (AbstractUser) and it still doesn't work. What can I do? I mention that in settings.py I

Re: makemigrations

2022-09-19 Thread Joel Wembo
ting models after run makemigrations. > > > This is problem :-It is impossible to add a non-nullable field 'logo' to > jobdetails without specifying a default. This is because the database needs > something to populate existing rows. > Please select a fix: > 1) Pro

Re: makemigrations

2022-09-16 Thread Alisher Shamuratov
after run makemigrations. > > > This is problem :-It is impossible to add a non-nullable field 'logo' to > jobdetails without specifying a default. This is because the database needs > something to populate existing rows. > Please select a fix: > 1) Provide a on

Re: makemigrations

2022-09-15 Thread rahul sharma
t;> >> On Thu, Sep 15, 2022 at 8:38 PM shiva singh >> wrote: >> >>> Hello I am new in Django users group. I am using Django and faching a >>> problem when i do any changes in existing models after run makemigrations. >>> >>> >>>

Re: makemigrations

2022-09-15 Thread shiva singh
ew in Django users group. I am using Django and faching a >> problem when i do any changes in existing models after run makemigrations. >> >> >> This is problem :-It is impossible to add a non-nullable field 'logo' to >> jobdetails without specifying a defau

Re: makemigrations

2022-09-15 Thread Fortune Osho
In the new added field “logo” set default = None or specify a default value On Thu, Sep 15, 2022 at 8:38 PM shiva singh wrote: > Hello I am new in Django users group. I am using Django and faching a > problem when i do any changes in existing models after run makemigrations. > &g

Re: makemigrations

2022-09-15 Thread Hafiza Nafeesa Asif
t; Hello I am new in Django users group. I am using Django and faching a >>> problem when i do any changes in existing models after run makemigrations. >>> >>> >>> This is problem :-It is impossible to add a non-nullable field 'logo' to >>> j

Re: makemigrations

2022-09-15 Thread Hafiza Nafeesa Asif
default=True On Fri, 16 Sep 2022, 12:51 am Adebileje Nurudeen, wrote: > Select option as 1 > > On Thu, Sep 15, 2022, 8:38 PM shiva singh >> Hello I am new in Django users group. I am using Django and faching a >> problem when i do any changes in existing models afte

Re: makemigrations

2022-09-15 Thread Adebileje Nurudeen
Select option as 1 On Thu, Sep 15, 2022, 8:38 PM shiva singh Hello I am new in Django users group. I am using Django and faching a > problem when i do any changes in existing models after run makemigrations. > > > This is problem :-It is impossible to add a non-nullable fie

makemigrations

2022-09-15 Thread shiva singh
Hello I am new in Django users group. I am using Django and faching a problem when i do any changes in existing models after run makemigrations. This is problem :-It is impossible to add a non-nullable field 'logo' to jobdetails without specifying a default. This is because the data

Re: Let makemigrations know a data migration is required ?

2022-08-12 Thread Bayo Izekor
y, 11 August 2022 at 22:42:42 UTC+1 adnans...@gmail.com wrote: > >> When we create a modal or change a modal than we use these two commands >> python manage.py makemigrations here our table are created and to insert >> these table into database this command is necessary python

Re: Let makemigrations know a data migration is required ?

2022-08-12 Thread Gav O'Connor
nds > python manage.py makemigrations here our table are created and to insert > these table into database this command is necessary python manage.py > migrate. I hope you will understand this. > > On Fri, 12 Aug 2022, 12:56 am Stu.Axon, wrote: > >> I've got a tab

Re: Let makemigrations know a data migration is required ?

2022-08-12 Thread Durai pandian
with the data > migration in it manually ? > > I was thinking there might be some signal or something I could raise that > would tell django a migration was required. > > The I was thinking thinking I could hook into makemigrations to and > generate the data migration there somehow. &

Re: Let makemigrations know a data migration is required ?

2022-08-12 Thread Stu.Axon
Are you suggesting I should have my code generate the file with the data migration in it manually ? I was thinking there might be some signal or something I could raise that would tell django a migration was required. The I was thinking thinking I could hook into makemigrations to and

Re: Let makemigrations know a data migration is required ?

2022-08-12 Thread Durai pandian
ese two commands > python manage.py makemigrations here our table are created and to insert > these table into database this command is necessary python manage.py > migrate. I hope you will understand this. > > On Fri, 12 Aug 2022, 12:56 am Stu.Axon, wrote: > >> I'v

Re: Let makemigrations know a data migration is required ?

2022-08-11 Thread M Adnan
When we create a modal or change a modal than we use these two commands python manage.py makemigrations here our table are created and to insert these table into database this command is necessary python manage.py migrate. I hope you will understand this. On Fri, 12 Aug 2022, 12:56 am Stu.Axon

Re: Let makemigrations know a data migration is required ?

2022-08-11 Thread fawemimo olawale
On Thu, 11 Aug 2022 at 20:56, Stu.Axon wrote: > I've got a table that has a list of classnames (that aren't models) that > are subclasses of a class. > > I'd like to hook into makemigrations and generate data migrations to add / > remove data as required - any i

Let makemigrations know a data migration is required ?

2022-08-11 Thread Stu.Axon
I've got a table that has a list of classnames (that aren't models) that are subclasses of a class. I'd like to hook into makemigrations and generate data migrations to add / remove data as required - any idea the best way I can do this ? -- You received this message

Re: missing field after makemigrations

2022-06-20 Thread andrew snyder
> Hi, > The reason why "rank" is missing is because you didn't use round brackets > "(" ")". It should be "models.SmallIntegerField()" not > "models.SmallIntegerField". > > On Monday, June 20, 2022 at 7:12:58 PM UTC+5 a..

Re: missing field after makemigrations

2022-06-20 Thread Moheb Mithani
rote: > There is something in my models.py that breaks makemigrations. > > The field "rank" is missing from "CharacterSkill". Also, if I uncomment > any of the three classes that refer to "Character" the "game" and "player" > fields become

missing field after makemigrations

2022-06-20 Thread andrew snyder
There is something in my models.py that breaks makemigrations. The field "rank" is missing from "CharacterSkill". Also, if I uncomment any of the three classes that refer to "Character" the "game" and "player" fields become separate items in t

Re: Django 3.1 Makemigrations fails with FilePathField but succeeds with CharField

2021-06-27 Thread David Nugent
s/migrations/#squashing-migrations> for details. Experience suggests that it isn't migrations that accounts for a big share of test startup time - it's the test discovery which takes so long... > I deteted and re-created my app Postgres database. > I deleted all files (but _

Re: Django 3.1 Makemigrations fails with FilePathField but succeeds with CharField

2021-06-22 Thread Peter of the Norse
(but __init__.py) in migrations directory. > I typed "python manage.py makemigrations --verbosity 3". > > 1. Latest makemigrations failed with: > File > "/home/perenip/venv-flexcore/lib/python3.7/site-packages/django/db/migrations/serializer.py", > line

Re: Makemigrations/migrate in existing database

2021-06-08 Thread Gabriel Araya Garcia
t. > > I ran py manage.py inspetdb > Models.py and populated my models.py file . > I also don't want my model to alter my database. I just want it for data > retrieval. > > *Should I definitely run migrate/makemigrations?* > > *After inspectdb should i apply makemigrations o

Re: Makemigrations/migrate in existing database

2021-06-08 Thread Omkar D
``` python manage.py makemigrations python manage.py migrate --fake ``` On Friday, June 4, 2021 at 7:21:03 PM UTC+5:30 Mahendra Yadav wrote: > I think surely run makemigrations and migrate > > Mahendra Yadav > > On Fri, 4 Jun 2021, 18:28 Ankita Sharma, wrote: > >> He

Re: Makemigrations and migrate for already existing database

2021-06-04 Thread sourav panja
alues/bytes > > On Fri, 4 Jun, 2021, 6:28 pm Ankita Sharma, > wrote: > >> Hello All >> Hope all are doing great. >> The issue is as follows: >> I have already existing 2 MSSql databases from which I have migrated >> required tables into models.py >&

Re: Makemigrations and migrate for already existing database

2021-06-04 Thread OSA-33 SyCS Atik Rangnekar
w I am not able to do makemigrations on one of them. Below is the error: > > from records.models.transactions_east import AdgSrtransactionsEast > ValueError: source code string cannot contain null bytes > > Please help me here > > Thanks in advance > > -- > You receive

Re: Makemigrations and migrate for already existing database

2021-06-04 Thread Mahendra
am not able to do makemigrations on one of them. Below is the error: > > from records.models.transactions_east import AdgSrtransactionsEast > ValueError: source code string cannot contain null bytes > > Please help me here > > Thanks in advance > > -- > You received this

Re: Makemigrations/migrate in existing database

2021-06-04 Thread Mahendra
I think surely run makemigrations and migrate Mahendra Yadav On Fri, 4 Jun 2021, 18:28 Ankita Sharma, wrote: > Hello Team > Hope all are doing great > > I have a database in microsoft sql server. I created tables and views in > it. > > I ran py manage.py inspetdb > Mo

Makemigrations and migrate for already existing database

2021-06-04 Thread Ankita Sharma
Hello All Hope all are doing great. The issue is as follows: I have already existing 2 MSSql databases from which I have migrated required tables into models.py Now I am not able to do makemigrations on one of them. Below is the error: from records.models.transactions_east import

Makemigrations/migrate in existing database

2021-06-04 Thread Ankita Sharma
Should I definitely run migrate/makemigrations?* *After inspectdb should i apply makemigrations on my app or is just migrate enough?* And also what are the points to remember while using inspectdb on an existing database. Thanks in advance -- You received this message because you are subscribed to th

Django 3.1 Makemigrations fails with FilePathField but succeeds with CharField

2021-03-18 Thread Olivier
Converting path from Pathlib to str, allowed makemigrations to pass, at the cost of having a single test to rewrite class Firmware(models.Model): filepath = models.FilePathField(path=str(settings.VENDOR_STATIC_ROOT), match=settings.FIRMWARE_REGEX, recursive=True) display_name

Django 3.1 Makemigrations fails with FilePathField but succeeds with CharField

2021-03-18 Thread Olivier
time, I'm trying to erase all current > migrations and restart from scratch. > > I deteted and re-created my app Postgres database. > I deleted all files (but __init__.py) in migrations directory. > I typed "python manage.py makemigrations --verbosity 3". > > 1. Latest

Django 3.1 Makemigrations fails with FilePathField but succeeds with CharField

2021-03-18 Thread Olivier
y. I typed "python manage.py makemigrations --verbosity 3". 1. Latest makemigrations failed with: File "/home/perenip/venv-flexcore/lib/python3.7/site-packages/django/db/migrations/serializer.py", line 339, in serializer_factory "topics/migrations/#migration-seri

Re: ./manage makemigrations and ./manage migrate don't work

2020-06-20 Thread Jatin Agrawal
just remove managed=False and it should work fine. Refer the django docs for more details: https://docs.djangoproject.com/en/2.2/ref/models/options/ On Friday, June 19, 2020 at 12:10:57 PM UTC+5:30, Mohsen Pahlevanzadeh wrote: > > I run : > ./manage makemigrations and ./manage migrate with

./manage makemigrations and ./manage migrate don't work

2020-06-18 Thread Mohsen Pahlevanzadeh
I run : ./manage makemigrations and ./manage migrate with the following output: """"""""""""""""""""""""""""""""""""&

Re: Question about makemigrations

2019-06-21 Thread Rob W
"Migrate is basically the old syncdb but it takes into account all the migrations made by makemigrations. You should run the command -migrate- after adding a new app under the INSTALLED APPS section in the settings.py file in order to synchronize the database state with your current s

Re: Question about makemigrations

2019-06-21 Thread Martin Kong
Hello I make python manage.py migrate instead,but that should be the next step tho Regards Martin On Fri, 21 Jun 2019 at 7:45 PM, Sebastian Jung wrote: > Hello, > > Do you make python3 manage.py migrate after makemigrations? > > Regards > > Martin Kong schrieb am Fr.,

Re: Question about makemigrations

2019-06-21 Thread Sebastian Jung
Hello, Do you make python3 manage.py migrate after makemigrations? Regards Martin Kong schrieb am Fr., 21. Juni 2019, 13:25: > Hello > I am new to django, and i am following the tutorial provide in github, > from the tutorial. > The tutorial I am following is > https://gi

Question about makemigrations

2019-06-21 Thread Martin Kong
makemigrations polls You should see something similar to the following: .. code-block:: text Migrations for 'polls': polls/migrations/0001_initial.py: - Create model Choice - Create model Question - Add field question to choice However, after following the steps I'm missing the last sent

Re: Newbie question : running the makemigrations command in the terminal

2019-03-30 Thread kamibarut609
your app, and apps.py file > ensure that the name of the app is 'munichlivin_app' and name of the class > in apps.py is 'MunichLivingConfig' > > On Thursday, March 28, 2019 at 9:05:46 PM UTC+5:30, kamiba...@gmail.com > wrote: >> >> Hello, >> &g

Re: Newbie question : running the makemigrations command in the terminal

2019-03-29 Thread Krishna Tulsyan
o, > > (Newbie here): I am trying to run the makemigrations icommand in my > terminal. You will find here below the three relevant files, the third one > showing the errors displayed in > the terminal. > > My settings.py file: > > > https://pastebin.com/raw/xLpX0Zf

Re: Newbie question : running the makemigrations command in the terminal

2019-03-28 Thread jgibson
ere): I am trying to run the makemigrations icommand in my > terminal. You will find here below the three relevant files, the third one > showing the errors displayed in > the terminal. > > My settings.py file: > > > https://pastebin.com/raw/xLpX0Zfg > > >

Re: Newbie question : running the makemigrations command in the terminal

2019-03-28 Thread kamibarut609
On Thursday, 28 March 2019 16:35:46 UTC+1, kamiba...@gmail.com wrote: > > Hello, > > (Newbie here): I am trying to run the makemigrations icommand in my > terminal. You will find here below the three relevant files, the third one > showing the errors displayed in >

Newbie question : running the makemigrations command in the terminal

2019-03-28 Thread kamibarut609
Hello, (Newbie here): I am trying to run the makemigrations icommand in my terminal. You will find here below the three relevant files, the third one showing the errors displayed in the terminal. My settings.py file: https://pastebin.com/raw/xLpX0Zfg My models.py file: https

Re: my first post: makemigrations polls App 'polls' could not be found. Is it in INSTALLED_APPS?

2019-03-10 Thread Varun Sagar
editing polls/.models.py, and updating mysite/ > settings.py/installed_apps > With ‘polls.apps.PollsConfig’, and changing the time_zone, > Ran the python manage.py makemigrations polls > Results: " App 'polls' could not be found. Is it in INSTALLED_APPS? "

my first post: makemigrations polls App 'polls' could not be found. Is it in INSTALLED_APPS?

2019-03-09 Thread maior marso
https://docs.djangoproject.com/en/2.1/intro/tutorial02/ Activating Models After editing polls/.models.py, and updating mysite/ settings.py/installed_apps With ‘polls.apps.PollsConfig’, and changing the time_zone, Ran the python manage.py makemigrations polls Results: " App 'polls

Re: columns were not added/created to my database table (postgresql) after makemigrations/migrate

2019-02-05 Thread Atsunori Kaneshige
min page and re-load admin.site.register(List) Why new columns (or in other words, new fields) do not show up in my admin site? Even though I did makemigrations/migrate. Thank you for your help! Nori On Tuesday, February 5, 2019 at 9:58:30 PM UTC-5, Nitin Kalmaste wrote: > > You need to ad

Re: columns were not added/created to my database table (postgresql) after makemigrations/migrate

2019-02-05 Thread Nitin Kalmaste
;ID')), > ('item', models.CharField(max_length=200)), > ('completed', models.BooleanField(default=False)), > ], > ), > ] > > and after makemigrations/migrate, the app was working no problem. >

columns were not added/created to my database table (postgresql) after makemigrations/migrate

2019-02-05 Thread Atsunori Kaneshige
m', models.CharField(max_length=200)), ('completed', models.BooleanField(default=False)), ], ), ] and after makemigrations/migrate, the app was working no problem. *Then, I wanted to try adding two more fields.* #new models.py class List(models.Model):

Re: Order of migration dependencies when running makemigrations from scratch

2018-12-10 Thread Dakota Hawkins
nistic. It should be >>> a simple matter of using sorted in MigrationWriter.as_string[0]. >>> >>> Cheers, >>> Simon >>> >>> [0] >>> https://github.com/django/django/blob/79c196cfb287893aadc6b0e74603ffde1512170e/django/db/migrations/wr

Re: Order of migration dependencies when running makemigrations from scratch

2018-12-09 Thread Simon Charette
rted in MigrationWriter.as_string[0]. >> >> Cheers, >> Simon >> >> [0] >> https://github.com/django/django/blob/79c196cfb287893aadc6b0e74603ffde1512170e/django/db/migrations/writer.py#L156-L164 >> >> Le vendredi 7 décembre 2018 00:51:58 UTC-5, Dakot

Re: Order of migration dependencies when running makemigrations from scratch

2018-12-09 Thread Dakota Hawkins
TC-5, Dakota Hawkins a écrit : >> >> We haven't really deployed yet, so generally to make migrations we're >> deleting existing migration files and re-running makemigrations. >> >> We have two apps, and one of them depends on the other as well as >> djan

Re: Order of migration dependencies when running makemigrations from scratch

2018-12-07 Thread Simon Charette
really deployed yet, so generally to make migrations we're > deleting existing migration files and re-running makemigrations. > > We have two apps, and one of them depends on the other as well as > django.contrib.auth. In that app's migrations the dependencies often s

Order of migration dependencies when running makemigrations from scratch

2018-12-06 Thread Dakota Hawkins
We haven't really deployed yet, so generally to make migrations we're deleting existing migration files and re-running makemigrations. We have two apps, and one of them depends on the other as well as django.contrib.auth. In that app's migrations the dependencies often swap

Re: makemigrations makes migration even if no changes in model

2018-11-13 Thread Michał Redmerski
146b2945c > > > > After every use of (no matter if there changes in any models) > > > > python manage.py makemigrations > > > > I've got such result > > > > - Alter field stage on record > > - Alter field stage on stagesfetch > > >

Re: makemigrations makes migration even if no changes in model

2018-11-10 Thread Tim Graham
ello! > > All issues with this I googled, are with the opposite problem. > > I have models: Record, Stage, StageFetch > here is my code: > https://gist.github.com/redmeros/bd70481cae2e4471eee0501146b2945c > > After every use of (no matter if there changes in any models)

makemigrations makes migration even if no changes in model

2018-11-09 Thread Michał Redmerski
Hello! All issues with this I googled, are with the opposite problem. I have models: Record, Stage, StageFetch here is my code: https://gist.github.com/redmeros/bd70481cae2e4471eee0501146b2945c After every use of (no matter if there changes in any models) python manage.py makemigrations I&#x

Re: Error when I use python manage.py makemigrations polls

2018-11-02 Thread Dewansh Rawat
Instead of polls.app.appconfig try writing polls -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group

Re: Error when I use python manage.py makemigrations polls

2018-11-01 Thread amit pant
It's seems you could not add app on settings.py INSTALLED APPS list. you should firstly add there then you can do makemigrations On Fri, Nov 2, 2018 at 6:57 AM ALLAN NJOROGE wrote: > Hey, I am a newbie in Django and am trying to learn by following the > official documentation, I

Re: Error when I use python manage.py makemigrations polls

2018-11-01 Thread ALLAN NJOROGE
Thanks let me do that On Thu, Nov 1, 2018 at 6:58 PM Dewansh Rawat wrote: > Hey there! > Can you please host you're code on GitHub or gist? It becomes quite easier > to debug then. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To uns

Error when I use python manage.py makemigrations polls

2018-11-01 Thread Dewansh Rawat
PS, also try this out, if it works out for you... https://stackoverflow.com/questions/17931380/attributeerror-tuple-object-has-no-attribute-startswith -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop recei

Error when I use python manage.py makemigrations polls

2018-11-01 Thread Dewansh Rawat
Hey there! Can you please host you're code on GitHub or gist? It becomes quite easier to debug then. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-user

Error when I use python manage.py makemigrations polls

2018-11-01 Thread Dewansh Rawat
PS, also try this link, if it works out for you... https://stackoverflow.com/questions/17931380/attributeerror-tuple-object-has-no-attribute-startswith -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rece

Re: Error when I use python manage.py makemigrations polls

2018-11-01 Thread M Hashmi
> have followed every step but keeps getting this error when I use python > manage.py makemigrations polls, below is my code attached, please help. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe

Re: Possible bug in makemigrations

2018-09-12 Thread Simon Charette
06:29:30 UTC-4, Michel van Leeuwen a écrit : > > Hi all, > > I found out a possible bug in the django makemigrations (i am not sure > though) in django 1.11.15 (no time to test this will happen in django 2.x > as well). > > When deleting a field that's also in th

Possible bug in makemigrations

2018-09-12 Thread Michel van Leeuwen
Hi all, I found out a possible bug in the django makemigrations (i am not sure though) in django 1.11.15 (no time to test this will happen in django 2.x as well). When deleting a field that's also in the model meta index_together the migration created by makemigrations gave an error. I

Re: 'makemigrations --name initial app ' problem. How to solve it?

2018-08-15 Thread Vikrant Gupta
Thank you so much ! I got it. On Wednesday, August 15, 2018 at 4:55:00 PM UTC+5:30, Jason wrote: > > that error means you haven't added your django application name to the > INSTALLED_APPS dict in your project settings. > -- You received this message because you are subscribed to the Google Gro

Re: 'makemigrations --name initial app ' problem. How to solve it?

2018-08-15 Thread Vikrant Gupta
How to add the application name to Installed apps dict? On Wednesday, August 15, 2018 at 4:55:00 PM UTC+5:30, Jason wrote: > > that error means you haven't added your django application name to the > INSTALLED_APPS dict in your project settings. > -- You received this message because you are su

Re: 'makemigrations --name initial app ' problem. How to solve it?

2018-08-15 Thread Jason
that error means you haven't added your django application name to the INSTALLED_APPS dict in your project settings. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email

'makemigrations --name initial app ' problem. How to solve it?

2018-08-15 Thread Vikrant Gupta
I'm using Django with pymysql. Having troubles in makemigrations in terminal. I did right_click on the project name-> open in Terminal-> Type "python manage.py makemigrations --name initial app". Then it showed me the error. I attached the screenshot of the error. How can I

Re: django makemigrations not working

2018-05-06 Thread Bernard Letourmy
Hello, If you've got "No changes detected" on makemigrations, it means it did it job already (in previous run probably) can you list and post the content of you migrations folders ? then if you have errors on makemigrations it would help helping you if you would post the ac

Re: django makemigrations not working

2018-05-05 Thread Gerald Brown
all migrations directories and when I run ./manage.py makemigrations I get the message "No changes detected". I am using Django 2.04 with Python 3.5. Any ideas why this is happening? Thanks. -- You received this message because you are subscribed to the Google Groups "Django users&quo

Re: django makemigrations not working

2018-05-05 Thread Ruhia gr
database should > also be removed. I am not quite sure about it > > > > 在 2018年5月5日,下午6:34,Gerald Brown 写道: > > I have dropped my database, deleted all migrations directories and when I > run ./manage.py makemigrations I get the message "No changes detected".

Re: django makemigrations not working

2018-05-05 Thread Zhenning Lang
Maybe the contents of table “django_migrations" in you database should also be removed. I am not quite sure about it > 在 2018年5月5日,下午6:34,Gerald Brown 写道: > > I have dropped my database, deleted all migrations directories and when I run > ./manage.py makemigrations I ge

Re: django makemigrations not working

2018-05-05 Thread Gerald Brown
Yes. I dropped it and then recreated it. Then ran "makemigrations" & "migrate". Migrate is now giving me a lot of errors. Funny that all of the errors that show up are in lines that contain "**/site-packages/django/**", NOT in any lines of MY code.

django makemigrations not working

2018-05-05 Thread Hervé Edorh
Do you create another database? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to d

django makemigrations not working

2018-05-05 Thread Gerald Brown
I have dropped my database, deleted all migrations directories and when I run ./manage.py makemigrations I get the message "No changes detected". I am using Django 2.04 with Python 3.5. Any ideas why this is happening? Thanks. -- You received this message because you are subscri

Re: I am following the official Django documentation and trying to make the polls app. But when I run the command python manage.py makemigrations polls I get the console error.

2018-04-30 Thread Avitab Ayan Sarmah
Yes I found the error George, I mistakenly typed polss in settings. Now the code is running fine On Tue 1 May, 2018, 1:03 AM George Lubaretsi, wrote: > Looks like you have a typo somewhere. > > Exception says that it can't find a module `polss` while it should be > `polls`. Check your settings a

Re: I am following the official Django documentation and trying to make the polls app. But when I run the command python manage.py makemigrations polls I get the console error.

2018-04-30 Thread George Lubaretsi
Looks like you have a typo somewhere. Exception says that it can't find a module `polss` while it should be `polls`. Check your settings and imports On Mon, Apr 30, 2018 at 11:29 PM Avitab Ayan Sarmah wrote: > The code I am using for the models is: > > from django.db import models > > class Que

I am following the official Django documentation and trying to make the polls app. But when I run the command python manage.py makemigrations polls I get the console error.

2018-04-30 Thread Avitab Ayan Sarmah
The code I am using for the models is: from django.db import models class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): question = models.ForeignKey(Question) choice_text = mo

Re: Running makemigrations in pluggable nested app using AppConfig

2018-03-19 Thread 'Tom Evans' via Django users
e AppConfigs have their name attribute set to "foo_lib", they > have their path attribute set to the directory containing models.py > and there is a default AppConfig > > I have a test project that I'm using to run "makemigrations" and so > on. With INSTALLED_AP

Running makemigrations in pluggable nested app using AppConfig

2018-03-19 Thread 'Tom Evans' via Django users
g', ] All the AppConfigs have their name attribute set to "foo_lib", they have their path attribute set to the directory containing models.py and there is a default AppConfig I have a test project that I'm using to run "makemigrations" and so on. With INSTALLED_APPS

Re: BooleanField ignored by makemigrations Django 2.0

2018-02-13 Thread Andy
Your app is most likely not listed in installed_apps when makemigrations is not picking up anything. Or its just because you named it model.py instead of models.py? Is any other model of that app picked up by makemigrations? Am Donnerstag, 8. Februar 2018 23:28:19 UTC+1 schrieb Gary Mumford

BooleanField ignored by makemigrations Django 2.0

2018-02-08 Thread Gary Mumford
field type to BooleanField - no changes were detected during makemigrations. Has anyone seen this before and know how to work around it please? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Tutorial 2 - Ver2.0 - python manage.py makemigrations polls - Error message when running

2018-02-04 Thread Daniel Hepper
e: https://docs.djangoproject.com/en/2.0/intro/tutorial02/ > > Running this command: python manage.py makemigrations polls > > I get this output - way over my head. Any ideas? > (I have tried changing the settings.py INSTALLED_APPS to just 'polls' as > suggested in some

  1   2   >