Skip to content

Commit

Permalink
README updates
Browse files Browse the repository at this point in the history
  • Loading branch information
issackelly committed Mar 19, 2011
1 parent 4b9b0fa commit 44c4427
Showing 1 changed file with 7 additions and 32 deletions.
39 changes: 7 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,65 +6,40 @@ This is an alpha version of servee and may contain many bugs.

First you should put servee in your environment:

pip install -e git+git://github.com/servee/servee.git#egg=django-servee
pip install -e git+git://github.com/servee/servee.git@features/replace_frontendadmin#egg=django-servee
# servee is on PyPI as django-servee, but it is out of date

or download and

./setup.py install
./setup.py develop

I pip is not setup to read the other dependancies from there so navigate to your servee folder in your path now (<env>/src/servee, or wherever you downloaded from) and do pip install -r requirements.txt

Then add servee to installed apps and add the two middleware packages.

INSTALLED_APPS = [
#servee_dependancies
"frontendadmin",
"staticfiles",
"easy_thumbnails",
"uni_form",

#servee
"servee",
"improved_inlines",
"servee.wysiwyg",
"servee.wysiwyg.tinymce",
"servee.toolbar",

#media
"servee.contrib.media.image",
"servee.contrib.media.video",
"servee.contrib.media.document",
"servee.contrib.media.gallery",

#toolbars
"servee.contrib.tools.gallery",
"servee.contrib.media.image",
]

MIDDLEWARE_CLASSES

"servee.wysiwyg.middleware.WysiwygMiddleware",
"servee.toolbar.middleware.ToolbarMiddleware",

Also Add this setting to settings.py

# Currently, it's overkill, since there is just one WYSIWYG
# Editor supported.
# Editor supported. Please write and submit another :)
SRV_WYSIWYG_EDITOR = "tinymce"

Then syncdb and collectstatic (if you are on production)
Then syncdb, or migrate and collectstatic (if you are on production)

It's important to add servee urls and frontendadmin urls

url(r"^servee/", include("servee.urls")),
url(r"^fa/", include("frontendadmin.urls")),


Add to your base template

<link rel="stylesheet" href="{{ STATIC_URL }}css/djAdmin.css" />

Now change your templates on pages you wish to edit to add [frontend admin][fa]:


[fa][http://github.com/bartTC/django-frontendadmin]
from servee import frontendadmin
url(r"^servee/", include(frontendadmin.site.urls)),

0 comments on commit 44c4427

Please sign in to comment.