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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-feedback-api-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bab97845effa385f30e4d21dd7997682e67eca32043790b6704d9f9ec8dca779 |
|
MD5 | 8b0062873e9224a9d6e7bd002c77df18 |
|
BLAKE2b-256 | 5217cc7ad550f9a965e82adc18f8143ae91e4d9b4b9d385f9dcac8feac136ca5 |