Skip to main content

Django aritcle app!

Project description

django-article
^^^^^^^^
Note: This project is still under-development.

Author: 234082230@qq.com

Introduction
---------
- Added Article model
- Added ArticleAdmin, ArticleManager
- Added Article list, detail api
- Added Article list, detail view

settings.py
---------
::

INSTALLED_APPS = [
...
'django_article',
...
]

TEMPLATES = [
{
...

'DIRS': ['templates'],

...
}
]

urls.py
---------
::

from django.conf import settings
from django.conf.urls import url, include
from django.conf.urls.static import static
from django.contrib import admin
from django.views.i18n import JavaScriptCatalog
from django_article.views.user import UserLoginView, UserLogoutView, UserRegisterView

urlpatterns = [
url(r'^jsi18n/$', JavaScriptCatalog.as_view(), name='javascript-catalog'),

url(r'^admin/', admin.site.urls),

url(r'^article/list/', ArticleListView.as_view()),
url(r'^article/(?P<aid>[0-9]+)/$', ArticleDetailView.as_view()),

url(r'^api/article/', include('django_article.urls', namespace='django-article')),

] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

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-article-0.1.2.tar.gz (363.1 kB view details)

Uploaded Source

Built Distribution

django_article-0.1.2-py3-none-any.whl (373.6 kB view details)

Uploaded Python 3

File details

Details for the file django-article-0.1.2.tar.gz.

File metadata

File hashes

Hashes for django-article-0.1.2.tar.gz
Algorithm Hash digest
SHA256 08ae76f3d06e0300d1418b77bc92f7f26fd19ed1604e1e942f6cda23b37da508
MD5 42c5fdd2fff21629265f5cc4ad71e292
BLAKE2b-256 62617717373701ba819438fada401bb36b4925dacda7c68653fd1b0db89acff0

See more details on using hashes here.

File details

Details for the file django_article-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for django_article-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4be84a2ed82a3ce9cf3ba916d3b984c81ddef85328b75a10fb314f7fa5483298
MD5 55c916aedac7b8aea4ca492c208c1d1d
BLAKE2b-256 a0c362158acd0afb9b6f13957988049e5ff8687b8121fb5397c9e313b1ed91ba

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