Git Product home page Git Product logo

djangostarter's Introduction

djangoStarter

A quick way to start a new Django Project. Projects come ready to run on Heroku.

note: you will need Virtualenv and Git installed. If you want to put your project on Heroku, you will also need to install the Heroku toolbelt and have a Heroku account to which you have uploaded your ssh key and are logged in (heroku login).

Initializing

  1. Clone this repository
    1. git clone https://github.com/jackm321/djangoStarter.git
  2. Change the name of the directory you just cloned from djangoStarter to the name you want for your project
    1. mv djangoStarter new_project_name
  3. cd into the project directory
    1. cd new_project_name
  4. Run the initialization script
    1. python setup.py
  5. Create the virtual environment
    1. virtualenv venv --distribute
  6. Activate the virtual environment
    1. Mac/Linux: source venv/bin/activate
    2. Windows: venv\scripts\activate.bat
  7. Install required Python packages
    1. pip install -r requirements.txt
  8. run server
    • Mac/Linux(port 5000): foreman start
    • Windows(port 8000): python manage.py runserver
  9. connect to server by default set to http://0.0.0.0:5000 if doesn't work, check the command line prompt after starting server: Listening at: http://0.0.0.0:5000

Git

  1. create a new git repository
    1. git init
  2. create an initial commit
    1. git add . && git commit -m "initial commit"
  3. move it over to your github
    1. git remote set-url origin https://github.com/your_user_name/new_repo_name.git

Heroku

  1. create a new Heroku app
    1. heroku create [new_project_name]
      1. note that project names are optional when creating a new Heroku project but if you do specify one then it must be unique accross all Heroku users
  2. push your code to Heroku
    1. git push heroku master
  3. go visit your project on Heroku
    1. heroku open

djangostarter's People

Contributors

jackm321 avatar mochipful avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.