semvec/pypi-packages huggingface dataset:
django-oscar-wagtail 0.2.0
Integration between Django Oscar and Wagtail
License: MIT

Django Oscar Wagtail
====================

.. image:: https://travis-ci.org/LabD/django-oscar-wagtail.svg?branch=travis
    :target: https://travis-ci.org/LabD/django-oscar-wagtail
    
This project integrates the Wagtail CMS with Django Oscar for eCommerce. It
adds the following features:

- each Oscar category page can now be managed by the Wagtail CMS
- it is possible to add product lists to wagtail pages



Installation
------------

Presuming you have installed Django-Oscar and Wagtail into your Django project.

First install django-oscar-wagtail via PIP:

.. code-block:: bash

    pip install django-oscar-wagtail

And add ``oscar_wagtail`` to your settings as follows:

.. code-block:: python

    INSTALLED_APPS = [
        # ... your other apps
        'oscar_wagtail',
    ]

Add the URLs to ``urls.py``:

.. code-block:: python

    import oscar_wagtail.urls

    urlpatterns += [
        url(r'^api/oscar_wagtail/', include(oscar_wagtail.urls, namespace='oscar_wagtail')),
    ]

Fork the catalogue app as described in the `oscar documentation`_. Then instead of
using the AbstractCategory from Oscar use the one from this project as follows:

.. code-block:: python

    from oscar_wagtail.abstract_models import AbstractCategory


    class Category(AbstractCategory):
        pass

    from oscar.apps.catalogue.models import * 


If you want to have a CMS button in the Oscar dashboard, add the following to your settings:

.. code-block:: python

    OSCAR_DASHBOARD_NAVIGATION.insert(1, {
        'label': 'CMS',
        'icon': 'icon-th-list',
        'url_name': 'wagtailadmin_home',
        'access_fn': lambda user, *args: user.has_perm('wagtailadmin.access_admin')
    })

.. _oscar documentation: http://django-oscar.readthedocs.io/en/latest/topics/fork_app.html
django-translation-server 0.5.7.2.1
A Django translation server
License: MIT


=====
Django translation server
=====

Django translation server is a simple Django app to manage the project translations.

Obs: currently this projects only works with PostgreSQL database. Support for others databases will be added in future releases


Supported databases
-----------
- [x] PostgreSQL
- [ ] MySQL
- [ ] Sqlite



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

Django REST framework - http://www.django-rest-framework.org/
django-filter
django-modeltranslation - http://django-modeltranslation.readthedocs.io/en/latest/installation.html#using-pip
PostgreSQL database - https://www.postgresql.org/
psycopg2 - https://pypi.python.org/pypi/psycopg2

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

1. Add "translation_server" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        ...
        'translation_server',
    ]

2. Include the Translation Server URLconf in your project urls.py like this::

    from django.conf.urls import url, include
    from rest_framework import routers
    from translation_server import views as translation_server_views

    router = routers.DefaultRouter()
    router.register(r'translation', translation_server_views.TranslationViewSet, 'translations')
    router.register(r'translation_type', translation_server_views.TranslationTypeViewSet, 'translations_types')

    urlpatterns = [
        ...
        url(r'^api/', include(router.urls, namespace='api'), ),
        url(r'^api/last_translation_tag/(?P<tag>\w+)[/]?$', translation_server_views.LastTranslationTagView.as_view(), name='get_last_translation_tag'),
        ...
    ]


3. Run ```python manage.py makemigraions``` and ```python manage.py migrate``` to create the Translation models, and load the initial data.

4. Run ```python manage.py collectstatic``` to collect the necessary static files.

5. Start the development server and visit http://127.0.0.1:8000/admin/ to create a translation (you'll need the Admin app enabled).

6. Visit http://127.0.0.1:8000/api/translation/ to view all translations

7. Run `python manage.py translate` to apply the basic translations for en-US and pt-BR
uwsgi_cli 1.1
a simple uwsgi client
License: MIT
Keywords: uwsgi,fengyun,ruifengyun

# uwsgi_cli

### support http get、post methods

## install
```
pip install uwsgi_cli
```

## help
```
uwsgi_cli -h
```

if not found uwsgi_cli bin, please set PATH . ( /usr/local/bin/ )


### http mode
```
uwsgi_cli http 127.0.0.1:5000 /blog
```

### unix socket mode
```
uwsgi_cli unix /tmp/xiaorui.sock /
```

### tcp socket mode
```
uwsgi_cli tcp 127.0.0.1:5000 /mp/article
```
### post
```
uwsgi_cli tcp 127.0.0.1:5000 /cool/fetch "url=xiaorui.cc&name=fengyun"
```