Skip to content

fernandojunior/django-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django tutorial

Introductory tutorial to write your first Django app.

Get started!

  1. Fork the django-tutorial repository on GitHub.

  2. Copy your fork locally:

    $ git clone git@github.com:<your_name_here>/django-tutorial.git
  3. Make sure your system is up to date:

    $ apt-get update
    $ apt-get upgrade
    $ apt-get install -y build-essential
    $ apt-get install -y python3-dev python3-software-properties  # or
    $ apt-get install -y python2-dev python2-software-properties
  4. Configure your local copy to work with virtualenv and pip. Assuming you have virtualenv installed, this is how you set up your copy for local development:

    $ cd django-tutorial/
    $ virtualenv env
    $ source env/bin/activate
    $ pip install -r requirements.txt
  5. Switch to overview branch to start the tutorial from the first item of the tutorial checklist:

    $ git checkout overview

    Now you can make your changes locally to develop the overview item of checklist.

  6. When you're done making changes for the item, commit your changes and push the branch of the item to GitHub:

$ git add .
$ git commit -m "Your detailed description of your changes."
$ git push origin <branch-name>
  1. Now, create a new branch to develop the next item checklist of the tutorial:

    $ git checkout -b <branch-name>
  2. Back to step 6 until the tutorial checklist is fully completed.

  3. Switch to master branch and merge it with the last created branch:

    $ git checkout master
    $ git merge reusable-apps
    $ git push origin master
  4. Run the development server:

    $ python manage.py runserver

Checklist

Credits

About

Introductory tutorial to write your first Django app (Python)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages