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

  • Home
  • SEARCH
  • 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 6904181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:01:13+00:00 2026-05-27T08:01:13+00:00

I am new to Django, so i don’t know if the answer is obvious.

  • 0

I am new to Django, so i don’t know if the answer is obvious. I created models.py inside a project and when i tried syncDB, it did not create the tables defined in models.py. Only when i create models.py inside an app and after registering the app with INSTALLED_APPS, the tables are getting created on syncDB.

Is this is how Django works? Or am i missing something.

  • 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-05-27T08:01:14+00:00Added an answer on May 27, 2026 at 8:01 am

    Django only syncs what’s defined in INSTALLED_APPS. The name is pretty straight-forward. Django’s going to look for at least a module (directory with an __init__.py) with a models.py file inside. So yes, you need an “app”, but that app can be just a directory with just __init__.py and models.py files inside.

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

Sidebar

Related Questions

I create a new Django app (not project) called Bussinesses, then add following class
I’ve got a brand new Django project. I’ve added one minimal view function to
I'm working on a new Django project, and the client wants to feature content
One of my django models has a large TextField which I often don't need
I'm new to Django... I need to start a project that will have subdomains,
I'm new to Django so I just made up an project to get to
I'm new to Django (and databases in general), and I'm not sure how to
New to Django, third question on it today... I have the following (simplified) models
I know this is a very basic concept in Django, and I have tried
Brand new to django. We have a legacy django project using django 0.96x 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.