Skip to content

Commit afb518c

Browse files
committed
Rename "example" dir to "sample_project"
1 parent b9ca769 commit afb518c

24 files changed

+15
-15
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
*.pyc
22
*.db
3-
example/repos/*
3+
sample_project/repos/*
44
override

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ can take a long time. Please be patient.
3636

3737
* Download the last stable release from
3838
[http://github.com/tobami/codespeed/downloads](http://github.com/tobami/codespeed/downloads), unpack it and install it with `python setup.py install`.
39-
* To get started, you can use the `example` directory as a starting point for your Django project, which can be normally configured by editing `example/settings.py`.
39+
* To get started, you can use the `sample_project` directory as a starting point for your Django project, which can be normally configured by editing `sample_project/settings.py`.
4040
* For simplicity, you can use the default sqlite configuration, which will save
41-
the data to a database named `example/data.db`
42-
* Create the DB by changing to the `example/` directory and running:
41+
the data to a database named `sample_project/data.db`
42+
* Create the DB by changing to the `sample_project/` directory and running:
4343

4444
python manage.py syncdb
4545

@@ -55,7 +55,7 @@ can take a long time. Please be patient.
5555
The codespeed installation can now be accessed by navigating to `http://localhost:8000/`.
5656

5757
**Note**: for production, you should configure a real server like Apache or nginx (refer to the [Django docs](http://docs.djangoproject.com/en/dev/howto/deployment/)). You should also
58-
modify `example/settings.py` and set `DEBUG = False`.
58+
modify `sample_project/settings.py` and set `DEBUG = False`.
5959

6060
# Codespeed configuration
6161

@@ -73,7 +73,7 @@ integration, configure the relevant fields.
7373
**Note**: Only executables associated to projects with a checked "track changes"
7474
field will be shown in the Changes and Timeline views.
7575

76-
**Note**: Git and Mercurial need to locally clone the repository. That means that your `example/repos` directory will need to be owned by the server. In the case of a typical Apache installation, you'll need to type `sudo chown www-data:www-data example/repos`
76+
**Note**: Git and Mercurial need to locally clone the repository. That means that your `sample_project/repos` directory will need to be owned by the server. In the case of a typical Apache installation, you'll need to type `sudo chown www-data:www-data sample_project/repos`
7777

7878
# Saving data
7979

@@ -97,7 +97,7 @@ section).
9797
## Custom Settings
9898

9999
You may override any of the default settings by creating the file
100-
`example/override/settings.py`. It is strongly recommended that you only override the
100+
`sample_project/override/settings.py`. It is strongly recommended that you only override the
101101
settings you need by importing the default settings and replacing only the
102102
values needed for your customizations:
103103

@@ -108,7 +108,7 @@ values needed for your customizations:
108108
### Site-wide Changes
109109

110110
All pages inherit from the `site_base.html` template, which
111-
extends `base.html`. To change every page on the site simply edit (`example/templates/site_base.html`) which extends `base.html` and override
111+
extends `base.html`. To change every page on the site simply edit (`sample_project/templates/site_base.html`) which extends `base.html` and override
112112
the appropriate block:
113113

114114
* Custom title: you may replace the default "My Speed Center" for the title
@@ -118,7 +118,7 @@ the appropriate block:
118118
My Project's Speed Center
119119
{% endblock %}
120120

121-
* Custom logo: Place your logo in `example/override/media/img` and add a block like
121+
* Custom logo: Place your logo in `sample_project/override/media/img` and add a block like
122122
this:
123123

124124
{% block logo %}
@@ -128,7 +128,7 @@ the appropriate block:
128128
n.b. the layout will stay exactly the same for any image with a height of
129129
48px (any width will do)
130130

131-
* Custom JavaScript or CSS: add your files to the `example/override/media` directory
131+
* Custom JavaScript or CSS: add your files to the `sample_project/override/media` directory
132132
and extend the `extra_head` template block:
133133

134134
{% block extra_head %}
@@ -138,11 +138,11 @@ the appropriate block:
138138

139139
### Specific Pages
140140

141-
Since `example/override/templates` is the first entry in `settings.TEMPLATE_DIRS` you
141+
Since `sample_project/override/templates` is the first entry in `settings.TEMPLATE_DIRS` you
142142
may override any template on the site simply by creating a new one with the
143143
same name.
144144

145-
* About page: create `example/override/templates/about.html`:
145+
* About page: create `sample_project/override/templates/about.html`:
146146

147147
{% extends "site_base.html" %}
148148
{% block title %}{{ block.super }}: About this project{% endblock %}
@@ -161,7 +161,7 @@ same name.
161161
of projects being tracked as an executable as well.
162162

163163
## Defaults
164-
The file `example/settings.py` can contain customizations of
164+
The file `sample_project/settings.py` can contain customizations of
165165
several parameters (the file includes comments with full examples).
166166

167167
### General settings:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)