Code Monkey home page Code Monkey logo

djangoproject.com's Introduction

To run locally, do the usual::

1. Create a virtualenv

2. Install dependencies::

    pip install -r deploy-requirements.txt
    pip install -r local-requirements.txt

   If you only need to deploy, and don't need to test any changes,
   you can use local-requirements.txt only.

3. Create a 'secrets.json' file in the directory above the checkout, containing
   something like::

    { "secret_key": "xyz",
      "superfeedr_creds": ["[email protected]", "some_string"] }

4. Create databases::

    createuser -d djangoproject
    createdb -O djangoproject djangoproject
    createuser code.djangoproject
    createdb -O code.djangoproject code.djangoproject

5. Create tables::

    psql -d code.djangoproject < tracdb/trac.sql

    ./manage.py syncdb
    ./manage.py migrate

   and::

    ./manage.py syncdb --docs
    ./manage.py migrate --docs

   if you want to run docs site.

6. For docs::

    ./manage.py loaddata doc_releases.json --docs
    ./manage.py update_docs --docs

Finally::

    ./manage.py runserver

This runs as ``www.djangoproject.com``. To run locally as
``docs.djangoproject.com``, use::

    ./manage.py runserver --docs

djangoproject.com's People

Contributors

jacobian avatar aaugustin avatar justinabrahms avatar jezdez avatar jphalip avatar timgraham avatar bmispelon avatar claudep avatar coderanger avatar apollo13 avatar brutasse avatar carljm avatar idan avatar alex avatar ubernostrum avatar ptone avatar spookylukey avatar paparent avatar adrianholovaty avatar evildmp avatar duncm avatar jkocherhans avatar kevinetienne avatar paulmcmillan avatar richardcornish avatar amney avatar treyhunner avatar

Stargazers

Roman avatar

Watchers

feroz khan 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.