
- Python Basic Tutorial
- Python - Home
- Python - Overview
- Python - Environment Setup
- Python - Basic Syntax
- Python - Comments
- Python - Variables
- Python - Data Types
- Python - Operators
- Python - Decision Making
- Python - Loops
- Python - Numbers
- Python - Strings
- Python - Lists
- Python - Tuples
- Python - Dictionary
- Python - Date & Time
- Python - Functions
- Python - Modules
- Python - Files I/O
- Python - Exceptions
What's the best place for python classes in a Django project?
You can put said class where you want.
example
project foo bar.py baz.py qux.py
Then you can import your qux.py module by using import.
from project.foo.qux import *
Making directory is better when you are dealing with a large number of files. For example −
project foo bar.py baz.py extras qux.py quux.py
- Related Articles
- How to implement django-material in your Django project?
- What is the best way to learn Python and Django?
- Best Practices for Project Budget Management
- Best Practices for Project Closures to Implement
- Top Best Practices for Managing Project Budget
- How to add validation to your Django project?
- Python Abstract Base Classes for Containers
- How to add Django debug toolbar to your project?
- Explain Inheritance vs Instantiation for Python classes.
- What are the best tourist place in Karnataka?
- Which place is best for an engineering job in the world India or abroad?
- Creating Classes in Python
- What are the “best practices” for using import in a Python module?
- What are the Best eLearning Project Management Software?
- Django query count in terminal for debugging

Advertisements