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 496031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:38:52+00:00 2026-05-13T05:38:52+00:00

I am currently working through the tutorial on Django’s website. Upon completing the following

  • 0

I am currently working through the tutorial on Django’s website. Upon completing the following command:

python manage.py startapp polls

it creates the following structure:

polls/
    __init__.py
    models.py
    tests.py
    views.py

As I was going through the tutorial it occurred to me that the views file could grow to this huge incohesive monolithic file that has every action in the entire web application.

Is there a way to break this file up into cohesive classes or files? I tried changing the settings.py and the url.py to point to a different directory, but it appears that the script that generates the file structure creates a “views” module when it creates the file, and I don’t see a way to change/override this behavior from the script.

  • 1 1 Answer
  • 2 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-13T05:38:52+00:00Added an answer on May 13, 2026 at 5:38 am

    Each app you create for the project will have its own views.py file (assuming it uses views), so you don’t need to worry about it becoming monolithic.

    Just make sure to keep your apps’ functionality focused.

    From the Django docs:

    Projects vs. apps

    What’s the difference between a
    project and an app? An app is a Web
    application that does something —
    e.g., a weblog system, a database of
    public records or a simple poll app. A
    project is a collection of
    configuration and apps for a
    particular Web site. A project can
    contain multiple apps. An app can be
    in multiple projects.

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

Sidebar

Related Questions

I am currently working my way through the Django Tutorial (Step 3) and am
I am currently working through this tutorial: Getting Started with jQuery For the two
I am currently working through Michael Hartl's Rails Tutorial while experimenting with some other
Currently working through a Teach Yourself WPF tutorial. Usually I can mentally convert from
I'm currently working through the notepad tutorial, and exercise 2 completes the code to
I'm new to django and currently going through the main tutorial. Even though it
Currently working through a tutorial on JOX included within Sams Teach Yourself JavaServer Pages
I'm currently working through a tutorial on how to make a sound board in
I'm currently working my way through the MVC Music Store tutorial. I'm stuck on
I am working my way through a Yii tutorial book and am currently learning

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.