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
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/(?P<wid>[0-9]+)$', ArticleDetailView.as_view()),
url(r'^article/$', ArticleListView.as_view()),
url(r'^api/article/', include('django_article.urls', namespace='django-article')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
^^^^^^^^
Note: This project is still under-development.
Author: 234082230@qq.com
Introduction
---------
- Added Article model
- Added ArticleAdmin, ArticleManager
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/(?P<wid>[0-9]+)$', ArticleDetailView.as_view()),
url(r'^article/$', ArticleListView.as_view()),
url(r'^api/article/', include('django_article.urls', namespace='django-article')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
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
django-article-0.1.1.tar.gz
(363.1 kB
view hashes)
Built Distribution
django_article-0.1.1-py2-none-any.whl
(373.6 kB
view hashes)
Close
Hashes for django_article-0.1.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9d2996139913ba3c80ebbad787abdf6b163f85c0ce4a888526f3b5a91d46257 |
|
MD5 | dcddb6319af76edc20e6a5b7bb789d51 |
|
BLAKE2b-256 | dc0b2e1a5d63137c7935dc39fd23fb6539c9069141c4ef6df7e2313eb461da54 |