Welcome to Django-firstProject, a personal repository documenting my learning journey with Django. This project serves as a collection of notes and examples to help me understand the basics of Django development. Although this isn't a fully functional application, it encompasses the fundamental concepts of Django I have explored so far.
This repository covers my learning milestones in Django, including starting a server, defining models, working with templates, configuring URLs, and exploring relationships and forms. Below is a breakdown of the topics I learned:
- Set up a virtual environment and installed Django.
- Ran the default development server using
python manage.py runserver.
- Learned about the concept of views and created basic functions in
views.pyto display responses.
- Used Django's template engine to create
HTMLfiles for rendering dynamic content.
- Integrated static files like CSS and JavaScript into the project by configuring
STATICFILES_DIRSand linking them in templates.
- Explored Jinja2 syntax to include dynamic data in templates and loop through objects in views.
- Integrated Tailwind CSS with Django to style templates using utility-first CSS classes.
- Activated Django's powerful admin interface by enabling and customizing the
admin.pyfile for model management.
- Learned to define models in
models.pyfor database representation and structure.
- Used Django's ORM and admin interface to add sample data to the database.
- Displayed database content dynamically in templates using queries and context variables.
- Utilized template tags to fetch and display data, such as looping over objects or accessing attributes.
- Enhanced models by adding descriptions and created detail pages for individual objects.
- Added dedicated views to handle the display of detailed information about specific objects.
- Learned to configure
urls.pyto define paths for routing between views and templates.
- Explored database relationships, including foreign keys and many-to-many relationships, and implemented forms for user input.
- Python 3.x
- Django
- Clone this repository:
git clone https://github.com/pythoneer-sp/Django-firstProject.git