Skip to content

Commit 42fccd6

Browse files
committed
final fix build :D
1 parent c2b70d1 commit 42fccd6

18 files changed

+32
-32
lines changed
File renamed without changes.

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include LICENSE
22
include README.md
3+
include ChangeLog

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pip install algoliasearch-django
3030
Setup
3131
-------------
3232

33-
In your Django settings, add `AlgoliaSearch` to `INSTALLED_APPS` and add two settings:
33+
In your Django settings, add `django.contrib.algoliasearch` to `INSTALLED_APPS` and add two settings:
3434

3535
```python
3636
ALGOLIA_APPLICATION_ID = 'MyAppID'
@@ -50,14 +50,14 @@ Simply call `AlgoliaSearch.register()` for each of the models you want to index.
5050

5151
```python
5252
from django.apps import AppConfig
53-
import AlgoliaSearch
53+
from django.contrib import algoliasearch
5454

5555
class YourAppConfig(AppConfig):
5656
name = 'your_app'
5757

5858
def ready(self):
5959
YourModel = self.get_model('your_model')
60-
AlgoliaSearch.register(YourModel)
60+
algoliasearch.register(YourModel)
6161
```
6262

6363
And then, don't forget the line below in the `__init__.py` file of your Django application.
@@ -69,7 +69,7 @@ default_app_config = 'your_django_app.apps.YourAppConfig'
6969
By default, all the fields of your model will be used. You can configure the index by creating a subclass of `AlgoliaIndex`. A good place to do this is in a separeted file, like `index.py`.
7070

7171
```python
72-
from AlgoliaSearch import AlgoliaIndex
72+
from django.contrib.algoliasearch import AlgoliaIndex
7373

7474
class YourModelIndex(AlgoliaIndex):
7575
fields = ('name', 'date')
@@ -78,7 +78,7 @@ class YourModelIndex(AlgoliaIndex):
7878
index_name = 'my_index'
7979
```
8080

81-
And then replace `AlgoliaSearch.register(YourModel)` with `AlgoliaSearch.register(YourModel, YourModelIndex)`.
81+
And then replace `algoliasearch.register(YourModel)` with `algoliasearch.register(YourModel, YourModelIndex)`.
8282

8383
## Commands
8484

@@ -110,7 +110,7 @@ class ContactIndex(AlgoliaIndex):
110110
geo_field = 'location'
111111

112112

113-
AlgoliaSearch.register(Contact, ContactIndex)
113+
algoliasearch.register(Contact, ContactIndex)
114114
```
115115

116116
# Options

algoliasearch-django/admin.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

algoliasearch-django/tests.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

algoliasearch-django/version.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

algoliasearch-django/views.py

Lines changed: 0 additions & 3 deletions
This file was deleted.

setup.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
with open(path_readme) as readme:
2121
README = readme.read()
2222

23-
path_version = os.path.join(os.path.dirname(__file__), 'algoliasearch-django/version.py')
23+
path_version = os.path.join(os.path.dirname(__file__), 'src/version.py')
2424
if sys.version_info[0] == 3:
2525
exec(open(path_version).read())
2626
else:
@@ -31,13 +31,21 @@
3131
name = 'algoliasearch-django',
3232
version = VERSION,
3333
license = 'MIT License',
34-
packages = ['django.contrib.algoliasearch'],
35-
package_dir = {'django.contrib.algoliasearch': 'algoliasearch-django'},
34+
packages = [
35+
'django.contrib.algoliasearch',
36+
'django.contrib.algoliasearch.management',
37+
'django.contrib.algoliasearch.management.commands'
38+
],
39+
package_dir = {
40+
'django.contrib.algoliasearch': 'src',
41+
'django.contrib.algoliasearch.management': 'src/management',
42+
'django.contrib.algoliasearch.management.commands': 'src/management/commands'
43+
},
3644
install_requires = ['django', 'algoliasearch'],
3745
description = 'Algolia Search integration for Django',
3846
long_description = README,
3947
author = 'Algolia Team',
40-
author_email = 'hey@algolia.com',
48+
author_email = 'support@algolia.com',
4149
url = 'https://github.com/algolia/algoliasearch-django',
4250
keywords = ['algolia', 'pyalgolia', 'search', 'backend', 'hosted', 'cloud',
4351
'full-text search', 'faceted search', 'django'],
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)