Procházet zdrojové kódy

Improved the documentation, bumped the version to 1.3.2, fixed the license in setup.py

tags/v1.3.2
Isaac Bythewood před 11 roky
rodič
revize
c510be3de4
7 změnil soubory, kde provedl 128 přidání a 23 odebrání
  1. +33
    -0
      docs/basic_customization.rst
  2. +2
    -2
      docs/conf.py
  3. +36
    -4
      docs/deployment.rst
  4. +10
    -4
      docs/getting_started.rst
  5. +13
    -11
      docs/index.rst
  6. +32
    -0
      docs/running_on.rst
  7. +2
    -2
      setup.py

+ 33
- 0
docs/basic_customization.rst Zobrazit soubor

@@ -0,0 +1,33 @@
Basic Customization
===================


Since we use the standard Django templating system you can edit
``pinry/templates`` and ``pinry/static`` to change the overall look and feel of
Pinry. It's all basic HTML, CSS and JS built on top of Bootstrap and some custom
JavaScript plugins, we don't provide any support for modifications to any of
this and future updates of Pinry may need to overwrite your changes so use
caution when changing the way Pinry looks.


Custom Settings
---------------

We currently have two custom settings you can change in
``pinry/settings/__init__.py``::

# Set to False to disable people from creating new accounts.
ALLOW_NEW_REGISTRATIONS = False

# Set to False to force users to login before seeing any pins.
PUBLIC = True

``ALLOW_NEW_REGISTRATIONS`` by default is set to False to prevent random people
from signing up to your Pinry, to create new private users you can use Django's
``createsuperuser``, add them to the database manually or open registrations
temporarily while you get your friends/family/coworkers to sign up.

``PUBLIC`` by default is set to True, if you set to False users will have to
login to see any of your pins. This is a great way to create a completely
private system for a few users or just yourself.


+ 2
- 2
docs/conf.py Zobrazit soubor

@@ -51,9 +51,9 @@ copyright = u'2013, Isaac Bythewood'
# built documents. # built documents.
# #
# The short X.Y version. # The short X.Y version.
version = '1.3.1'
version = '1.3.2'
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '1.3.1'
release = '1.3.2'


# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.


+ 36
- 4
docs/deployment.rst Zobrazit soubor

@@ -1,10 +1,42 @@
Deployment Deployment
========== ==========


Deployment for a Django project is easier than most other frameworks and
languages but it's harder than a PHP project. We recommend using Docker to
deploy Pinry and we already have a Dockerfile created for you to do this. If
you'd like to deploy via another method please see `Django's documentation`_ on
the subject.


Notes On Deployment
-------------------

While we don't want to go in depth on Django deployment you will need a few tips
for Pinry specific configuration. While most of Pinry acts like a standard
Django project we have a special settings setup.

By default Django just has a single ``settings.py`` file in it's project folder,
we deviate from this in that we have a ``settings`` folder, ``pinry/settings``.
To change the base settings of Pinry you can play with
``pinry/settings/__init__.py`` but never import or run directly by pointing to
``pinry/settings`` or ``pinry/settings/__init__.py``, instead use
``pinry/settings/development.py`` and ``pinry/settings/production.py``. For a
production deployment you're going to need to edit ``production.py`` and point
that at the correct database and add your own ``SECRET_KEY``. Also note that
you're going to have to add the setting ``ALLOWED_HOSTS`` to point at the host
names going to your server or Django will block everyone trying to access your
site.


Using Docker
------------

Our supported and suggested way to deploy Pinry is using Docker. We provide Our supported and suggested way to deploy Pinry is using Docker. We provide
support and instructions for that over at the
[docker-pinry GitHub repository](https://github.com/pinry/docker-pinry).
support and instructions for that over at the `docker-pinry GitHub repository`_.


.. Links


If you'd like a different setup then check out the hundreds of tutorials
for production Django deployment found via Google.
.. _Django's documentation: https://docs.djangoproject.com/en/1.5/howto/deployment/
.. _docker-pinry GitHub repository: https://github.com/pinry/docker-pinry



+ 10
- 4
docs/getting_started.rst Zobrazit soubor

@@ -1,20 +1,26 @@
Getting Started Getting Started
=============== ===============


Below are the most basic requirements and a small test to make sure everything
is running properly before you get into the heavy lifting. Alternatively you can
skip to deployment and use our Dockerfile that will build and run everything for
you!


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


Pinry is built on top of Django and optimized to run on a Linux environment. Pinry is built on top of Django and optimized to run on a Linux environment.
However we have gotten Pinry to work on Windows and Mac as well but it may However we have gotten Pinry to work on Windows and Mac as well but it may
require some extra digging around configuration. Pinry's Python requirements are require some extra digging around configuration. Pinry's Python requirements are
all in the `requirements.txt` file and easily installable once you have up a
all in the ``requirements.txt`` file and easily installable once you have up a
virtual environment. What you need initially: virtual environment. What you need initially:


* Python * Python
* pip
* virtualenv * virtualenv
* Your OS's build tools (Ubuntu: `build-essential`, Mac: `Xcode`)
* Build dependencies for PIL/Pillow (Ubuntu: `apt-get build-dep python-imaging`)
* pip
* Pillow build dependencies or the most recent version installed on your OS and
use ``virtualenv --system-site-packages`` when initiating virtualenv.


After you have all of the above you can skip to Testing and make sure it all After you have all of the above you can skip to Testing and make sure it all
works. works.


+ 13
- 11
docs/index.rst Zobrazit soubor

@@ -6,24 +6,26 @@ to save, tag, and share images, videos and webpages in an easy to skim through
format. format.




Documentation
-------------

.. toctree::
:maxdepth: 2

getting_started
basic_customization
running_on
deployment


Useful Links Useful Links
------------ ------------


* Get Pinry: http://getpinry.com/ * Get Pinry: http://getpinry.com/
* About Pinry: http://getpinry.com/about/ * About Pinry: http://getpinry.com/about/
* Pinry Demo: http://demo.getpinry.com/ * Pinry Demo: http://demo.getpinry.com/
* Pinry Issues: https://github.com/pinry/pinry/issues
* pinry/pinry: https://github.com/pinry/pinry * pinry/pinry: https://github.com/pinry/pinry
* pinry/docker-pinry: https://github.com/pinry/docker-pinry * pinry/docker-pinry: https://github.com/pinry/docker-pinry
* pinry/getpinry.com: https://github.com/pinry/getpinry.com * pinry/getpinry.com: https://github.com/pinry/getpinry.com




Documentation
-------------

.. toctree::
:maxdepth: 2

getting_started
deployment


+ 32
- 0
docs/running_on.rst Zobrazit soubor

@@ -0,0 +1,32 @@
Running On...
=============

The system that we use and recommend you running Pinry on is Ubuntu. That being
said we provide buildout configs and pay very close attention to all other
operating systems, you should be able to develop/test/deploy pinry on every
platform, we just don't give support for them.


Ubuntu
------

Ubuntu is pretty simple to get Pinry running get some of our required packages
first::

sudo apt-get install python-virtualenv git
sudo apt-get build-dep python-imaging

Then you'll need to get Pinry and setup our virtualenv::

git clone https://github.com/pinry/pinry.git
cd pinry
virtualenv .
bin/pip install -r requirements.txt

From here you have a full working install of Pinry! You can:

* Run some tests: ``bin/python manage.py test``
* Run a development server: ``bin/python manage.py runserver``
* Edit the settings files: ``pinry/settings``
* Customize the theme: ``pinry/templates`` + ``pinry/static``


+ 2
- 2
setup.py Zobrazit soubor

@@ -20,12 +20,12 @@ install_requires = [


setup( setup(
name="Pinry", name="Pinry",
version="1.3.1",
version="1.3.2",
author="Pinry Contributors", author="Pinry Contributors",
author_email="devs@getpinry.com", author_email="devs@getpinry.com",
description=("A tiling image board system for people who want to save, " description=("A tiling image board system for people who want to save, "
"tag, and share images, videos and webpages."), "tag, and share images, videos and webpages."),
license="AGPL-3+",
license="Simplified BSD",
keywords="django tiling board tag share images pictures videos webpages", keywords="django tiling board tag share images pictures videos webpages",
url="http://getpinry.com/", url="http://getpinry.com/",
packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]), packages=find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"]),


Načítá se…
Zrušit
Uložit