Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 43 lines (24 sloc) 0.868 kb
4d6e057 @spookylukey Updated README to be more useful to someone setting up for the first tim...
authored
1 To run locally, do the usual:
5f66182 @jacobian Refactored docs from a separate project into django_website/docs.
jacobian authored
2
4d6e057 @spookylukey Updated README to be more useful to someone setting up for the first tim...
authored
3 1. Create a virtualenv
4 2. Install dependencies::
5
6 pip install -r deploy-requirements.txt
7
8 If you only need to deploy, and don't need to test any changes,
9 you can use local-requirements.txt
10
11 3. Set up databases, as per django_website/settings/www.py
12
13 4. Create a 'secrets.json' file in the directoy above the checkout, containing
14 something like::
15
16 { "secret_key": "xyz" }
17
18 5. Set up DB::
19
20 ./manage.py syncdb
21 ./manage.py migrate
22
23 and::
24
25 ./manage.py sycndb --docs
26
27 if you want to run docs site.
28
29 6. For docs::
30
31 ./manage.py loaddata doc_releases.json --docs
32 ./manage.py update_docs --docs
33
34
35 Finally::
36
37 python manage.py runserver
5f66182 @jacobian Refactored docs from a separate project into django_website/docs.
jacobian authored
38
39 This runs as ``www.djangoproject.com``. To run locally as
40 ``docs.djangoproject.com``, use::
41
4d6e057 @spookylukey Updated README to be more useful to someone setting up for the first tim...
authored
42 python manage.py runserver --settings=django_website.settings.docs
Something went wrong with that request. Please try again.