Skip to content
Learn Netverks

Lesson

Step 12/36 33% through track

startproject

startproject and startapp

Last reviewed Jun 1, 2026 Content v20260601
Track mode
server_script
Means
Server runner
Reading
~1 min
Level
beginner

This lesson

This lesson teaches startproject and startapp: the syntax, APIs, and habits you need before advancing in Django.

Teams ship startproject and startapp on every Django codebase—skipping it leaves gaps in debugging and code reviews.

You will apply startproject and startapp in contexts like: SaaS dashboards, CMS-style products, internal tools, and APIs paired with React or mobile clients.

Write Python 3 in the editor and click Run on server—the dev runner executes your script; Django framework lessons also use local startproject for full MVT (LEARNING_RUNNER_ENABLED=true).

When you can explain the previous lesson's ideas without copying starter code.

Every Django site begins with two commands: startproject creates the config shell; startapp creates a feature module you plug into the project.

Creating a project

django-admin startproject mysite
cd mysite
python manage.py startapp blog

Typical layout

mysite/
  manage.py              # CLI entry point
  mysite/
    __init__.py
    settings.py          # configuration
    urls.py              # root URLconf
    wsgi.py              # deployment entry
  blog/
    models.py
    views.py
    urls.py
    admin.py
    migrations/

Register the app

Add 'blog.apps.BlogConfig' (or 'blog') to INSTALLED_APPS in settings.py, then wire URLs with include().

Important interview questions and answers

  1. Q: Project vs app?
    A: Project is the whole site configuration; apps are reusable modules (blog, accounts) that can live in multiple projects.
  2. Q: What does manage.py do?
    A: Sets DJANGO_SETTINGS_MODULE and delegates to Django's command-line utility—runserver, migrate, shell, etc.
  3. Q: Can you rename an app later?
    A: Possible but painful—migrations and imports break; choose names carefully upfront.

Self-check

  1. Which command creates manage.py?
  2. Where do you register a new app?

Interview prep

Project vs app?

Project is site configuration (settings, root URLs); apps are reusable modules (blog, accounts) with models and views plugged into INSTALLED_APPS.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Project vs app?
  • manage.py role?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump