Questions tagged [syncdb]

82 questions
1
vote
2 answers

Column does not exist in django 1.6.5

I have an application in Django 1.6.5. I have a model where I removed one field, I added another field, and the third upgraded. And when we now turn to the model in the admin panel, I get the message: ProgrammingError at…
mark
  • 653
  • 1
  • 10
  • 23
1
vote
0 answers

Django error when I run ./manage syncdb

I'm new at Django , and I got an existent project and I need to runserver , I activated virtual env and install all the requirements from the file "requirements.txt" ane then i try to syncdb and i got this error: (all the requirements is installed…
Almog_0
  • 422
  • 4
  • 11
1
vote
2 answers

python manage.py syncdb doesn't create a table

I created a model but after 'makemigrations' and 'syncdb' the table doesn't appear in the database. This is the second model that I want to create and the first model was not a problem. The command 'makemigrations' creates a .py file, but syncdb…
Paul Kanters
  • 11
  • 1
  • 3
1
vote
2 answers

Django unit-testing with loading fixtures for several dependent applications problems

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 or auth_permissions. Then, imagine I need to run a…
gleb.pitsevich
  • 1,269
  • 2
  • 12
  • 18
1
vote
1 answer

manage.py syncdb fails to create auth_user table

Hello fellow stackoverflowers, I am trying to follow the django intro tutorial using nitrous.io When I run manage.py syncdb it creates a few tables till it hits the auth_user table. Then it throws the following error: Creating table auth_user…
sane_guy
  • 13
  • 6
1
vote
1 answer

'DatabaseWrapper' object has no attribute 'get_server_version'

I have been using django-1.4.1. And I updated to django1.5. I inputted 'manage.py sql myapp' or 'manage.py syncdb' then, i got this error "'DatabaseWrapper' object has no attribute 'get_server_version'" do you know why?
digsy89
  • 325
  • 1
  • 2
  • 7
1
vote
1 answer

Can I create database tables automatically in Laravel like Django's 'python manage syncdb'?

I came from Django(Python) background and these days I'm working on a project which is based on Laravel(PHP).Do I have some option like generating database tables automatically?
Rajat Saxena
  • 3,834
  • 5
  • 45
  • 63
1
vote
1 answer

How to make Django models not prepend the app's name to the model if the model name is the app name?

So here's what's happening: I start an app called cars and create a model called Cars. When I syncdb, it creates the table cars_cars. How do I make it so that it just create the table cars? Also, to add to it, what if I have an app called cars and…
Apothem
  • 405
  • 1
  • 5
  • 12
1
vote
1 answer

Django new syncdb superuser crash in pycharm

I have problem with create new DB in Django: bash -cl "/Library/Frameworks/Python.framework/Versions/2.7/bin/python /Applications/PyCharm.app/helpers/pycharm/django_manage.py syncdb /Users/hollywoord/PycharmProjects/Gizeh" Creating tables…
1
vote
0 answers

Images missing after moving Django to new server

I'm moving Django project to new server. I'm newbie in Django, and I don't know where should be upload folder. There are all images which should be displayed on website. In config file I haven't seen upload folder I could specify, so I'm guessing it…
miszczu
  • 1,179
  • 4
  • 19
  • 39
0
votes
1 answer

django manage.py syncdb fails after creating superuser

djnago1.3.1 python2.7.2+ ubuntu 11.10 I am making syncdb, after creating superuser I've got that error: You just installed Django's auth system, which means you don't have any superusers defined. Would you like to create one now? (yes/no): yes …
Antonio
  • 822
  • 1
  • 10
  • 19
0
votes
2 answers

syncdb - no such table error

When I try syncdb on my project , I've got error: return Database.Cursor.execute(self, query, params) django.db.utils.DatabaseError: no such table: main_region forms.py from main.models import Region class ChangeState(forms.Form): region =…
0
votes
1 answer

how to create, syncdb, and access django model dynamically?

I defined an expense model for an expense application, class Expense(models.Model): pub_date = models.DateTimeField() amount = models.IntegerField() memo = models.TextField() and I would like to create lost of separate tables to…
William
  • 239
  • 1
  • 2
  • 11
0
votes
1 answer

Python, MySQL, Django, Syncdb gives DataBaseError (1046, No database selected)

I have installed mysql, added it to services to start automatically, however when i try to run the command line interface it says that it cannot find mysql.exe. It asks me to browse for it. I am using windows 10 64 bit and mysql Cluster 7.4. I am…
0
votes
0 answers

Django not detecting new tables, migrations

I've created two models: class A1(models.Model): #insert code class A2(models.Model) #insert code However, when I run python3 manage.py migrate it says "No migrations to apply." When I check my /admin I can only see Groups, Users under…
tryingtolearn
  • 2,528
  • 7
  • 26
  • 45