Skip to content

Commit dad9225

Browse files
committed
update git url
1 parent 50e82cd commit dad9225

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

doc/source/index.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ Welcome to django-excel's documentation!
77
========================================
88

99
:Author: C.W.
10-
:Source code: http://github.com/chfw/django-excel
11-
:Issues: http://github.com/chfw/django-excel/issues
10+
:Source code: http://github.com/pyexcel/django-excel
11+
:Issues: http://github.com/pyexcel/django-excel/issues
1212
:License: New BSD License
1313
:Version: |version|
1414
:Generated: |today|
1515

16-
**django-excel** is based on `pyexcel <https://github.com/chfw/pyexcel>`_ and makes
16+
**django-excel** is based on `pyexcel <https://github.com/pyexcel/pyexcel>`_ and makes
1717
it easy to consume/produce information stored in excel files over HTTP protocol as
1818
well as on file system. This library can turn the excel data into a list of lists,
1919
a list of records(dictionaries), dictionaries of lists. And vice versa. Hence it
@@ -43,11 +43,11 @@ The highlighted features are:
4343
latex, grid, pipe, orgtbl, plain simple
4444
================ ==========================================
4545

46-
.. _pyexcel-xls: https://github.com/chfw/pyexcel-xls
47-
.. _pyexcel-xlsx: https://github.com/chfw/pyexcel-xlsx
48-
.. _pyexcel-ods: https://github.com/chfw/pyexcel-ods
49-
.. _pyexcel-ods3: https://github.com/chfw/pyexcel-ods3
50-
.. _pyexcel-text: https://github.com/chfw/pyexcel-text
46+
.. _pyexcel-xls: https://github.com/pyexcel/pyexcel-xls
47+
.. _pyexcel-xlsx: https://github.com/pyexcel/pyexcel-xlsx
48+
.. _pyexcel-ods: https://github.com/pyexcel/pyexcel-ods
49+
.. _pyexcel-ods3: https://github.com/pyexcel/pyexcel-ods3
50+
.. _pyexcel-text: https://github.com/pyexcel/pyexcel-text
5151

5252
This library makes infomation processing involving various excel files as easy as
5353
processing array, dictionary when processing file upload/download, data import into
@@ -68,7 +68,7 @@ You can install it via pip::
6868

6969
or clone it and install it::
7070

71-
$ git clone http://github.com/chfw/django-pyexcel.git
71+
$ git clone http://github.com/pyexcel/django-pyexcel.git
7272
$ cd django-excel
7373
$ python setup.py install
7474

@@ -106,9 +106,9 @@ If you would like to expand the list of supported excel file formats (see :ref:`
106106
Tutorial
107107
--------------
108108

109-
In order to dive in django-excel and get hands-on experience quickly, the test application for django-excel will be introduced here. So, it is advisable that you should check out the code from `github <https://github.com/chfw/django-excel>`_ ::
109+
In order to dive in django-excel and get hands-on experience quickly, the test application for django-excel will be introduced here. So, it is advisable that you should check out the code from `github <https://github.com/pyexcel/django-excel>`_ ::
110110

111-
git clone https://github.com/chfw/django-excel.git
111+
git clone https://github.com/pyexcel/django-excel.git
112112

113113
The test application is written according to `Part 1 <https://docs.djangoproject.com/en/1.7/intro/tutorial01/>`_, `Part 2 <https://docs.djangoproject.com/en/1.7/intro/tutorial02/>`_ and `Part 3 <https://docs.djangoproject.com/en/1.7/intro/tutorial03/>`_ of django tutorial version 1.7.1. If you should wonder how the test application was written, please visit django documentation and come back.
114114

@@ -141,7 +141,7 @@ Choose an excel sheet, for example an xls file, and press "Submit". You will get
141141

142142
.. image :: download-file.png
143143
144-
Please open the file `polls/views.py <https://github.com/chfw/django-excel/blob/master/polls/views.py#L27>`_ and focus on the following code section::
144+
Please open the file `polls/views.py <https://github.com/pyexcel/django-excel/blob/master/polls/views.py#L27>`_ and focus on the following code section::
145145

146146
class UploadFileForm(forms.Form):
147147
file = forms.FileField()
@@ -166,7 +166,7 @@ Please feel free to change those functions according to :ref:`the mapping table
166166
Handle data import
167167
++++++++++++++++++++++++++++++
168168

169-
This example shows how to import uploaded excel file into django models. We are going to import `sample-data.xls <https://github.com/chfw/django-excel/blob/master/sample-data.xls>`_
169+
This example shows how to import uploaded excel file into django models. We are going to import `sample-data.xls <https://github.com/pyexcel/django-excel/blob/master/sample-data.xls>`_
170170

171171
.. table:: Sheet 1 of sample-data.xls
172172

@@ -211,7 +211,7 @@ Please visit this link http://localhost:8000/polls/import/, you shall see this u
211211

212212
.. image:: import-page.png
213213

214-
Please then select `sample-data.xls <https://github.com/chfw/django-excel/blob/master/sample-data.xls>`_ and upload. Then visit the admin page http://localhost:8000/admin/polls/question, you shall see questions have been populated:
214+
Please then select `sample-data.xls <https://github.com/pyexcel/django-excel/blob/master/sample-data.xls>`_ and upload. Then visit the admin page http://localhost:8000/admin/polls/question, you shall see questions have been populated:
215215

216216
.. image:: question-admin.png
217217

@@ -224,7 +224,7 @@ And choices too:
224224

225225
You may use admin interface to delete all those objects and try again.
226226

227-
Now please open `polls/views.py <https://github.com/chfw/django-excel/blob/master/polls/views.py#L54>`_ and focus on this part of code::
227+
Now please open `polls/views.py <https://github.com/pyexcel/django-excel/blob/master/polls/views.py#L54>`_ and focus on this part of code::
228228

229229
def import_data(request):
230230
if request.method == "POST":
@@ -281,7 +281,7 @@ Please save and open it. You shall see these data in your window:
281281
.. image:: question-sheet.png
282282
.. image:: choice-sheet.png
283283

284-
Now let's examine the code behind this in `polls/views.py <https://github.com/chfw/django-excel/blob/master/polls/views.py#L48>`_::
284+
Now let's examine the code behind this in `polls/views.py <https://github.com/pyexcel/django-excel/blob/master/polls/views.py#L48>`_::
285285

286286
def export_data(request, atype):
287287
if atype == "sheet":
@@ -297,7 +297,7 @@ How to import one sheet instead of multi-sheet book
297297

298298
Previous example shows how to import a multi-sheet book. However, what exactly is needed to import only one sheet instead? Before you proceed, please empty question and choice data using django admin.
299299

300-
Let's visit this url first http://localhost:8000/polls/imports_sheet/, where you see a similar file upload form. This time please choose `sample-sheet.xls <https://github.com/chfw/django-excel/blob/master/sample-sheet.xls>`_ instead. Then look at django admin and see if the question data have been imported or not.
300+
Let's visit this url first http://localhost:8000/polls/imports_sheet/, where you see a similar file upload form. This time please choose `sample-sheet.xls <https://github.com/pyexcel/django-excel/blob/master/sample-sheet.xls>`_ instead. Then look at django admin and see if the question data have been imported or not.
301301

302302
Now let's look at the code::
303303

@@ -318,7 +318,7 @@ Now let's look at the code::
318318

319319
Becuase it is a single sheet, the function to call is :meth:`~django_excel.ExcelMixin.save_to_database` where you specify a model and its mapping dictionary.
320320

321-
Have you noticed the extra parameter 'name_columns_by_row'? Why is this needed? Well, normally you *will not need* that if you have column names in the first row. In this example, the column names appears in the second row. Please open `sample-sheet.xls <https://github.com/chfw/django-excel/blob/master/sample-sheet.xls>`_ and have a look. The straight answer is because the column names in the data appears in the 2nd row of the data matrix.
321+
Have you noticed the extra parameter 'name_columns_by_row'? Why is this needed? Well, normally you *will not need* that if you have column names in the first row. In this example, the column names appears in the second row. Please open `sample-sheet.xls <https://github.com/pyexcel/django-excel/blob/master/sample-sheet.xls>`_ and have a look. The straight answer is because the column names in the data appears in the 2nd row of the data matrix.
322322

323323
.. note::
324324

0 commit comments

Comments
 (0)