Coder Social home page Coder Social logo

django's Introduction

Django on DotCloud

This code shows how to run a very simple Django application on DotCloud. It is fully functional, in the sense that you don't have any hand-editing to do to deploy it: it automatically deploys a PostgreSQL database, includes it in settings.py, creates a superuser for you, and uses Django 1.3 collectstatic. Batteries Included!

To run this code on DotCloud, you need a DotCloud account (free tier available). Then clone this repository, and push it to DotCloud:

$ git clone git://github.com/jpetazzo/django.git
$ cd django
$ dotcloud push hellodjango

Happy hacking! Remember: each time you modify something, you need to git add + git commit your changes before doing dotcloud push.

This repository is also a step-by-step tutorial: each commit corresponds to one step, with the commit message providing explanations.

You can view the whole tutorial, and the modified files at each step, with at least three different methods:

  • by using GitHub's awesome compare view: you will see the list of commits involved in the tutorial, and by clicking on each individual commit, you will see the file modifications for this step;
  • by running git log --patch --reverse begin..end in your local repository, for a text-mode equivalent (with the added benefit of being available offline!);
  • by browsing a more traditional version on DotCloud's documentation website.

You can also learn more by diving into DotCloud documentations, especially the one for the Python service which is used by this app.

django's People

Contributors

jpetazzo avatar qpleple avatar

Stargazers

Guillaume Dupin avatar Mithun Kumer Ghose avatar Shu LI avatar gu avatar Troy Scott avatar saidimu apale avatar Jicai avatar vlozhkin avatar N. Darville avatar Vitalii Mikhnevych avatar  avatar Aleksandr Merekin avatar Chun-wei Kuo avatar Julien Phalip avatar Panayiotis Tzagkarakis avatar Michael Huynh avatar

Watchers

 avatar James Cloos avatar  avatar

django's Issues

This code doesn't work out the box - 404 error when navigating to the url

I followed the instructions of 1) clone the repo 2) deploy to dotcloud, however when I navigate to the url given I get a 404 error:

Page not found (404)
Request Method: GET
Request URL:
Using the URLconf defined in hellodjango.urls, Django tried these URL patterns, in this order:
^admin/
The current URL, , didn't match any of these.
You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.

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.