Skip to content

Commit

Permalink
Merge pull request #62 from damascene/master
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
slyapustin authored Jan 1, 2023
2 parents e61e74c + d08effa commit 0b9c638
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,41 @@ Demo project with user registration (via Email/Facebook) available [here](https:

```python
INSTALLED_APPS = [
# Django applications required by Django Classified
# Default Django applications
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.humanize',
'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.sitemaps',
'django.contrib.sites',
'django.contrib.staticfiles',


# Required by Django Classified
'django.contrib.sites',
'django.contrib.humanize',
'django.contrib.sitemaps',

# External applications required by Django Classified
'bootstrapform',
'sorl.thumbnail',

# Django Classified
'django_classified',
]
```

* Add `url(r'', include('django_classified.urls', namespace='django_classified')),` to the project `urls.py` file:
* Add `SITE_ID` to `settings.py` file:

```python
SITE_ID = 1
```

* Import `include` in addition to `path` and add `url(r'', include('django_classified.urls', namespace='django_classified')),` to the project `urls.py` file:

```python
from django.urls import path, include

urlpatterns = patterns(
url(r'', include('django_classified.urls', namespace='django_classified'),
path(r'', include('django_classified.urls', namespace='django_classified')),
)
```

Expand Down

0 comments on commit 0b9c638

Please sign in to comment.