FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

mohdanc/django-tutorial · GitHub

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Tutorial Project

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.

Getting Started

  1. Clone the Repository:
    bashCopy code
    git clone https://github.mohdanc/django-tutorial.git cd django-tutorial
  2. Install Dependencies with Pipenv:
    bashCopy code
    pipenv install
  3. Activate the Virtual Environment:
    bashCopy code
    pipenv shell
  4. Apply Migrations:
    bashCopy code
    python manage.py migrate
  5. Run the Development Server:
    bashCopy code
    python manage.py runserver
  6. Access the Application: Open your web browser and navigate to http://localhost:8000 to view the Django tutorial application.

Project Structure

  • 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.

Tutorial Steps

  • 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.

License

  • Feel free to use the code in this repository as you see fit.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL