Djangoarticle: Django Reusable app to Publish Articles.
Project description
Djangoarticle : Django Reusable app to Publish Articles.
Djangoarticle is a Reusable Django app which provides a full featured Article Model. The Djangoarticle's Article Model is rich features and powerful enough to start a Blog and News website, without installation of any 3rd party packages.
Installation :
You can install Djangoarticle from PyPI using pip.
pip install djangoarticle
Configuration :
1. Open the settings.py
module of your project, And put djangoarticle into INSTALLED_APPS
.
INSTALLED_APPS = ( ... 'djangoarticle', ... )
2. Open the urls.py
module of your project, And include djangoarticle URLs.
urlpatterns = [ ... re_path(r'^article/', include('djangoarticle.urls')), ... ]
3. Setup the Templates for djangoadmin.
Important Note: Djangoadmin App is a part of Djangoengine project. And if you want to access UI part of Djangoadmin App, You need to configure some Reusable/global templates to your django project or you can create your own templates, It's very easy.
TEMPLATES = [ ... ... 'DIRS': [os.path.join(BASE_DIR, 'templates'),], ... ... ]
Create the templates
folder inside BASE_DIR
and Then create djangoadmin
folders inside the templates folder.
Then download the djangoadmin templates and put them inside the djangoadmin
folder.
4. Static files configuration.
Open your settings.py
module and Configure Static files and media files or you can can use your own configuration.
STATIC_URL = '/static/' STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static-local'),) STATIC_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'static-root', 'static') MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(os.path.dirname(BASE_DIR), 'static-root', 'media')
Create the static-local
folder inside BASE_DIR
, Then create djangoadmin
folders inside that static-local
folder.
And also download the djangoadmin static files and put them inside the djangoadmin
folder.
Complete the Djangoarticle setup by running the following command one by one in the sequence.
python manage.py makemigrations djangoarticle python manage.py migrate djangoarticle python manage.py collectstatic python manage.py runserver
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
Built Distribution
Hashes for djangoarticle-2.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e29449d70ee8b4164fdb8486659cf08a017d9a1b72bcd8e20e026c7ca9c36a33 |
|
MD5 | 076f6f8e9533e05c26d0b8a737514111 |
|
BLAKE2-256 | 044404ea2f71cd8a8108a63daa9858da5b41ef1dd7510ec498ab78bc2b3b9bae |