mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 16:12:51 +11:00
Added bare installation docs.
This commit is contained in:
parent
3ce888ad9f
commit
cca489f71e
1 changed files with 41 additions and 0 deletions
41
docs/integration.rst
Normal file
41
docs/integration.rst
Normal file
|
@ -0,0 +1,41 @@
|
|||
=================================================
|
||||
How to integrate dpaste into an existing project:
|
||||
=================================================
|
||||
|
||||
You already have a full Django based project running. If not, and you still
|
||||
want to proceed just create a simple barebone project:
|
||||
|
||||
$ mkvirtualenv dpaste-example
|
||||
$ pip install django south
|
||||
$ django-admin.py startproject myproject
|
||||
|
||||
Install the latest dpaste release in your envoirenment. This will install all
|
||||
necessary dependencies of dpaste as well, **except Django and South**. Since
|
||||
you here integrate dpaste into your project its likely those are already
|
||||
installed::
|
||||
|
||||
pip install https://github.com/bartTC/dpaste
|
||||
|
||||
Add `dpaste` and (preferred) `south` to your `INSTALLED_APPS`::
|
||||
|
||||
INSTALLED_APPS = (
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.staticfiles',
|
||||
# ...
|
||||
|
||||
'dpaste',
|
||||
'south',
|
||||
)
|
||||
|
||||
Add `dpaste` and if you want the `dpaste_api` to your urlpatterns:
|
||||
|
||||
urlpatterns = patterns('',
|
||||
# ...
|
||||
|
||||
url(r'pastebin/', include('dpaste.urls.dpaste')),
|
||||
url(r'pastebin/api/', include('dpaste.urls.dpaste_api')),
|
||||
)
|
||||
|
||||
Finally just migrate:
|
||||
|
||||
manage.py migrate dpaste
|
Loading…
Reference in a new issue