{ "info": { "author": "Christian Bianciotto", "author_email": "bianciotto@bitcircle.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7" ], "description": "# django-static-sites\n\n*django-static-sites* is an easy to use *Django* app that allow you to create a static sites with the power of Django\ntemplate system. You can render an existing *Django* view by adding a decorator or you can create an empty project\noptimized for *django-static-sites* use. You can specify multiple configuration for multiple deploy type.\n\n[GitHub](https://github.com/ciotto/django-static-sites)\n\n\n## How to start\n\n1. install *django-static-sites* in your python path or in your *virtualenv* path\n(`pip install django-static-sites`) or (`pip install https://github.com/ciotto/django-static-sites/archive/master.zip`)\n2. create an empty optimized project by `django-static-admin startproject PROJECT_NAME` command\n3. move to the `PROJECT_NAME` folder and create site by `python manage.py startsite SITE_NAME` command\n4. migrate `python manage.py migrate`\n5. deploy `python manage.py deploy`\n6. start server `python manage.py runserver`\n7. enjoy it at [http://127.0.0.1:8000](http://127.0.0.1:8000) **:-)**\n\n\n## How to use\n\nIf you want to use the *Django* template system, you must to add a function in your `views.py` file and add the\n`@staticview` decorator:\n\n```python\n@staticview\ndef index(request):\n ctx = {'title': 'Hello world!'}\n\n return render_to_response('index.html', ctx, context_instance=RequestContext(request))\n```\n\nand the `index.html` template file in your templates folder:\n\n```html\n\n\n
\n \n\n