Skip to main content

RestAPI

Project description

Requirements

  • django

  • django rest framework

Set up

Simple settings.py:

INSTALLED_APPS = [
    ...
    'rest_framework',
    'django_feedback_api',
]
EMAIL_HOST = 'smtp.yandex.ru'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_TIMEOUT = 5
EMAIL_HOST_USER = 'email@example.com'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = 'email@example.com'
EMAIL_HOST_PASSWORD = 'PASSWORD'
MANAGERS = [('Ivanov Ivan', 'email2@example.com')]
# Optional
FEEDBACK_SUBJECT = 'Django FeedBack: New feedback'

urls.py:

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

Sent POST to http://your.site/api/feedback/.

Project details


Download files

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

Source Distribution

django-feedback-api-0.2.0.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file django-feedback-api-0.2.0.tar.gz.

File metadata

File hashes

Hashes for django-feedback-api-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d342fc3d833d7c461ec17fef61a7dba09378d7dd3d9042017d014fecf468baf6
MD5 f7ccbba75b6135c3cb5c96be2ea43965
BLAKE2b-256 b9f73f4fda3f5569e40178c68720c63ade94c83dbb07c5d6ed57f45e6d054c6a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page