Skip to content

Commit

Permalink
rename example django project, and some small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tzangms committed Dec 15, 2013
1 parent 1647858 commit fb3d0b3
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 15 deletions.
1 change: 0 additions & 1 deletion demo/svcelery_email

This file was deleted.

2 changes: 1 addition & 1 deletion djcelery_ses/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.4.2'
__version__ = '0.5'
4 changes: 3 additions & 1 deletion djcelery_ses/admin.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from django.contrib import admin
from svcelery_email.models import Blacklist, MessageLog

admin.site.register(Blacklist)
class BlacklistAdmin(admin.ModelAdmin):
pass
admin.site.register(Blacklist, BlacklistAdmin)

class MessageLogAdmin(admin.ModelAdmin):
list_display = ('email', 'result', 'created_at')
Expand Down
2 changes: 1 addition & 1 deletion djcelery_ses/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def send_email(message, **kwargs):

# check blacklist
try:
Blacklist.objects.get(email=message.to[0])
Blacklist.objects.get(email=message.to[0], type=0)
logger.debug("Email already in blacklist.")
return
except Blacklist.DoesNotExist:
Expand Down
1 change: 1 addition & 0 deletions example/djcelery_ses
File renamed without changes.
6 changes: 3 additions & 3 deletions demo/demo/settings.py → example/example/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Django settings for demo project.
Django settings for example project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
Expand Down Expand Up @@ -49,9 +49,9 @@
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

ROOT_URLCONF = 'demo.urls'
ROOT_URLCONF = 'example.urls'

WSGI_APPLICATION = 'demo.wsgi.application'
WSGI_APPLICATION = 'example.wsgi.application'


# Database
Expand Down
5 changes: 1 addition & 4 deletions demo/demo/urls.py → example/example/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
admin.autodiscover()

urlpatterns = patterns('',
# Examples:
# url(r'^$', 'demo.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),

url(r'^djcelery_ses/', include('djcelery_ses.urls')),
url(r'^admin/', include(admin.site.urls)),
)
4 changes: 2 additions & 2 deletions demo/demo/wsgi.py → example/example/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
WSGI config for demo project.
WSGI config for example project.
It exposes the WSGI callable as a module-level variable named ``application``.
Expand All @@ -8,7 +8,7 @@
"""

import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "demo.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.settings")

from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
2 changes: 1 addition & 1 deletion demo/manage.py → example/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "demo.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.settings")

from django.core.management import execute_from_command_line

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from setuptools import setup, find_packages
from svcelery_email import __version__
from djcelery_ses import __version__


setup(
Expand Down

0 comments on commit fb3d0b3

Please sign in to comment.