Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

A simple Portfolio APP for djangoCMS.

Project Description
=====
djangocms_portfolio
=====


Quick start
-----------

Install & settings
-------------------

1. Install the app
```
pip install djangocms_portfolio
```


2. Add "portfolio" to your INSTALLED_APPS setting like this

```python

INSTALLED_APPS = [
...
'portfolio',
]
```
3. Add in project URLS

```python

url(r'^portfolio/', include('portfolio.urls')),

```
4. Settings Add in settings.py
```python

WORK_PAGINATION = 5
WORK_LIST_TRUNCWORDS_COUNT = 10

```

5. Migrate

```python

./manage.py migrate
```

6. Run Test Server

```python

./manage.py runserver

```

Requirements
------------

```
DjangoCMS http://www.django-cms.org/en/
django-filer & (dependencies) https://github.com/divio/django-filer
django-taggit https://github.com/alex/django-taggit
```


URLS
------------

```python

url(r'^$', PortfolioWorkListView.as_view(), name='portfolio_list'),
url(r'^tag/(?P<tag>[-\w]+)/$', WorkTagListView.as_view(), name='work_tag'),
url(r'^category/(?P<category>[-\w]+)/$', WorkCategoryListView.as_view(), name='work_category'),
url(r'^(?P<slug>[-\w]+)/$', PortfolioWorkDetailView.as_view(), name='work_detail'),

```


Example usage
--------------

Work Models
-----------

Fields

<ul>
<li>title [CharField]</li>
<li>pub_date [DateTime]</li>
<li>Description [HTMLField]</li>
<li>Category [FK(CategoryWork)]</li>
<li>Tags [TaggableManager()]</li>
<li>client [CharField]</li>
<li>location [CharField]</li>
<li>Head Picture [FilerImageField]</li>
<li>folder [FilerFolderField]</li>
</ul>


Work List
----------

Browse List

```Jinja
{% for work in work_list %}
...
{{work.title}}
{% endfor %}

```

Work Detail
------------

Get Next Or Previous
<ul>
<li>For get Next Work (Navigation) `work.get_next_work` => return (URL)</li>
<li>For get Previous Work (Navigation) `work.get_previous_work` => return (URL)</li>
</ul>

For Get previous work
----------------------

{{work.get_previous_work}}


For Get next work
-----------------

{{work.get_next_work}}


Render work
-----------

<ul>
<li>Title : {{work.title}}</li>
<li>Publish at : {{worl.pub_date}}</li>
<li>Description : {{work.description}}</li>
<li>Category : {{work.category}}</li>
<li>Tags : {% for tag in work.tags.all %}{{tag}}{% endfor %}</li>
<li>client: {{work.client}}</li>
<li>location : {{work.location}}</li>
<li>Head picture : {{work.head_picture}}</li>
<li>Gallery : {% for picture in work.folder.files %}{{picture.url}}{% endfor %}</li>
</ul>
Release History

Release History

This version
History Node

0.6

History Node

0.5

History Node

0.4

History Node

0.3

History Node

0.2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
djangocms_portfolio-0.6.tar.gz (22.3 kB) Copy SHA256 Checksum SHA256 Source Feb 3, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting