Code Monkey home page Code Monkey logo

django-template's Introduction

For information on how to use this project template, check out the wiki.

Installation

You've cloned the repo or started a new project with the startproject command. Here's how you actually get started developing. I'm assuming you already have pip installed.

  1. Install virtualenv

     pip install virtualenv
    
  2. Then, start a virtualenv in the project directory.

     $ virtualenv .
     $ . bin/activate
    
  3. Install the project requirements.

     ({{ project_name }}) $ pip install -r requirements.txt
     # wait for a couple of minutes, hopefully nothing goes wrong!
    
  4. Link the local project settings to local_settings.py.

     ({{ project_name }}) $ ln -s conf/settings/local.py local_settings.py
    
  5. Make manage.py executable and sync your local database.

     ({{ project_name }}) $ chmod +x manage.py
     ({{ project_name }}) $ ./manage.py syncdb
    
  6. Start the server.

     ({{ project_name }}) $ sudo ./manage.py runserver
     Validating models...
     0 errors found
    
     Django version 1.5, using settings '{{ project_name }}.settings'
     Running django-devserver 0.5.0
     Threaded django server is running at http://0.0.0.0:80/
     Quit the server with CONTROL-C.
    

I generally map "local.{{ project_name }}.com" to 127.0.0.0 with my DNS service. If you haven't yet registered a domain, add the following line to your /etc/hosts file.

127.0.0.1 local.{{ project_name }}.com

After you've done that, open your browser and navigate to "http://local.{{ project_name }}.com/".

django-template's People

Contributors

dlo avatar

Watchers

Isaac Born avatar John Cabral avatar Israel P. T. da Silva avatar James Cloos 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.