Skip to content

Commit

Permalink
Merge e5ffb9c into 9ab669f
Browse files Browse the repository at this point in the history
  • Loading branch information
srosro committed Dec 31, 2017
2 parents 9ab669f + e5ffb9c commit a7b3982
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: python
python:
- "3.4"
- "3.6.3"

#Django & Database
addons:
Expand Down
22 changes: 12 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ Installation
'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')),
Expand All @@ -76,7 +78,7 @@ Installation
DISQUSSHORTNAME="Your Disquss Short Name"

export DISQUSSHORTNAME

# google api key for short url

API_KEY="google api key"
Expand All @@ -92,33 +94,33 @@ Installation
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

# Facebook Login

FB_APP_ID="facebook app id"

export FB_APP_ID

FB_SECRET="023df180c6d868e76a02aec17134c843"

export FB_SECRET

# Default E-mail

DEFAULT_EMAIL="noreply@djangoblogit.com"
Expand All @@ -137,7 +139,7 @@ Deploy To Heroku:
.. image:: https://www.herokucdn.com/deploy/button.svg
:target: https://heroku.com/deploy?template=https://github.com/MicroPyramid/django-blog-it

Visit our Django web development page `Here`_
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`_

Expand Down
10 changes: 5 additions & 5 deletions django_blog_it/posts/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ def test_blog_get(self):

response = self.client.get('/')
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'posts/index.html')
self.assertTemplateUsed(response, 'posts/new_index.html')

response = self.client.get('/blog/'+str(self.blogppost.slug)+'/')
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'posts/blog_view.html')
self.assertTemplateUsed(response, 'posts/new_blog_view.html')

response = self.client.get('/blog/category/'+str(self.category.slug)+'/')
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'posts/index.html')
self.assertTemplateUsed(response, 'posts/new_index.html')

response = self.client.get('/blog/tags/'+str(self.tag.slug)+'/')
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'posts/index.html')
self.assertTemplateUsed(response, 'posts/new_index.html')

response = self.client.get(
'/blog/'+str(self.blogppost.updated_on.year)+'/'+str(self.blogppost.updated_on.month)+'/')
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'posts/index.html')
self.assertTemplateUsed(response, 'posts/new_index.html')
4 changes: 2 additions & 2 deletions django_blog_it/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages',
'django.core.context_processors.request',
'django.template.context_processors.request',
],
},

Expand All @@ -78,4 +78,4 @@
DEBUG = True
EMAIL_PORT = 1025
EMAIL_HOST = '127.0.0.1'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
9 changes: 4 additions & 5 deletions sandbox/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
boto==2.40.0
Django==1.9.6
django-blog-it==0.1
Django==1.11.1
django-simple-pagination==1.1.4
django-storages==1.4.1
Pillow==3.2.0
Pillow==4.3.0
requests==2.10.0
gunicorn==19.6.0
whitenoise==3.1
dj-database-url==0.4.1
psycopg2==2.6.1
microurl==0.1
psycopg2==2.7.1
microurl==0.1.1

0 comments on commit a7b3982

Please sign in to comment.