syncdb Questions

6

I'm trying to follow this tutorial but I'm stuck on the 5th step. When I execute [~/Django Projects/netmag$] python manage.py syncdb I get the following error message : Unknown command: 'sync...
Horrible asked 11/2, 2015 at 0:41

2

I have a Django project on a Centos VPS. I created some models and debugged them so they validate and give no errors. I have them in a "models" folder in my myapp and have added each model to the ...
Gab asked 23/1, 2014 at 13:19

4

Solved

I have a models folder that has a few models in files that are already in the DB. I have just added another file/model but it is not being added to the DB when I run syncdb. I've tried manage.py va...
Knickerbockers asked 31/5, 2012 at 15:28

3

Solved

What is the best solution if I want to upgrade (alter) my database schema (add new fields to tables by adding them just to Django models) without losing data in these tables? "syncdb" not...
Clearing asked 21/4, 2011 at 5:20

1

Solved

I am trying to add add some data to the database as soon as tables are created, using the post_syncdb signal. signals.post_syncdb.connect(init) Then in the init function, I want to set permissio...
Overcoat asked 26/7, 2012 at 15:40

1

Solved

While I'm trying to syncdb for my django project, I'm seeing following complains: The following content types are stale and need to be deleted: myapp | Any objects related to these content type...
Insnare asked 23/5, 2013 at 3:36

4

Solved

I'm moving django website from one server to another, and I tried to syncdb, so i've put python manage.py syncdb, and i get this output: Syncing... Creating tables ... The following content types ...
Extensor asked 31/5, 2012 at 13:5

7

Since upgrading OSX to version 10.7.3, when I attempt to run a Django "syncdb" command, I receive the following psycopg2 error from Postgresql 8.4.2: psycopg2.OperationalError: could not connect t...
Erotica asked 3/2, 2012 at 18:48

2

Can anyone tell if there is a difference between >manage.py flush # or reset and >manage.py sqlclear appname | python manage.py dbshell >manage.py syncdb
Secondrate asked 29/9, 2011 at 13:27

1

Solved

I tried setting up a simple models.py file as part of this tutorial that I was following online. When I tried the syncdb command, I got the following errors: File "manage.py", line 10, in <mod...
Badr asked 23/7, 2012 at 16:13

1

I am trying to apply tutorial http://docs.django-cms.org/en/2.1.3/getting_started/tutorial.html. But I didn't succeed to perform the initial database setup Why do I get this error when I run "pyt...
Itinerancy asked 4/6, 2012 at 15:40

1

Solved

>>> from django.core.management import call_command >>> call_command('syncdb') executes the syncdb management command from within a python script. However, I want to run the equ...
Looper asked 2/9, 2011 at 7:56

1

Solved

This time I think it's not me being stupid but an actual conflict. I have the below code (simplified): from django.db import models class Alpha(models.Model): relation = models.ForeignKey('Delta...
Neap asked 25/4, 2011 at 15:2

2

Solved

I'm now making unit-tests for already existing code. I faced the next problem: After running syncdb for creating test database, Django automatically fills several tables like django_content_type o...
Colo asked 24/3, 2010 at 11:44
1

© 2022 - 2024 — McMap. All rights reserved.