Questions tagged [syncdb]

82 questions
0
votes
1 answer

Running syncdb in django after converting to ConfigParser

So I recently converted my django database settings to use a settings.ini file per the guide found here My issue is that now syncdb has stopped working for new deployments: Traceback (most recent call last): File "manage.py", line 10, in
fishpen0
  • 619
  • 1
  • 10
  • 23
0
votes
3 answers

Syncdb not working

from django.db import models from imagekit.models import ImageSpecField from imagekit.processors import ResizeToFill class Product(models.Model): class Meta(): db_table = 'tovar' product_title = models.CharField(max_length=200) product_img =…
Dimon Kudimon
  • 53
  • 3
  • 7
0
votes
1 answer

Couldn't syncdb in Django while trying to create table

This is showing while I am trying to create table using model . I have tried several things but not working . Command line (test_env) C:\Users\User\Desktop\test_env\src>python manage.py syncdb Operations to perform: Apply all migrations: admin,…
shoeab
  • 186
  • 3
  • 9
0
votes
1 answer

Syncdb command in Django 1.6.5 does not create new model class in models.py - says table already exists

I am following a tutorial on Udemy on Django, in which the author adds a new model to models.py and runs the syncdb command to add the table to the database. I am trying to replicate this using Django 1.6.5 and MySQL 5.5. I have searched other…
0
votes
1 answer

Error when following the python anywhere tutorial

I am trying to sync the database on the tutorial of python anywhere. I have deleted all the contents and restarted the tutorial several times, when I do: python ./manage.py syncdb 03:23 ~ $ cd mysite 03:23 ~/mysite $ ls __init__.py __init__.pyc…
0
votes
2 answers

How do I stop Django "python manage.py syndb" from adding tables to multiple DB's in Settings?

I have two databases configured in settings.py, the default one and another called "local_mysql". I want to create a model such that when I do python manage.py syncdb it is only populated in the local_mysql database. How is this possible? I…
cph
  • 458
  • 2
  • 6
  • 24
0
votes
2 answers

table UserAndPlace_userprofile has no column named gender

While I save UserProfile into a database, there's an error "UserProfile has no column named gender error". Here's my models.py """ UserProfile : user information """ class UserProfile(models.Model): # User basic inherits : username,…
sogo
  • 351
  • 5
  • 20
0
votes
2 answers

syncdb error in django when trying to run python manage.py syncdb

Im Following a django tutorial but I triple checked everything and its no working for me this is what I get.... what did I do wrong. python manage.py syncdb Traceback (most recent call last): File "manage.py", line 10, in
Juanto85
  • 33
  • 2
  • 10
0
votes
1 answer

python3.3 manage.py syncdb syntax error

Very new to Django - I'm trying to get a site set up on Webfaction using their guide. http://docs.webfaction.com/software/django/getting-started.html I've updated settings.py as instructed but I'm getting a syntax error in my settings.py file. I've…
bstolte
  • 3
  • 1
0
votes
1 answer

Django not creating tables for my custom user models

Using Django 1.5, trying out the custom user feature. I only have 3 models in the project. Here they are, class CustomUser(AbstractBaseUser, PermissionsMixin): class CustomUserManager(BaseUserManager): class testModel (models.Model): No errors…
reedvoid
  • 1,203
  • 3
  • 18
  • 34
0
votes
0 answers

Django OAuth2 migrate key error

Welcome, when i'm try to syncdb --migarte it gives me an error: $ python manage.py syncdb --migrate Syncing... Creating tables ... Installing custom SQL ... Installing indexes ... Installed 0 object(s) from 0 fixture(s) Migrating... Running…
clsbartek
  • 186
  • 1
  • 3
  • 18
0
votes
4 answers

django select app(s) for syncdb

First of all: please don't ask me: "Why would you need this?". Now the question itself: I have several applications installed in INSTALLED_APPS. Database is now empty and I want to synchronise only some of apps. What's the simplest way to do this? I…
mnowotka
  • 16,430
  • 18
  • 88
  • 134
0
votes
0 answers

Django syncdb raises MySQL socket.error: [Errno 111] Connection refused

I have provisioned many servers and deployed this project many times, but this is the first time I have come across this issue. I can connect to MySQL via command line and Sequel Pro just fine, it's only the Django specific commands that are…
Brian
  • 1,703
  • 3
  • 17
  • 23
0
votes
3 answers

Django project - can not sync data tables - syncdb (error: no module named XYZ)

I am following a tutorial on Django which is basically a series of short todos that lead to the building of a web application to manage bookmarks. So far I've: - installed Django 1.4.2 properly - created the project and its folders (be low my…
Sylvain
  • 553
  • 3
  • 14
  • 26
0
votes
2 answers

After Upgrading Django from 1.3 to 1.4.3 Syncdb Fails to delete stale content types

How can I successfully delete the stale content? Typing yes yields the following: Creating tables ... The following content types are stale and need to be deleted: auth | message Any objects related to these content types by a foreign key will…
nu everest
  • 9,589
  • 12
  • 71
  • 90