This is a simple Django project created by following the official Django tutorial. The tutorial covers the basics of building a web application with Django, including setting up the project, creating models, views, templates, and handling forms.
- Clone the Repository:
bashCopy code
git clone https://github.mohdanc/django-tutorial.git
cd django-tutorial
- Install Dependencies with Pipenv:
bashCopy code
pipenv install
- Activate the Virtual Environment:
bashCopy code
pipenv shell
- Apply Migrations:
bashCopy code
python manage.py migrate
- Run the Development Server:
bashCopy code
python manage.py runserver
- Access the Application:
Open your web browser and navigate to http://localhost:8000 to view the Django tutorial application.
- mysite/: Django project settings and configuration.
- polls/: Django app for the tutorial, including models, views, templates, and static files.
- Pipfile and Pipfile.lock: Pipenv files for managing Python dependencies.
- Part 1:
- Introduction to Django.
- Creating a Django project and app.
- Defining models for a simple poll application.
- Part 2:
- Setting up the admin site.
- Creating views and templates for the poll application.
- Part 3:
- Writing more views and using Django's URL patterns.
- Adding forms for user interaction.
- Feel free to use the code in this repository as you see fit.