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.

Files for django-feedback-api, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size django-feedback-api-0.2.0.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page