Questions tagged [syncdb]

82 questions
2
votes
2 answers

what password should i use when i syncdb?

Hi i am very green at django and just learnt python. I'm struggling to set it all up right. So apologies now! I have django and python installed (windows 7). Everything in tutorial has worked (sort of) up to now. Now trying to syncdb my first db as…
SandBlack
  • 71
  • 1
  • 5
2
votes
1 answer

Django ManyToManyField fails to create "through" table

My ecommerce site has a models.py which defines 3 models. Originally, it had only defined two, Product and Category, but I realized I would need to be able to tag my products with certain keywords, and so I added that model. The problem arose when…
fildred13
  • 2,280
  • 8
  • 28
  • 52
2
votes
1 answer

django south: models are shown as not synced even if they are (or should be)

I am getting this after syncdb: clime@den /var/www/loserti $ ./manage.py syncdb Syncing... Creating tables ... Creating table tagging_tag Creating table tagging_taggeditem Installing custom SQL ... Installing indexes ... Installed 0 object(s) from 0…
clime
  • 8,695
  • 10
  • 61
  • 82
2
votes
1 answer

Django-MySQL enable Row_Format=Compress with syncdb

I have an application in Django and MySQL, in my model I have several fields specified as TextField, when i run syncdb the tables for my model are created and the specified columns are created with longtext data type, so far so good. But when I try,…
CesarEdu
  • 43
  • 5
2
votes
1 answer

syncing sqlite3 for Django tutorial

I'm starting the Django tutorials and have virtual environments and django installed. I'm working on a Mac 10.6.8, which has sqlite3 already installed. I'm working inside a virtual environment. I changed the settings.py file to: ENGINE --…
user1552159
  • 205
  • 1
  • 4
  • 12
2
votes
1 answer

relation not found when syncdb is run in django

I have these classes in the models.py of my django application.I am using postgresql 8.3 as database class Course(models.Model): students = models.ManyToManyField(User) title = models.CharField(max_length=200) description =…
damon
  • 8,127
  • 17
  • 69
  • 114
2
votes
0 answers

Django: python manage.py syncdb hangs forever

Output looks like this (the project is named parkingtickets): usr/local/webapps/parkingtickets/django_project$ python manage.py syncdb Creating tables ... Creating table parkingtickets_correction It then hangs forever. If I suspend the process and…
quindraco
  • 1,441
  • 2
  • 11
  • 13
2
votes
1 answer

django automate syncdb

I'm working on a project that includes a django server, and also a setup module. The user will be configuring their system to run my program, which includes a django webserver element along with other items. I'm working on a setup module that…
1
vote
3 answers

python manage.py syncdb error

I am attempting to get my first Django project working, on Windows, but I get an error message that reads: File "c:\users\[username]\appdata\local\temp\easy_install-pazcre\MySQL_python-1.2.3-py2.7- win32.egg.tmp\MySQLdb\connections.py", line 187,…
user1261774
  • 3,525
  • 10
  • 55
  • 103
1
vote
2 answers

Keep code from running during syncdb

I have some code that throws causes syncdb to throw an error (because it tries to access the model before the tables are created). Is there a way to keep the code from running on syncdb? something like: if not syncdb: run_some_code() Thanks…
Jiaaro
  • 74,485
  • 42
  • 169
  • 190
1
vote
1 answer

Before syncdb, delete field from standard Django model

This is a follow-up question on Delete field from standard Django model. In short: a field can be dynamically deleted from a model that is already created, in this case the field User.email . So field email would be deleted from User without…
Mark
  • 18,730
  • 7
  • 107
  • 130
1
vote
2 answers

WIth PyCharm, why is the PYTHONPATH when running a Django project different from when running the manage.py syncdb task?

Shouldn't it be the same by default? If not, is there some way to fix this so that the same PYTHONPATH is used?
Julian A.
  • 10,928
  • 16
  • 67
  • 107
1
vote
1 answer

Install django on webfaction

I am trying to install django on Webfaction, and i have one all the steps like in the tutorial here: http://wiki.osqa.net/display/docs/Installing+OSQA+on+WebFaction But when i am trying to synchronyse the database, if i enter python2.5 manage.py…
dana
  • 5,168
  • 20
  • 75
  • 116
1
vote
1 answer

manage.py syncdb error while Django model using non-ascii verbose_name

I am pretty new to Django. I want the name of my models to be displayed in Chinese, so i used verbose_name in my meta class of my model, codes below: #this models.py file is encoded in unicode class TS_zone(models.Model): index =…
Bill Kary
  • 685
  • 2
  • 12
  • 27
1
vote
1 answer

planet+django makemigration does not work

I am trying to use django-planet on python 3, django 1.9. After following the instruction on their page I get the following error after python manage.py makemigrations: planet.Feed.site: (fields.E300) Field defines a relation with model 'Site',…
A.E
  • 997
  • 1
  • 16
  • 33