Giter Site home page Giter Site logo

micropyramid / django-blog-it Goto Github PK

View Code? Open in Web Editor NEW
229.0 22.0 93.0 1.43 MB

django blog - complete customization and ready to use with one click installer

License: MIT License

Python 36.36% HTML 59.85% JavaScript 3.79%
django django-blog python

django-blog-it's Introduction

django-blog-it

https://readthedocs.org/projects/django-blog-it/badge/?version=latest Latest Release https://travis-ci.org/MicroPyramid/django-blog-it.svg?branch=master https://coveralls.io/repos/github/MicroPyramid/django-blog-it/badge.svg?branch=master Code Health Codacy Badge

Simple blog package developed with Django.

Features:

  • Dynamic blog articles
  • Blog pages
  • Contact us page (configurable)
  • google analytics
  • SEO compliant

Installation

  1. Install django-blog-it using the following command:

    pip install django-blog-it
    
    
            (or)
    
    git clone git://github.com/micropyramid/django-blog-it.git
    
    cd django-blog-it
    
    python setup.py install
    
  2. Add app name in settings.py:

    INSTALLED_APPS = [
       '..................',
       'simple_pagination',
       'django_blog_it.django_blog_it',
       '..................'
    ]
    
  3. Include the django_blog_it urls in your urls.py:

    from django.conf.urls import include
    
    urlpatterns = [
        url(r'^admin/', admin.site.urls),
        url(r'', include('django_blog_it.urls')),
    ]
    
  4. After installing/cloning this, add the following settings in the virtual env/bin/activate file to start discussions on blog articles

    You can create your disqus account at https://disqus.com/profile/login/
    
    # Disquss details
    
    DISQUSSHORTNAME="Your Disquss Short Name"
    
    export DISQUSSHORTNAME
    
    # google api key for short url
    
    API_KEY="google api key"
    
    export API_KEY
    
    # google captcha
    
    GOOGLE_CAPTCHA_SITE_KEY="Site key"
    
    export GOOGLE_CAPTCHA_SITE_KEY
    
    GOOGLE_CAPTCHA_SECRET_KEY="Secret key"
    
    export GOOGLE_CAPTCHA_SECRET_KEY
    
    # Google Analytics Account
    
    GOOGLE_ANALYTICS_ID="UA-123456789"
    
    export GOOGLE_ANALYTICS_ID
    
    # Google Login
    
    GP_CLIENT_ID="google client id"
    
    export GP_CLIENT_ID
    
    GP_CLIENT_SECRET="secret key"
    
    export GP_CLIENT_SECRET
    
    # Facebook Login
    
    FB_APP_ID="facebook app id"
    
    export FB_APP_ID
    
    FB_SECRET="023df180c6d868e76a02aec17134c843"
    
    export FB_SECRET
    
    # Default E-mail
    
    DEFAULT_EMAIL="[email protected]"
    
    export DEFAULT_EMAIL
    
  5. If you cloned the package from git use virtualenv to install requirements:

    pip install -r requirements.txt
    

You can try it by hosting on your own or deploy to Heroku with a button click.

Deploy To Heroku:

Visit our Django web development page Here

We welcome your feedback and support, raise github ticket if you want to report a bug. Need new features? Contact us here

django-blog-it's People

Contributors

ashwin31 avatar chaitu210 avatar dependabot[bot] avatar druuu avatar durwasa-chakraborty avatar nikhila05 avatar prashant0493 avatar shirishagaddi avatar srosro avatar sumitjain01 avatar vidyasagar-r avatar vineeshan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-blog-it's Issues

Customize django-blog-it

  • Model extending

  • documentation for customization

    django-blog-it to create your own Blog with additional data.

schema tags

  • breadcrumbs, schema
  • blog article schema
  • author schema

content modification

cannot modify the navigation bar brand name and also can't add navigation bar options !

Image url is chnging randomly

when i'm uploading image it is being saved in 'static/blog/uploads/%Y/%m/%d/' ,,but while retrieving the image url is changing according to slug, .for example i saved image initially in 'http://127.0.0.1:8000/static/blog/uploads/2019/02/14/IMG_20180822_185720714.jpg' , but when i'm opening ,my blog to for continue reading url changes to 'http://127.0.0.1:8000/blog/data-science-blog/static/blog/uploads/2019/02/14/IMG_20180822_185720714.jpg' . How i can cope up with this .How to use slug field properly.

Adding existing tags when editing an article?

Hi, I'm using the django_blog_it, when editing an article with a lot of tags, you have to manually enter these tags, since they do not appear in the tag field. How can I solve this problem?
Thanks in advance.

Heroku deploy failing.

-----> Python app detected
-----> Installing python-3.6.8
-----> Installing pip
-----> Installing SQLite3
-----> Installing requirements with pip
Collecting boto==2.40.0 (from -r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/41/b4/f788bf1ed5f35f2dc29410f41a38688584d25babbfdf2528b09e00a77438/boto-2.40.0-py2.py3-none-any.whl (1.3MB)
Collecting Django==1.11.21 (from -r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/a2/84/9f66e359ba8e63cf9b54f6815ed55188dda43cd1cc951a8bb95542dee956/Django-1.11.21-py2.py3-none-any.whl (6.9MB)
Collecting django-simple-pagination==1.1.4 (from -r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/68/b8/2d27c49f1a500e67d05501c3b5aecf02800cfd6d534cd2e79fa6c631932e/django-simple-pagination-1.1.4.tar.gz
Collecting django-storages==1.4.1 (from -r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/14/94/0a90cd3e36a0db7a46126aad0c91a5365b0fbb94de378c198afae9740645/django_storages-1.4.1-py2.py3-none-any.whl (41kB)
Collecting Pillow==4.3.0 (from -r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/3c/5c/44a8f05da34cbb495e5330825c2204b9fa761357c87bc0bc1785b1d76e41/Pillow-4.3.0-cp36-cp36m-manylinux1_x86_64.whl (5.8MB)
Collecting requests==2.20.0 (from -r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/f1/ca/10332a30cb25b627192b4ea272c351bce3ca1091e541245cccbace6051d8/requests-2.20.0-py2.py3-none-any.whl (60kB)
Collecting gunicorn==19.6.0 (from -r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/72/de/ec28a64885e0b390063379cca601b60b1f9e51367e0c76030ac8a5cddd5e/gunicorn-19.6.0-py2.py3-none-any.whl (114kB)
Collecting whitenoise==3.1 (from -r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 8))
Downloading https://files.pythonhosted.org/packages/3f/6d/020ae7ab9b53e1969a6c2f7e985b9296c7e820305405249fdf18d271282c/whitenoise-3.1-py2.py3-none-any.whl
Collecting dj-database-url==0.4.1 (from -r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 9))
Downloading https://files.pythonhosted.org/packages/39/9f/30f937db9f9e7a4e4e3205682af4c34c65d647ff9850897ddfbbf5dc6178/dj-database-url-0.4.1.tar.gz
Collecting psycopg2==2.7.1 (from -r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 10))
Downloading https://files.pythonhosted.org/packages/90/bb/fd1a81e1a51b2df2d825e778fd58d508a4fc9ab360684348222bda3ff704/psycopg2-2.7.1-cp36-cp36m-manylinux1_x86_64.whl (2.7MB)
Collecting microurl==0.1.1 (from -r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 11))
Downloading https://files.pythonhosted.org/packages/8b/79/d095ee579956afa6dd7d5bd7da6c2c0b014ab0db191e433f7684dab75675/microurl-0.1.1.tar.gz
Collecting pytz (from Django==1.11.21->-r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/87/76/46d697698a143e05f77bec5a526bf4e56a0be61d63425b68f4ba553b51f2/pytz-2019.2-py2.py3-none-any.whl (508kB)
Collecting olefile (from Pillow==4.3.0->-r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/34/81/e1ac43c6b45b4c5f8d9352396a14144bba52c8fec72a80f425f6a4d653ad/olefile-0.46.zip (112kB)
Collecting certifi>=2017.4.17 (from requests==2.20.0->-r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/69/1b/b853c7a9d4f6a6d00749e94eb6f3a041e342a885b87340b79c1ef73e3a78/certifi-2019.6.16-py2.py3-none-any.whl (157kB)
Collecting idna<2.8,>=2.5 (from requests==2.20.0->-r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB)
Collecting chardet<3.1.0,>=3.0.2 (from requests==2.20.0->-r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting urllib3<1.25,>=1.21.1 (from requests==2.20.0->-r /tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/01/11/525b02e4acc0c747de8b6ccdab376331597c569c42ea66ab0a1dbd36eca2/urllib3-1.24.3-py2.py3-none-any.whl (118kB)
Installing collected packages: boto, pytz, Django, django-simple-pagination, django-storages, olefile, Pillow, certifi, idna, chardet, urllib3, requests, gunicorn, whitenoise, dj-database-url, psycopg2, microurl
Running setup.py install for django-simple-pagination: started
Running setup.py install for django-simple-pagination: finished with status 'done'
Running setup.py install for olefile: started
Running setup.py install for olefile: finished with status 'done'
Running setup.py install for dj-database-url: started
Running setup.py install for dj-database-url: finished with status 'done'
Running setup.py install for microurl: started
Running setup.py install for microurl: finished with status 'done'
Successfully installed Django-1.11.21 Pillow-4.3.0 boto-2.40.0 certifi-2019.6.16 chardet-3.0.4 dj-database-url-0.4.1 django-simple-pagination-1.1.4 django-storages-1.4.1 gunicorn-19.6.0 idna-2.7 microurl-0.1.1 olefile-0.46 psycopg2-2.7.1 pytz-2019.2 requests-2.20.0 urllib3-1.24.3 whitenoise-3.1
-----> $ python sandbox/manage.py collectstatic --noinput
Traceback (most recent call last):
File "sandbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/init.py", line 364, in execute_from_command_line
utility.execute()
File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/init.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 199, in handle
collected = self.collect()
File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 115, in collect
for path, storage in finder.list(self.ignore_patterns):
File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/finders.py", line 112, in list
for path in utils.get_files(storage, ignore_patterns):
File "/app/.heroku/python/lib/python3.6/site-packages/django/contrib/staticfiles/utils.py", line 28, in get_files
directories, files = storage.listdir(location)
File "/app/.heroku/python/lib/python3.6/site-packages/django/core/files/storage.py", line 397, in listdir
for entry in os.listdir(path):
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/build_a3434d6dd43d5544a2406f6b655b3189/sandbox/static'
! Error while running '$ python sandbox/manage.py collectstatic --noinput'.
See traceback above for details.
You may need to update application code to resolve this error.
Or, you can disable collectstatic for this application:
$ heroku config:set DISABLE_COLLECTSTATIC=1
https://devcenter.heroku.com/articles/django-assets
! Push rejected, failed to compile Python app.
! Push failed

Facebook Login Not Working

Facebook Login not working at all. Lots of methods not found. Having trouble getting the access token. Please help

Easy html and css overwriting

First of all, I do not have may experiences with package modification so please be patient.

I need to integrate the app in my project and to have a functional blog page. For this i need a integrated solution but that will use my base.html and design model.

To have possibility to create a new_base.html that will change all the blog-it pages.
More details about CSS classes and how to change the design. At least to have the possibility to change the color pallet.

add seo

  • meta title
  • meta description
  • meta keywords
  • og:image
  • og:url
  • og:description
  • og:title
  • canonical url
  • meta robots

blog post history

blog post should have history to see all the actions performed on the post.

add post access to all users

Hi,

I have added the blog to my app but currently, the access to add blog is by the admin only. How do I make sure that anyone i.e all users can add blogs but the admin has the access to flag it for deletion?

thanks

display post revision history

need option to publish old versions. this just increase the version and add next versoin with the chosen version content

Working example

Does anyone have an example of this code in its working form?

I'm interested to download this Django micro pyramid blog but I am curious to see what it looks like, so I'm hoping someone can share a screenshot of the finished product.

Question: Where are the blog posts?

After creating a post, I don't see any link pointing to it. How do I navigate to the post?

FWIW: We can totally track this down in the source, but it might be helpful to new users to add this in the documentation

AMP support

we need option to enable AMP pages for blog detail pages with a separate customizable template/theme

trash management

  • Move to Trash.
  • Restore blog post from trash.
  • Delete from trash for permenant deletion.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.