Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7748795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:52:31+00:00 2026-06-01T10:52:31+00:00

I have set up a few models in a simple django project. When I

  • 0

I have set up a few models in a simple django project. When I run

python manage.py sql fivefives

I get loads of nice looking sql, when I run syncdb or validate I get 0 errors.

BEGIN;
CREATE TABLE "fivefives_player" (
    "id" serial NOT NULL PRIMARY KEY,
    "username" varchar(200) NOT NULL,
    "colour" varchar(7) NOT NULL,
    "remaining_dice" integer NOT NULL
)
;
CREATE TABLE "fivefives_game_player_list" (
    "id" serial NOT NULL PRIMARY KEY,
    "game_id" integer NOT NULL,
    "player_id" integer NOT NULL REFERENCES "fivefives_player" ("id") DEFERRABLE INITIALLY DEFERRED,
    UNIQUE ("game_id", "player_id")
)
;
CREATE TABLE "fivefives_game" (
    "id" serial NOT NULL PRIMARY KEY,
    "time" timestamp with time zone NOT NULL
)
;
ALTER TABLE "fivefives_game_player_list" ADD CONSTRAINT "game_id_refs_id_c39af54" FOREIGN KEY ("game_id") REFERENCES "fivefives_game" ("id") DEFERRABLE INITIALLY DEFERRED;
CREATE TABLE "fivefives_round_player_list" (
    "id" serial NOT NULL PRIMARY KEY,
    "round_id" integer NOT NULL,
    "player_id" integer NOT NULL REFERENCES "fivefives_player" ("id") DEFERRABLE INITIALLY DEFERRED,
    UNIQUE ("round_id", "player_id")
)
; ... it continues like this... 

But as soon as I hop into admin the tables aren’t there. Logging into postgres I see the tables haven’t even been created.

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'perudodb',                      # Or path to database file if using sqlite3.
        'USER': 'postgres',                      # Not used with sqlite3.
        'PASSWORD': 'postgres',                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
    }
}

Anyone come up with anything like this before? Just copied all files onto my friends computer and syncdb’d and it all works great.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:52:32+00:00Added an answer on June 1, 2026 at 10:52 am

    To actually create the tables, you want manage.py syncdb.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page that takes a few minutes to run. When I set
I've set up django with haystack but im having a few problems. I have
I'm trying to reorder/group a set of results using SQL. I have a few
I have set up a few models as follows: Page Gallery Image Gallery and
I have to set a few projects in our VS 2005 solution to build
I have a set of checkboxes and have disabled few which I want to
Does this smell? I have a few properties you can only set once. They
We have set up a system where notifications get sent to a user with
I have set up transactional replication between two SQL Servers on different ends of
I have a few models in my MVC3 web app that have fields that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.